Short answer. A hallucination is an answer that an AI model presents as true and is not: an invented fact, a citation that does not exist, or a claim that does not appear in the sources it was supposed to use. They cannot be fully eliminated, but they can be measured and kept under control. Measuring them takes a test set with known sources, explicit criteria and results stored per version.
Want to see how your assistant's hallucinations are measured?
What are AI hallucinations?
Language models generate the most plausible text from what they learned and the context they receive. They do not check each fact against a reliable source before answering, and they do not recognize on their own when they lack information. When information is missing or the context is ambiguous, they keep generating plausible text, and sometimes that text is false.
In personal use, a hallucination is fixed with another search. In a financial institution, an invented answer about a fee, a coverage or a deadline reaches the customer in the company's own voice. That is why they should be treated as a measurable risk, not as a quirk of the model.
Types of hallucinations in generative AI
We distinguish two families of hallucinations in generative AI. Intrinsic ones contradict the source the system had in front of it; extrinsic ones add information that cannot be checked against that source. In practice we can go deeper into many types of hallucinations in generative AI:
| Type | What happens | Example in banking or insurance |
|---|---|---|
| Invented fact | The model states a fact, figure or citation that does not exist | Cites an article of a regulation that does not exist |
| Contradiction with the source | The answer says something different from the document | States a fee different from the one in the product terms |
| Unsupported addition | Includes conditions or details that are not in the source | Adds an exclusion the policy does not contain |
| Reasoning error | Starts from correct data and reaches a wrong conclusion | Miscalculates a deadline or an amount |
| Action claimed but not executed | An agent says it did something it did not, or calls a tool with invented data | Says it blocked a card and did not |
Each type is detected differently, and a single quality metric usually hides them.
Why they matter in banking and insurance
A wrong answer about a product generates complaints and, if repeated, a conduct problem. In addition, for high-risk systems the AI Act requires accuracy, robustness and documentation (we summarize it in EU AI Act timeline, obligations and what a financial institution must be able to prove), and DORA requires being able to show that ICT systems were tested (we explain it in DORA Regulation: what a bank must be able to prove with generative AI). In both cases the question is the same: what tests exist and what result did they give.
How to measure hallucinations
Measuring a hallucination requires knowing what the system should have said, or first defining what counts as a good answer. Three things are needed.
- A test set with sources. Real questions and scenarios taken from product documentation, with the correct source identified. Include questions the source does not answer: that is where hallucination is most common.
- Metrics per type. One for each question you want to be able to answer (table below).
- A calibrated evaluator. To score at scale an LLM is used as a judge, and it must be calibrated against human reviewers.
| Metric | What it answers |
|---|---|
| Source fidelity (groundedness) | Is every claim in the answer supported by a document? |
| Factual accuracy | Is what it states true, regardless of the source? |
| Hallucination rate | What percentage of answers contains at least one unsupported claim? |
| Correct abstention | When the source does not answer, does the system say so and hand over? |
| Action claimed vs executed | For an agent, does what it says it did match what it did? |
Results are stored per model version, prompt, sources and data. This shows whether a model or instruction change increases or reduces hallucinations, and the result can be shown to the second line or a supervisor.
Measure hallucinations in every version of your assistant
We show you how.
How to reduce hallucinations
No measure eliminates them, but several reduce them measurably:
- Well-kept sources. Up-to-date documents, without duplicates or contradictions between them. A system that retrieves contradictory information answers with contradictions.
- Verifiable citations. Ask each claim to point to its source and check that the citation exists and says what is claimed.
- Permission not to know. Instructions so the system says it does not have the information and hands over to a person.
- Agents with limits. Restrict what an agent can do and verify the result of each tool before taking it for granted.
- Evaluation after every change. An instruction or model improvement can fix one type of hallucination and worsen another.
An example: a bank's card assistant
Illustrative scenario, not a customer case. A bank prepares an assistant that answers questions about cards and fees. The team builds a test set from the product documentation and real customer queries, and includes questions the documents do not answer.
Each answer is split into claims, and a calibrated evaluator marks each one as supported or not by the source. A sample goes through human review. The result is a hallucination rate per version and per question type.
When the provider updates the model, the rate rises on fee questions. The team adjusts the instructions, repeats the same test set, confirms the improvement and archives both reports. When a customer complains about a wrong answer, the case is added as a new test.
Checklist: ten questions to control hallucinations
- Do you know which sources each system uses and who maintains them?
- Is there a test set with questions the source does not answer?
- Do you measure source fidelity and not just overall perceived quality?
- Do you distinguish invented facts, contradictions and additions?
- Can the system say it does not know and hand over to a person?
- Does an agent check that the action it reports as executed actually ran?
- Is the automatic evaluator calibrated against human reviewers?
- Do you repeat the evaluation when the model, prompt or sources change?
- Do you measure a sample of real conversations with the same criteria?
- Do you store results per version to show to audit or a supervisor?
How many of these ten questions can your team answer today? Review them with us.
Frequently asked questions
What are AI hallucinations?
They are answers a model presents as true and are not: invented facts, citations that do not exist, or claims not supported by the sources it was supposed to use.
Why do language models hallucinate?
Because they generate the most plausible text and do not verify facts. When information is missing or the context is ambiguous, they fill in with believable text that may be false.
Can hallucinations be eliminated?
Not entirely. They can be reduced with better sources, verifiable citations and permission not to answer, and they must be measured continuously to detect when they increase.
How is a hallucination detected?
By comparing the answer with the correct source, claim by claim. At scale an automatic evaluator (an LLM as a judge) calibrated against human reviewers is used, and a sample is reviewed by hand.
What is source fidelity (groundedness)?
It is the metric that measures whether every claim in an answer is supported by the document the system had available.
What is the difference between a hallucination and an AI error?
An error is any incorrect answer. A hallucination is one the model presents with confidence and without support: an invented fact or a claim that does not come from the source.