Skip to content
Ilayer

Field guide

How to stop AI hallucinations

Four mechanisms that cut invented answers, the number to demand for each, and the eight questions that expose a vendor who has never measured one.

Published Updated 8 min read

Forty candidate answers, thirty-nine ruled out by a check that can fail, and the one that holds carries its source with it.

The short answer

Zero hallucinations is not on offer. Rare, visible and measured is.

Four mechanisms do the work, and they stack in this order.

  1. Grounding. The model reads your data before it answers.
  2. Citations. Every claim points at the source it came from.
  3. Abstention. The system can return nothing, and has a reason to.
  4. Evals. Tests for a large language model's answers. All three get scored on your questions, and a release that makes any of them worse is blocked.

A vendor with all four hands you numbers. A vendor with one or two hands you a demo.

Grounding and citations do not make mistakes impossible. They make them visible and traceable, instead of silent. That is the product, not the disclaimer. A wrong answer you can trace to a bad source document is a ticket someone closes on Tuesday. A wrong answer with nothing behind it is a decision your team makes badly, six months from now, without ever learning why.

Why nobody can sell you zero

A model stores patterns, not facts. Ask it something it cannot answer and it still returns its most plausible continuation. Kalai and colleagues argue the habit is reinforced by how models are scored, since training and evaluation reward guessing over acknowledging uncertainty (Why Language Models Hallucinate). The mechanism belongs on another page: why AI makes things up covers the cause. For a buyer, only the consequence matters.

A convex lens in a dark machined ring, seen from the side. Seven thin violet rays enter from the left, bend inside the glass, and converge into one bright beam that exits to the right.
Many sources in, one focused passage out: retrieval is the step that decides what the model is allowed to answer from. Every figure here is rendered to shape, not to scale.

The consequence: retrieval helps enormously and does not finish the job. Stanford's RegLab benchmarked three commercial legal research tools, all of which retrieve from real source law before answering. Lexis+ AI and Ask Practical Law AI still hallucinated on more than 17 percent of benchmark queries, and Westlaw's AI-Assisted Research on more than 34 percent (Stanford HAI). Those products have shipped changes since, and the specific scores will age. The shape of the result will not. Bolting retrieval onto a model reduces invention rather than removing it, and the marketing around those tools ran well ahead of the measurements.

So the question to carry into a vendor call is not whether the system hallucinates. It is whether you find out when it does.

The four mechanisms, and what each one leaves behind

Each mechanism catches what the one before it misses, which is why order matters. Grounding narrows what the model can say. Citations expose what it did say. Abstention handles the questions grounding could not serve. Evals tell you whether any of it still works after last Thursday's change.

The most common half-built configuration in the market is grounding with no abstain path: an accurate-looking system with no way to admit a gap, so it fills one.

Five glass rings in a row, receding and shrinking to the right, one violet beam passing through every center, flaring brighter at each ring and ending in a small point of light.
The gate the answer has to clear. What cannot be traced to a source does not leave.

Grounding: make it read before it answers

Grounding means the system retrieves from your documents and data first, then answers only from what it found. On one production system we built and still operate, that is more than 1.3 million documents, split into more than 29 million retrievable chunks. A question about a clause in an agreement gets answered from that agreement, not from a general model's impression of what such agreements usually say.

The failure mode moves rather than disappearing. Retrieve the wrong document and the model answers faithfully from it, sounding exactly as certain. That is why most of the engineering goes into the retrieval layer, not the model. Whether to retrieve at all or train a model on your data is a real fork with a real answer, covered in RAG versus fine-tuning; most business questions want retrieval. RAG is short for retrieval-augmented generation. It means the model looks the answer up before it writes. Building that layer is what AI agents and grounded RAG is.

Citations: make every claim point at a source

A citation earns its keep only if a human can follow it and a machine already has. On the same system, answers pass a seven-stage verifier that checks each claim against the source it cites before anything is served. A claim that cannot be traced fails closed instead of shipping with a hedge.

A large violet glass sphere held in a dark gimbal ring on a knurled base. One beam of light enters from the left, fans into refracted rays inside the sphere, and leaves to the right as a single focused line.
One question in, refracted across the records, one cited answer out.

The residual failure is the citation that is real but does not support the sentence attached to it. That is the most dangerous error in the category, because it survives a casual spot check. Ask any vendor whether verification confirms the cited passage contains the specific value, or merely that a citation exists.

Abstention: give it a way to say it does not know

An honest "I do not have that" beats a confident wrong answer in every workflow where somebody acts on the output. On the same production system, abstain precision holds at 1.000: every time it declined to answer, declining was correct. Zero cross-tenant leaks across both embedding spaces, so one client's data never appeared in another client's answers.

Read the limit of that number, because a vendor quoting it will not. Abstain precision measures whether refusals were justified. It does not measure how often the system should have refused and answered anyway, and it does not measure how often it refuses something it could have handled. Always ask for the refusal rate next to it. A system that abstains on 60 percent of questions can post perfect abstain precision and still be worthless.

Evals: turn "it seemed fine" into a number

An eval suite is a test suite for answers: graded questions with known-correct outputs, run on every change, with thresholds that block a release. The gate on that production system holds zero golden wrong-values and zero determinism violations. The known-answer set stays right, and the same question keeps returning the same answer. A change that drops a threshold gets reverted, not argued about.

A heavy dark bulkhead panel seen straight on, with one circular port bolted into its centre, a machined collar around the opening and violet light filling the glass behind it.
Where a question enters the system, and the only door it has.

Method is its own subject, and how to evaluate a RAG system covers building the golden set and reading the scores. At buying time the test is blunter. No suite and no threshold means nobody knows whether last week's change made the system worse, the vendor included. That work is LLM evals and reliability, and it is the layer teams skip first and regret longest.

MechanismWhat it fixesWhat it still does not fixThe number to ask for
GroundingAnswers invented from model memory.A wrong document is retrieved, then quoted faithfully.Ask for retrieval recall on your own questions.
CitationsClaims nobody can check.A real citation is attached to a claim it does not support.Ask what share of claims are machine-checked against the source text.
AbstentionConfident answers to unanswerable questions.Questions it should have refused and did not.Ask for abstain precision and refusal rate together.
EvalsAnswers that looked fine in the demo.Failures nobody thought to write a test for.Ask for the pass thresholds, and what gets reverted when they fail.

If the budget stretches to two of the four, take abstention and evals. Grounding and citations without them produce a system that is usually right and never tells you which times. Abstention and evals produce a system that is narrower, occasionally frustrating and honest about its own edges. That is the version you can put in front of a customer while you widen it. That ordering also survives a legal or compliance review. The confident-and-unmeasured version does not.

Five translucent violet quadcopters ringed around a faceted glass block at the centre, each firing one thin beam from its nose into the block so the beams form a five-spoke star.
Several checks reading the same answer, so a miss in one is caught by another.

What to demand from any vendor

Take these into the call. Count how many get answered with a number and how many get answered with a paragraph.

  1. Show me one answer, then show me the source it came from. Live, on a question you bring, not a recorded demo. If following the citation takes more than one click, your team will not do it.
  2. What happens when the answer is not in my data? Watch the system decline. A vendor who cannot produce a refusal on request has probably not built an abstain path.
  3. What is your abstain precision, and what is your refusal rate? Both, or neither is meaningful. Precision without a refusal rate hides a system that says no to everything.
  4. Does verification check the value, or only that a citation exists? This separates a real verifier from a link decorator.
  5. Show me the eval suite and the thresholds that block a release. Ask what the last reverted change was. A team with a working gate has a story ready.
  6. Who writes the golden answers? Your domain experts, not the vendor's engineers, or the test measures the wrong thing.
  7. What is retrieval recall on our questions, measured before we sign? A short retrieval test on your real corpus is cheap and predicts most of the outcome.
  8. When it is wrong in production, who finds out and how fast? Logging, monitoring, a named owner. "The user will tell us" is not an answer.

If most come back as prose rather than numbers, you are looking at a demo with a roadmap attached. The same shape of question, aimed wider than hallucination, is in questions to ask an AI development company.

A violet glass beam balance seen head on, its arm engraved with a fine ruler scale and a bright needle at the centre pivot. One pan is empty; the other holds a single calibration weight, and the beam is level.
What gets measured is what stops being argued about.

Where this lands in your budget

These four mechanisms are most of the cost of a production AI system and most of the reason pilots stall. A demo needs a model and a prompt. Production needs retrieval tuned against your corpus, verification, an abstain path and an eval harness with somebody's name on it. Teams price the first and discover the second, which is the pattern behind why AI pilots never reach production.

Budget for the real thing. What an AI agent costs to build breaks down where the money goes, and build versus buy for AI agents covers when an off-the-shelf platform is enough and when the honesty layer has to be yours.

The bar is not a system that never errs. It is a system where every claim has a source. The source is checked before you see it. The system says no when it should. And a number tells you how often all of that holds. Ask for the number. Ask for the failure mode. Ask what gets reverted.

A dark machined reel seen face on, its rim cut with even slots. A single bright violet core burns at the hub and one thin thread of light leaves it to the right and runs off the frame.
One record, lit, with a line running out of it. That line is the citation.

Questions people ask

Why does AI make things up?

A language model predicts the most plausible next words instead of looking a fact up, so a question outside what it learned still produces something that reads correctly. Training and scoring make the habit worse: a guess occasionally earns credit and an admission of uncertainty never does. The fix is not a better-behaved model. It is a system that retrieves the answer from your data first and refuses when the data does not contain it.

Can AI hallucinations be stopped completely?

No. Hallucinations can be made rare, visible and traceable, and the rate can be measured, but no current technique drives them to zero. Any vendor promising zero is overselling. The realistic target is a system where every claim points at the source it came from. It declines when that source is missing. And an eval suite proves both on your own questions before a release ships.

Does RAG stop hallucinations?

Retrieval-augmented generation cuts hallucinations substantially and does not stop them. A Stanford RegLab benchmark of three commercial legal research tools that all use retrieval found hallucination rates above 17 percent for two of them and above 34 percent for the third. Retrieval moves the failure from invention to retrieval error: hand the model the wrong document and it will quote that one faithfully and confidently.

Is there an AI that does not hallucinate?

No general-purpose AI system is free of hallucination, and no serious engineering team claims otherwise. What exists is AI that hallucinates rarely and gets caught when it does. Four things do that: grounded retrieval, automatic claim verification against sources, an abstain path and a gated eval suite. Treat a zero-hallucination claim as a signal that the vendor has not measured its own system.

How do I check whether an AI answer is real?

Follow the citation and confirm the cited passage contains the specific value or statement in the answer, not merely that a plausible document exists. Then ask the same question again and compare, because an unstable answer is an ungrounded answer. If the system cannot show a source for a claim, treat the claim as unverified no matter how confident it sounds.

A long strip of clear glass passing horizontally straight through a heavy dark block. Only the short section inside the block glows violet; the strip is dark and unlit where it leaves on either side.
A model only answers from what is inside the window. Everything outside it is where invention starts.
  1. 4 August 2026Why AI makes up answers, and what stops itHow next-token prediction produces confident invented facts, why the scoreboard keeps rewarding it, and what that means for what you buy.
  2. 4 August 2026RAG vs fine-tuning: what each one costs to ownRAG is short for retrieval-augmented generation. One decision rule, two vendor deprecation clocks you have not planned for, and the two-year cost of owning each approach.
  3. 4 August 2026How to evaluate a RAG system before you trust itRAG is short for retrieval-augmented generation. Six test families, and the threshold to gate each one at. No industry-standard passing score exists, so here is how to set your own.
  4. 4 August 2026Why AI projects fail between the demo and the deadlineFive failure patterns, the symptom each one shows first, and an eight-question checklist to hold your own pilot against at week nine.
  5. 4 August 2026What AI agent development costs, to build and to runThe eight things that move a build quote, the seven lines on a monthly run bill, and a worked example priced from live provider pages.
  6. 4 August 2026Build vs buy AI agents, and the fourth option nobody sells youFour routes to an AI agent, what each one costs you in speed, control and lock-in, and the five-step rule that picks between them.
  7. 4 August 2026Twelve questions to ask before you hire an AI development companyTwelve questions a team that has shipped and operated AI can answer with a number, a mechanism or a name, and the weak answers to listen for.
Four round sieves stacked with gaps between them, each mesh finer than the one above. A broad violet cone of light enters the top sieve and leaves the bottom one as a single narrow beam.
Every stage takes something out. What reaches the answer is what survived all of them.

Start a project

Apply this to your own stack

If a guide left you with a question about your own setup, ask it. No pitch if the answer is no.