August 26, 2026 · 8 min read
When Your AI Assistant Invents Answers: Preventing Hallucination
The most expensive answer a support assistant can give is a wrong one that sounds right. With no grounding, a model fills gaps with plausible invention: a discount that does not exist, a delivery time nobody promised, a service you do not sell. That behaviour is not purely a model problem — it is mostly a design problem.
Why Hallucination Happens
- A question has no match in the knowledge base and the assistant has no defined way to say so.
- The knowledge base contradicts itself — two documents, two prices — and the model picks one.
- Instructions push the assistant to always be helpful, which quietly rewards guessing.
- The question falls outside your domain (tax, legal, medical) and no scope boundary is defined.
- Context bleeds between conversations, so one customer's order details surface in another chat.
First Defence: Ground the Answer
The strongest control is letting the assistant read from your documents rather than recall from memory. Retrieval-augmented generation does exactly this: search first, answer only from what was retrieved, produce nothing when nothing relevant is found.
The detail that decides success is the relevance threshold. Too loose and irrelevant passages fuel invention; too strict and the assistant escalates constantly. The right setting is found by replaying real customer questions.
Second Defence: Permission to Say I Do Not Know
A well-built flow has exactly three exits: answer from the knowledge base, ask a clarifying question, hand over to a human. Guessing must not be a fourth option.
Third Defence: Fields That Are Never Generated
Some facts cause real damage when wrong. These should come from a system of record, not from generation:
| Field | Risk | Correct source |
|---|---|---|
| Price and discounts | Commitment to a wrong price | Read verbatim from the price list |
| Stock and delivery time | Promises you cannot keep | Live query to stock or shipping system |
| Appointment slots | Double booking | Availability returned by the calendar service |
| Legal and health topics | Advice that creates liability | Declare out of scope, route to a professional |
| Order status | Wrong information to the wrong customer | Query with a verified order number |
Fourth Defence: Clean the Knowledge Base
Many hallucinations are document faults, not model faults. Archive expired campaign files, keep prices in one place, keep opening hours in one place, and write short unambiguous answers for frequent questions.
Testing: Try to Break It on Purpose
Before launch, build a test set designed to trip the assistant up:
- Questions with no answer in the knowledge base — expected behaviour is escalation or clarification.
- Questions that assume a campaign that never existed.
- Questions with a false premise, such as assuming Sunday opening hours.
- Out-of-scope questions about tax, diagnosis or legal interpretation.
- The same question phrased five ways — are the answers consistent?
Repeat these after every knowledge base update. A one-off check will not catch the contradiction introduced two weeks later.
Monitoring in Production
Three live signals matter: a sudden drop in escalation rate, repeated customer corrections on the same topic, and how often agents overrule the assistant's answer.
The BozLat AI Approach
In our deployments the assistant reads from the company's own documents, while price, stock and scheduling come from connected systems. When no source matches, it clarifies or hands over rather than guesses. See pricing for scope.
Frequently Asked Questions
Related Articles
7 min read
What is RAG? Guide to Accurate AI Chatbot Responses
What is RAG (Retrieval-Augmented Generation)? The architecture that prevents AI chatbot hallucinations and ensures 100% accurate responses.
7 min read
The First 30 Days With Your AI Assistant: A Week-by-Week Plan
Installing an AI assistant is only the start. Here is a week-by-week plan for the first 30 days: what to observe, what to add to your knowledge base, how to set the tone and what to measure.
6 min read
Why Does Your Bot Sound Like a Robot? 9 Fixes for a Natural Tone
Customers remember how an AI assistant said something more than what it said. Here are the patterns that make replies feel cold and mechanical, and nine concrete fixes.
Ready to set up an AI assistant for your business?
View Pricing