All Questions
Rag And Retrieval medium

In a chat assistant, a user asks 'How do I reset my VPN token?' and then follows up with 'And on Linux?' The follow-up retrieves random Linux documentation unrelated to VPNs. What is the best fix?

  1. A Embed the entire conversation transcript as the query vector so all prior turns influence what gets retrieved.
  2. B Raise top-k for follow-up turns so that VPN-related Linux chunks have a better chance of being included.
  3. C Use a small LLM call to rewrite the follow-up into a standalone query such as 'reset VPN token on Linux'.
  4. D Skip retrieval on follow-up turns and let the model answer from the chunks retrieved for the first question.

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

Get the app

Related questions