0 views
How did you deal with the agent’s hallucinations?
Asked at
AI answer
Hallucinations are best reduced at several levels:
- Provide verifiable context: use RAG or search authoritative sources, constrain answers to the retrieved information, and include source citations.
- Connect tools for facts that need to be calculated or retrieved from systems, and verify the results of tool calls.
- Set rules explicitly: ask the model to distinguish facts from assumptions and acknowledge when there is insufficient data. For critical scenarios, provide for refusal to answer or escalation to a human.
- Check the output: validate the format and business rules, compare it with the source, or run a separate check for high-risk answers.
- Measure quality: use a test set of real queries, assess factual accuracy, and regularly review errors after changes.
Lowering the temperature may make responses less varied, but it does not, by itself, guarantee their accuracy.
Also asked at СБЕР
Similar questions
- What challenges did you face while developing this agent?
- How was the quality of your agent system evaluated? Which metrics were used?
- What criteria would you use to evaluate the textual content of an agent’s response?
- What are the 12 agents in your project, and what does each of them do?
- How did you evaluate the textual content of the agent’s report?