Make Reranking Earn Its Place in Your RAG Pipeline
Reranking should earn its place in a RAG pipeline: add information the first ranker lacked, keep evidence intact, and beat a retrieval-only baseline on data.
This article is published in English.
Adding a reranker feels like a straightforward upgrade: retrieve a broad set of passages, apply a more careful relevance check, and send the best results to the model.
That architecture can be useful. It can also add delay while making the evidence worse. The deciding question is what information the second stage contributes.
In one published case study, a reranking step reused the embedding approach from retrieval while shortening the candidate text. The second pass therefore evaluated a poorer view of the material. The lesson is specific: a component called a reranker does not automatically provide a better relevance signal.
Understand the limit of the candidate pool
A reranker orders the documents it receives. It does not search the rest of your collection for missing evidence.
If the relevant passage is absent from the shortlist, investigate retrieval, filters, or chunk boundaries. Increasing the sophistication of the scorer cannot make an unseen passage appear.
This is why hybrid candidate retrieval and reranking should be evaluated separately. The first stage aims to bring useful evidence into consideration. The second aims to select and order that evidence within a tighter budget.
Ask what the second scorer sees
A cross-encoder processes the query and candidate together, allowing a relevance judgment that differs from comparing independently computed embeddings. That additional interaction is one reason to consider it for a shortlist.
However, the scorer still has an input limit. If preprocessing removes the sentence that answers the question, the model cannot recover it. Log the actual text passed to the scorer, not just the original stored chunk.
For long passages, inspect where relevant details occur. A fixed prefix may retain introductory language while dropping the operative rule, code example, or exception. Consider shorter coherent candidates or query-relevant windows, and test the resulting behavior rather than assuming a truncation policy is harmless.
Compare before and after on identical candidates
Save a baseline ranking for each evaluation question. Run the reranker over that same candidate set, then compare the order and final selection.
Track whether required evidence remains in the final context, whether its position improves, and which questions regress. A single aggregate score can conceal the loss of a critical passage for a particular query category.
Also measure end-to-end latency and cost. A ranking improvement may be worthwhile for a detailed research workflow but too expensive for an interactive search suggestion. The acceptable tradeoff depends on the experience you are building.
The evaluation guide explains how to keep these ranking checks separate from the quality of the generated answer.
Define a fallback deliberately
For an interactive application, give the reranking stage a deadline. If it times out, decide explicitly whether to return the baseline results, show an error, or continue asynchronously.
Returning baseline results can be reasonable when they already meet your quality requirements. Record that the fallback happened so a latency improvement does not accidentally look like a successful reranking experiment.
Likewise, keep the reranker easy to disable. A component should not become mandatory merely because downstream code now assumes it exists.
Keep the simpler system when it wins
Run the same questions with reranking enabled and disabled. Review both improvements and failures, including examples near input-length limits.
If the second pass cannot demonstrate a useful gain under your constraints, removing it is a valid engineering result. The objective is an answer supported by the right evidence at an acceptable cost. A more elaborate diagram is useful only when it helps achieve that.