All Questions
Rag And Retrieval easy

An HR assistant indexes the last six yearly versions of the employee handbook. When asked about the current leave policy, it often quotes outdated versions because their text is nearly identical. What is the best fix?

  1. A Raise top-k so the current handbook's chunks are more likely to be included somewhere.
  2. B Instruct the LLM in the prompt to prefer whichever retrieved chunk sounds most recent.
  3. C Tag chunks with version metadata and filter to the current version at query time.
  4. D Delete all prior handbooks from the source system so only one version exists anywhere.

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

Get the app

Related questions