Reducing hallucinations: methods and measurement for fewer wrong answers in enterprise AI
Short answer: A hallucination is content that a language model states with confidence even though it is wrong or not supported by its source. It still appears in the most advanced systems, but it can be reduced substantially. The most effective measures are grounding answers in the organisation's documents (RAG), attaching a citation that opens to the source for every claim, allowing "I don't know" when the sources fall short, verifying the answer in a second step and routing consequential outputs to a person for approval. You measure the effect with an evaluation set built from the organisation's own questions.
Language models write fluently, but fluency is not accuracy. A model that confidently quotes a regulation article that does not exist quickly erodes trust in enterprise use.
What is a hallucination?
The US National Institute of Standards and Technology (NIST) describes this risk in its generative AI risk profile under the name "confabulation": the production of confidently stated but erroneous or false content. In everyday language this is called hallucination. According to NIST, outputs can also include fabricated reasoning or citations that try to justify the answer, which can lead people to trust the system inappropriately.
Researchers split hallucinations into two kinds by their relation to the source: output that contradicts the source content is intrinsic, while output that cannot be verified from the source is extrinsic. A more recent taxonomy proposed for large language models separates factuality hallucination from faithfulness hallucination. Faithfulness hallucination is output that diverges from the user's instructions or from the context provided.
For a system that works with company documents, this is the real question: does the answer match what is written in the documents it was given?
Why do hallucinations happen?
The model writes by probability. NIST describes confabulation as a natural result of the way generative models are designed. These models produce outputs that approximate the statistical distribution of their training data; language models predict the next word. That prediction can be accurate, yet it can also be wrong or internally inconsistent.
Training and evaluation reward guessing. Kalai and colleagues argue that models sometimes guess when uncertain because training and evaluation procedures reward guessing over acknowledging uncertainty. Common benchmarks give no credit to answers that express uncertainty; under such grading "I don't know" is penalised most heavily while a confident guess is the best strategy.
The model lacks the organisation's knowledge. A general-purpose model cannot know an internal procedure that was never in its training data. Lewis and colleagues note that the ability of pre-trained models to access and precisely manipulate knowledge is still limited. Models can also pick up common misconceptions from their training data: in the TruthfulQA benchmark the best model tested was truthful on 58 per cent of questions against 94 per cent for humans. The largest models were generally the least truthful.
Grounding answers in documents: RAG and citations
In enterprise use the first step is to have the model answer from the organisation's documents rather than from its own memory. The paper that introduced RAG showed that retrieval-augmented models generate more specific, diverse and factual language than a model relying only on its parameters. In a study of dialogue systems, retrieval also substantially reduced knowledge hallucination according to human evaluation.
Even so, RAG does not eliminate hallucination. A preregistered evaluation of commercial legal research tools built on RAG found that hallucinations were reduced compared with general-purpose chatbots, yet the tools still hallucinated in 17 to 33 per cent of cases. If retrieval brings back the wrong passage, the model stays faithful to the wrong context. Performance has also been shown to drop significantly when the relevant information sits in the middle of a long context. Retrieval settings such as chunking, hybrid search and reranking therefore have a direct effect on the hallucination rate.
Citations are the second line of defence: when every sentence in an answer is linked to the passage it relies on, the user can check it against its source. A citation is not automatically correct either. In a study of generative search engines only 51.5 per cent of generated sentences were fully supported by citations and only 74.5 per cent of citations supported their associated sentence. NIST also recommends reviewing and verifying the sources and citations in system outputs. In Zylon the chat assistant retrieves the relevant snippets and replies with citations that open to the exact passage; if you know where the answer lives, the chat can be scoped to a single folder.
A system that admits what it does not know and checks itself
Allow abstention. The system prompt should ask the model to say so plainly when the documents do not contain the answer, while the evaluation should score "I don't know" above a wrong answer. Kalai and colleagues propose that evaluations state confidence targets explicitly in their instructions, within the prompt or system message.
Verify the answer in a second step. In the Chain-of-Verification method the model first drafts an answer, then plans verification questions to check the draft, answers those questions independently of one another and produces its final answer on that basis. The method reduced hallucinations across a range of tasks.
Use inconsistency as a signal. If a model really knows a fact, the different answers it gives to the same question tend to be similar; for a fabricated fact they tend to diverge and contradict one another. That signal can be used to flag an answer and route it to human review.
Human oversight: who approves what and when?
NIST notes that over time people may over-rely on generative AI systems or unjustifiably regard their content as higher in quality than content from other sources. This tendency, known as automation bias, can make the risk of confabulation worse. According to NIST, an organisation's use of generative AI may warrant additional human review, tracking and documentation together with greater management oversight. In practice three decisions matter:
- Separate by risk level. For informational internal questions the user opens the citation and checks it; consequential outputs such as letters to customers, credit assessments or legal opinions go to an authorised person for approval.
- Make checking easy. A citation should open with one click and show the passage the answer relies on; if finding the source takes effort, the check may be skipped.
- Collect errors. Users should be able to flag a wrong answer so that these records can be added to the evaluation set. NIST also suggests post-deployment monitoring processes for confabulation.
Measuring hallucination
The question "have hallucinations gone down?" cannot be answered with a handful of trial prompts. NIST recommends against extrapolating system performance from narrow, non-systematic and anecdotal assessments. It also recommends assessing output by comparing it with a set of known ground truth data.
- Build an evaluation set. Create a golden dataset from the organisation's real questions, the expected answers and the document passages those answers rely on. Add questions whose answers are not in the documents; you will see whether the system abstains on them.
- Measure retrieval and generation separately. The Ragas framework evaluates the retrieval system's ability to find relevant and focused context passages separately from the model's ability to use those passages faithfully. That shows where an error comes from.
- Count claims one by one. The FActScore approach breaks an answer into atomic facts and computes the percentage supported by a reliable knowledge source. For citations there are two questions. Is every sentence supported by a citation? Does every citation support its sentence?
- Report wrong answers and abstentions separately. Track the rates of correct, wrong and "I don't know" answers on their own. A measure that looks only at accuracy rewards a system that guesses.
- Compare automatic scores with people. An LLM-as-a-judge scores large sets quickly but can also be wrong; have domain experts score a sample as well and compare the results.
In live use the measurements are repeated at regular intervals, since a new model version, a new document set or a changed prompt can shift the rate.
Frequently asked questions
Can hallucination be eliminated completely?
Is an answer with a citation always correct?
Does a model running inside the organisation hallucinate less?
Related glossary terms
Hallucination, Hallucination detection, Grounding, Retrieval-Augmented Generation, Citation, Faithfulness, Factuality, Chain-of-verification, Self-consistency, Lost in the middle, Golden dataset, RAG evaluation metrics, LLM-as-a-judge, AI overreliance, Human oversight of AI
Sources
- NIST AI 600-1, Generative Artificial Intelligence Profile, 2024
- Ji et al., Survey of Hallucination in Natural Language Generation, 2022
- Huang et al., A Survey on Hallucination in Large Language Models, 2023
- Kalai et al., Why Language Models Hallucinate, 2025
- Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, 2020
- Shuster et al., Retrieval Augmentation Reduces Hallucination in Conversation, 2021
- Magesh et al., Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools, 2024
- Liu, Zhang and Liang, Evaluating Verifiability in Generative Search Engines, 2023
- Liu et al., Lost in the Middle, 2023
- Dhuliawala et al., Chain-of-Verification Reduces Hallucination in Large Language Models, 2023
- Manakul, Liusie and Gales, SelfCheckGPT, 2023
- Es et al., Ragas, 2023
- Min et al., FActScore, 2023
- Lin, Hilton and Evans, TruthfulQA, 2021
- Zylon documentation: Querying company documents
Building an AI assistant that is grounded in your documents and can be measured?
Tell us which documents and which questions you will be working with; let's define the evaluation set, the retrieval architecture and the points that need human approval together.
Request a technical assessment →