Rewrite each user turn into a standalone query using recent conversation history (an LLM call or a small model), so "what about the premium plan?" becomes a full question.
Retrieve with the rewritten query, but give the LLM the original conversation and the retrieved context.
Keep summaries of long histories, and decide when a new topic should reset retrieval context.
Loading…