0

When RAG Users Ask Vague Questions: Clarify Once, Learn the Default

https://towardsdatascience.com/when-rag-users-ask-vague-questions-clarify-once-learn-the-default/(towardsdatascience.com)
When building enterprise RAG systems, users often ask vague questions that lack necessary context, such as which document page or clause type to reference. A robust approach is to ask for clarification once, learn the user's preference as a default, and apply it silently in future similar situations. This pattern can be implemented using two Pydantic schemas: a `ClarificationRequest` to query the user and a `ClarificationDefault` to store the learned preference. The system learns by tracking user responses to update a confidence score for each default, which determines whether to ask for clarification or apply the learned default automatically.
0 pointsby will223 hours ago

Comments (0)

No comments yet. Be the first to comment!

Want to join the discussion?