All Questions
Rag And Retrieval medium

Your retrieval evaluation shows recall@50 of 94% but precision@5 of only 30%. The generator receives the top 5 chunks from the bi-encoder. Which change most directly addresses this gap?

  1. A Add a cross-encoder reranker over the top 50 candidates and pass only its top 5 to the generator.
  2. B Pass all 50 first-stage candidates to the generator so the relevant chunks are guaranteed to be included.
  3. C Re-chunk the corpus into larger 2,000-token chunks so each top-5 result carries more surrounding context.
  4. D Switch to a higher-dimensional embedding model so that the bi-encoder's top-5 ordering becomes accurate.

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

Get the app

Related questions