All Questions
Rag And Retrieval hard

An internal engineering assistant uses dense-only retrieval. A query like 'what causes ERR_QUOTA_4471 in billing-svc' returns conceptually related quota articles but rarely the runbook that mentions the exact code. Recall on natural-language questions is fine. Which fix addresses the root cause?

  1. A Add a BM25 lexical index alongside the vector index and fuse both result lists, so exact tokens like error codes match directly.
  2. B Fine-tune the embedding model on paraphrase pairs from support tickets, so that error codes cluster closer to the runbooks that reference them.
  3. C Raise first-stage k from 50 to 500, so the exact-match runbook eventually appears somewhere in the candidate set handed to the reranker.
  4. D Re-chunk the runbooks into smaller 150-token pieces, so each error code dominates the embedding of the chunk that contains it.

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

Get the app

Related questions