Two-stage retrieval: retrieve wide, rerank narrow
What it is
Search is done in two stages.
- Stage one (the retriever) is fast and approximate: it pulls 50 to 100 candidate chunks out of millions.
- Stage two (the reranker) is slow and accurate: it examines each of those candidates closely against the question and puts them in a better order.
Only the top few after reranking go into the prompt.
Why it matters
Neither model could do the job alone.
- The accurate model is far too slow to run over millions of chunks.
- The fast model is not precise enough to be trusted with the final order.
- Together, the fast one makes sure the right chunk is somewhere in the list, and the accurate one makes sure it is at the top.
In the real world: A job site retrieves 200 roughly matching vacancies in 20 milliseconds, then spends 150 milliseconds reranking them so the ten shown first are the best fits.
Visual example
Two stagesStage one protects recall (do not miss it). Stage two protects precision (put it first).
Expecting a reranker to fix a first stage that missed. It can only reorder what it is given. If the right chunk is not among the candidates, reranking changes nothing; widen or improve the first stage instead.