Hallucination
When an AI model confidently states something false or not in the source, such as a wrong invoice total or a contract clause that does not exist.
What Is an AI Hallucination
A hallucination is an answer from a language model that sounds right and is wrong. A model does not look facts up by default. It writes the most likely next words, and most of the time that matches the document in front of it. Sometimes it does not, and nothing in the tone of the answer tells you which case you are in.
Why it matters in a process
In a chat, a wrong answer wastes a minute. In a process, it gets posted. A wrong total goes into the ledger, a wrong renewal date goes into the contract register, and nobody looks again until it costs money. So the useful question about any AI step is not whether the model can be wrong. It can. The question is what catches the error before it reaches your system of record.
Two business examples
An invoice shows a subtotal of 4,180.00 and a total of 5,016.00 including VAT. The model returns 4,180.00 as the total, because the subtotal is printed in larger type.
A lawyer asks whether a supplier contract limits the supplier’s liability. The model answers yes, quotes a cap of twelve months of fees and points to section 14. The contract has no such clause. The model wrote what a typical contract says, not what this one says.
The controls that work
- Grounding. Give the model the actual document, tell it to answer only from that text, and require the page or section for each value. Across a large set of documents this is what RAG does. A cited answer is something a person can check in seconds, and a missing citation is a warning sign.
- Validation rules. Plain code checks the output: line items add up to the subtotal, subtotal plus tax equals the total, the supplier exists in your master data, dates are in a sensible order. The VAT example above fails the arithmetic check and goes to a person.
- Human review of what is flagged. Anything that fails a rule, comes back empty, or commits money is shown to a person next to the source page.
Common misconceptions
Setting the temperature to 0 does not prevent hallucinations. It makes the output more repeatable, so the model can give the same wrong answer every time. Asking the model to “be accurate” changes little. A newer model may make fewer mistakes on your documents, but none makes zero, so the checks stay in place.
See how these controls fit together in AI document processing and AI for accounts payable.