Reranking
Definition
Reranking reorders a candidate list from a fast first-stage retriever using a more accurate model, typically a cross-encoder that reads the query and each passage together.
In practice
First-stage retrieval (vectors, BM25 or both) is fast but coarse because query and documents are encoded separately. A reranker scores each query and passage pair jointly, so it judges relevance far better, and running it only on the top few dozen candidates keeps the cost bounded. Sending fewer, better chunks to the model also shortens the prompt.
It adds latency, roughly a hundred milliseconds per request, and another model to host or call. It cannot recover a passage the first stage never returned, so it complements good recall rather than replacing it. Measure retrieval quality with and without it before paying for it on every request.
Example
Hybrid search returns 40 candidates in 30 ms; a cross-encoder rescores them in 90 ms and the top 5 go into the prompt, cutting it from 20,000 to 2,500 tokens.