AI hallucinations are confident answers from a language model that are false or not supported by any source. They happen because the model predicts plausible text rather than looking facts up. You prevent it by grounding the model in your own documents, requiring citations, letting it refuse, testing against a fixed question set and reviewing anything consequential.
A model asked a question it cannot answer will rarely say so. It produces the most plausible-sounding continuation available, in the same confident register it uses when it is right. Understanding why is what separates teams who build reliable AI systems from teams who are perpetually surprised.
What is an AI hallucination?
The term covers any output that reads as fact but is not grounded in reality or in the material the system was given. NIST's generative AI risk profile calls the same thing confabulation and lists it among the core risks organizations should manage. In practice it shows up in a handful of recognizable forms:
- Invented facts. A policy clause, a product feature, a date or a figure that does not exist.
- Fabricated citations. A real-looking reference to a paper, a court case or a section of a document that was never written. In 2023 a federal court in New York sanctioned lawyers in Mata v. Avianca for filing a brief that cited cases ChatGPT had made up.
- Misread sources. The right document, quoted with the wrong section, a reversed condition or a dropped "not."
- Silent arithmetic errors. A total, a percentage or a date calculation that looks right and is not.
- Overclaimed actions. A system that says it has sent the email or updated the record when it has no ability to do either.
Why do AI hallucinations happen?
A language model predicts likely text. It is not looking anything up, and it has no internal flag for "I do not know this." When you ask about your refund policy, the model produces text shaped like a refund policy, because that is what the question calls for. Fluency and accuracy are separate properties, and only one of them is what the model is trained to produce.
Three conditions make it worse: questions about information the model never saw (your internal documents, anything recent), prompts that pressure it to always give an answer, and long multi-step tasks where a small early error is carried forward.
This is not a defect waiting for a patch. It is how the technology works. The engineering task is not eliminating hallucination; it is building systems where hallucination is caught before it matters.
How do you prevent AI hallucinations?
Seven controls, roughly in order of how much they reduce the problem.
1. Give it the source material
The single largest reduction comes from retrieval: find the relevant passages and put them in front of the model, then instruct it to answer only from that. A model with the policy in front of it does not need to invent one. This is what RAG is for, and it is the foundation everything else sits on.
2. Require citations
Make every claim link to the passage it came from. This lets a reader verify in one click, and it makes fabrication visible, because an invented claim has nothing to cite. Systems that cite are meaningfully more trustworthy than systems that do not, even when the underlying model is identical.
3. Permit refusal, and reward it
Instruct the system explicitly that "the provided material does not answer this" is a correct and expected response. Then check that it actually does so, by asking questions you know are unanswerable. A system that never declines is a system that is guessing, and you should find that out during testing rather than in front of a customer.
4. Use tools for lookups and math
Do not let a language model do arithmetic that matters. Have it extract the values and hand them to real code for the calculation. The same goes for anything with a deterministic right answer: eligibility rules, tax bands, date arithmetic, live inventory. Use the model to interpret and conventional software to compute or look up.
5. Constrain the output
Where the answer feeds another system, ask for structured output (fixed fields, allowed values) and validate it before it is used. A field that must be one of five categories cannot drift into an invented sixth.
6. Keep a real evaluation set
Fifty to two hundred questions with known-correct answers, run automatically on every change to the prompt, the model or the documents. Without this you cannot tell whether a change helped, and you will not notice the day a model update degrades a task that used to work.
7. Put a human where it counts
Anything that reaches a customer, moves money or informs a decision about a person gets reviewed. This is not a failure of automation; it is the design that lets you deploy at all.
Where is hallucination most dangerous?
Not where people expect. The risk is highest when the output is mostly right: a summary with one invented figure, a citation to a real document with the wrong section, a correct-looking calculation with a transposed number. Obvious nonsense gets caught. Plausible errors get forwarded.
Design review steps for the plausible case: show the reviewer the source alongside the claim, rather than asking them to assess the output on its own.
Can AI hallucinations be eliminated completely?
No, and a vendor who says otherwise is describing a demo. Newer models hallucinate less on many tasks, and retrieval plus citations removes most of the remaining risk for questions your documents answer. What is left is managed, not abolished: measured by the evaluation set, made visible by citations and caught by review where the stakes are high.
What good looks like
A system that cites its sources, says "I do not know" roughly as often as the material warrants, is measured against a fixed test set, and escalates anything consequential to a person. That combination makes hallucination a managed risk rather than a lurking one.
It is also what any vendor should be able to describe unprompted. If they cannot, ask how they measure accuracy; the answer will tell you a great deal. A broader list is in our questions to ask a development firm before you sign, and the difference between a real build and a thin wrapper is covered in ChatGPT versus a custom tool on the same model. Our AI solutions work and AI automation projects are built around exactly these controls. If you are weighing several AI vendors at once, vCIO and IT strategy support can help you compare them.
Want a second opinion on an AI system's accuracy claims? We will look at how it is measured.
Frequently asked questions
What is an example of an AI hallucination?
A support assistant that quotes a 60-day return window when your policy says 30, or a research tool that cites a court case that does not exist. Both read as fluent, confident answers, which is why they get repeated before anyone checks.
Why does ChatGPT make things up?
Because it generates the most likely next words rather than retrieving verified facts, and it has no built-in sense of when it does not know something. Without your documents in front of it, it fills gaps with plausible text.
Does RAG stop hallucinations?
It removes most of them for questions your documents can answer, because the model has the real text to work from. It does not help with questions the documents do not cover, so pair it with citations and permission to refuse.
How do you measure how often an AI system hallucinates?
Run a fixed set of questions with known-correct answers, including some that should be refused, and score the results on every change. That turns "it seems accurate" into a number you can track over time.
The Cyber-Insurance Questionnaire Gap Check
Covers MFA, endpoint protection, backups, email security, incident response and training. Each question comes with the evidence an underwriter expects to see.

