All Questions
Rag And Retrieval hard

Your p95 retrieval budget is 500 ms. First-stage hybrid retrieval takes 80 ms, and a cross-encoder over 200 candidates adds 450 ms. Offline, first-stage recall is 91% at N=50, 93% at N=100 and 94% at N=200. What is the best adjustment?

  1. A Drop the reranker and pass the first-stage top 20 to the model, since the LLM can make its own relevance judgments within the context window.
  2. B Keep reranking 200 candidates but move the reranker after generation, rescoring the answer's citations so the latency is hidden from users.
  3. C Rerank only the top 50 to 100, trading 1 to 3 points of candidate recall for a reranking cost that fits the budget.
  4. D Replace hybrid retrieval with dense-only retrieval to save first-stage time, freeing enough budget to keep reranking all 200 candidates.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions