A hallucination is an answer from a language model that sounds fluent and convincing but is factually wrong or invented. Think of a section of law that does not exist, an incorrect amount or a source that cannot be found anywhere. The model itself does not know it is mistaken.
Why it happens
A language model does not look facts up. It writes the most likely continuation of a text each time. Most of the time, likely and correct coincide, but not always. If you ask about something that is not in its training data or in the text you supplied, the model fills the gap with something that sounds plausible. The more specific the question, such as a section number, a date or an amount, the greater the chance of an invented detail. The model gives no sign that it is unsure.
Examples from practice
- A summary of a contract that mentions a notice period which is not in it.
- A reply to a customer quoting a delivery time or discount you never offered.
- An overview of grants or legal provisions, some of which do not exist.
- An invoice read with the wrong VAT number because the real one was illegible.
The problem is not that the model is sometimes wrong, people are too. The problem is that the error looks every bit as certain as a correct answer.
How to limit the risk
Give the model the source instead of relying on its memory: that is the core of RAG. Explicitly ask it to answer "I don’t know" when information is missing, and to cite the source for each statement. Let software check what can be checked, such as a VAT number or an invoice total. And have a person review whatever goes to a customer, supplier or public authority. The greater the consequences of a mistake, the stricter the check needs to be.
How SBC works with it
SBC’s systems are built on the assumption that the model will sometimes be wrong. Amounts and numbers are recalculated, doubtful cases are raised rather than filled in, and nothing goes out without human approval. Within AI Engineering we build the same checks for clients, matched to what a mistake would cost them.
Also known as: AI hallucination, hallucinating, confabulation, made-up answer