All Questions
Rag And Retrieval easy

Your vector search retrieves the top 100 chunks, and the LLM receives the top 5. Evaluation shows the correct chunk is usually somewhere in the 100 but rarely in the 5. What should you add?

  1. A A larger first-stage k of 500 so the correct chunk shows up more reliably among the candidates.
  2. B A cross-encoder reranker that rescores the 100 candidates and keeps the best 5.
  3. C A second vector index with a different distance metric, taking the union of both top-5 lists.
  4. D Pass all 100 chunks to the LLM and instruct it to ignore anything that looks irrelevant.

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

Get the app

Related questions