How should an LLM agent decide what to ask next in case of uncertainity ?
Hello everyone,
I am exploring a project where I am working on an AI agent which is supposed to make decisions with incomplete information available to it.
The basic idea is pretty simple: the user gives the agent some initial information but it may not be enough to make a good decision. Instead of the agent just making its best guess I want the agent to recognize the uncertainty and decide whether it should ask another question first.
My current use case is pediatric symptom assessment where a parent may not provide all the relevant information in the first message.
e.g : Parent: "My child has a fever and isn't eating much."
Rather than immediately giving a recommendation, the agent might identify that some information is missing and ask something like: "Is your child having any difficulty breathing?"
Then use this information to update it's assesment.
I'm currently looking at Bayesian inference and HMM as possible ways to think about the uncertainty and question-selection part. But I'm still figuring out how much of this should actually be handled by the LLM versus a separate decision layer.
I'd be interested in hearing from LLM developers:
How would you design the question-selection loop?
Would you let the LLM choose the next question or have a separate decision layer handle that?
How would you prevent the agent from asking endless questions?
How do you handle cases where the model is uncertain but still needs to take an action?
Any blind spots or failure modes in this setup that I should watch out for?
Looking for your valuable views on it.