Reranking Candidate Pool Size
In this article
- Tell the number of candidates a reranker reads apart from the number of chunks the model receives, and say why the first must be larger.
- Read a pool-size table and say what each extra candidate buys in recall and costs in p95 latency.
- Spot what a reranker's input limit cuts from a long candidate, and find that limit for your tool.
- Choose the smallest pool that meets a recall target inside a latency budget.
Overview
Your help assistant first fetches candidate passages (chunks) with a fast search. Then a reranker, a slower model that reorders them by how well each answers the question, reads 50 of them and the best 8 go to the language model. In a design review someone asks the obvious thing: why 50? Fetch 100 and the right chunk is more often somewhere in the pile. Fetch 20 and the answer comes back faster. Both are true, and neither tells you where to stop.
By the end you can tell the candidates the reranker reads from the chunks the model receives, weigh what each extra candidate buys in recall (how often the right chunk is in the pile at all) against what it costs in the wait of the slowest queries, spot what a reranker's input limit quietly cuts, and pick the smallest pool that reaches a recall goal within a time limit.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Two numbers, not one
- What a bigger pool buys
- What a bigger pool costs
- Choosing N
- When a candidate is too long
- More candidates, more look-alikes
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions