All Questions
Rag And Retrieval medium

Your assembler fills a 6,000-token budget with the top 8 chunks. For many queries, 5 of the 8 are near-identical copies of the same FAQ, mirrored across several internal sites. Answers miss facts held in other documents. What should you do?

  1. A Deduplicate near-identical chunks and apply a diversity step such as MMR before filling the token budget.
  2. B Increase top-k to 30 so the unique documents eventually appear after the duplicated chunks in the ranking.
  3. C Increase chunk size so each FAQ copy occupies only one chunk, leaving more room for other relevant documents.
  4. D Add a reranker over the top 8, which will push the duplicate FAQ copies below the unique documents in order.

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

Get the app

Related questions