All Questions
Rag And Retrieval medium

Your hardware support bot uses dense-vector retrieval only. Users asking 'What does error E-4012 mean?' get chunks about generic error handling and about E-4021, a different code. Natural-language questions work well. What is the best fix?

  1. A Increase the embedding dimension from 768 to 3,072 so the vectors capture finer-grained token distinctions.
  2. B Raise first-stage top-k from 20 to 200 so the exact error-code chunk is more likely to appear somewhere.
  3. C Add a BM25 lexical index alongside the vector index and merge the two ranked lists with reciprocal rank fusion.
  4. D Fine-tune the generator model on the error-code manual so it can answer code lookups from memory without retrieval.

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

Get the app

Related questions