Re-ranking
A second step that orders the candidate passages from a first search more carefully, so that the best evidence reaches the model first.
Re-ranking is a second step in retrieval. The first search returns a wide set of candidate passages quickly. A re-ranker then reads each candidate alongside the question and orders them more carefully. The top few are sent to the model. This costs more per passage than the first search, so it is applied to a short list rather than to the whole collection.
Re-ranking matters most when the first search brings back many passages that are related but not the best answer.
In practice
I add re-ranking when the evaluation set shows that the right passage is retrieved but not placed high enough to reach the model. That is a specific failure, and it has a specific fix. If the right passage is not retrieved at all, re-ranking cannot help, and the fix is in the first search or in the chunking.
I measure the effect on the answer, not only on the ranking, and I measure the added latency, because each re-ranking call adds time to every question.
Example
[Composite] A policy assistant retrieved the correct clause in its top twenty results, but the answer was built from a more general passage ranked first. A re-ranker that read each candidate with the question moved the clause to the top. The answers matched the evaluation set, and the added delay was small.
Common mistakes
- Adding a re-ranker before checking whether the right passage is retrieved at all.
- Re-ranking a long list, which adds delay without much gain.
- Measuring the ranking but not the answer.
Related terms
Cite this definition
Re-ranking. Mayur Patil, mayurpatil.ai, updated 2026-11-02. https://mayurpatil.ai/glossary/re-ranking/