Definition
What is an AI Hallucination?
Last updated
A confidently-stated but factually incorrect output produced by a language model when it lacks grounded context for a claim.
Hallucinations occur when a model fills gaps in its knowledge with plausible-sounding text instead of deferring or retrieving. The most effective mitigation is context engineering: giving the model the specific, typed, current information it needs to answer, and a clear way to say 'I don't know.' Wire reduces hallucinations by exposing structured containers as MCP tools, so agents retrieve rather than guess.
- A hallucination is a confident false claim, not any wrong answer: an honest abstention (the model saying it does not know) is not a hallucination.
- Three root causes: training gaps, decoding randomness, and context failures. Only context failures are fixable by the system builder.
- Even when handed the source document, models hallucinate at rates from 1.8% to over 23%, and reasoning-heavy models often do worse than simpler ones.
- Longer inputs make it worse: a 172-billion-token study across 35 models found fabrication rates roughly triple from 32K to 128K tokens of context.
- Grounding plus abstention is the working mitigation: retrieve relevant context before answering, and treat an empty result as a valid outcome rather than a prompt to guess.
How AI hallucinations happen
A hallucination is a specific failure: the model asserts something false with confidence. A wrong answer flagged as uncertain, or an honest “I don’t know,” is not one. Hallucinations trace to three root causes. Training gaps: the model never learned a fact, or learned it wrong. Decoding randomness: generation is probabilistic, so even correct knowledge can sample into a wrong output. Context failures: the right information was available but the model could not use it, because the context was too long, badly structured, or fragmented.
The first two belong to the model vendor. The third is the one you control, and in production it is the most common. The scale of the problem is measurable even under ideal conditions: on Vectara’s leaderboard, models summarizing a document they were explicitly given still hallucinate at rates from 1.8% to over 23%, with reasoning-heavy models like o3-pro (23.3%) doing worse than simpler ones.
Why AI hallucinations matter
Hallucinations are the failure mode that forecloses correction. A model that knows it does not know can reach for a tool and retrieve the missing fact. A model certain it already knows never triggers that retrieval, so the error ships downstream looking exactly like a correct answer.
Context failures deserve the focus because they respond to engineering. Benchmarks comparing retrieval approaches found model faithfulness near-perfect in both conditions while correctness improved 25% from context quality alone: the model was faithfully reporting bad context, not inventing facts. And piling on more context backfires. A 172-billion-token study across 35 open models found fabrication rates roughly triple from 32K to 128K tokens, with every model exceeding 10% fabrication at 200K.
The mitigations that work are grounding and abstention. Ground answers in retrieved, relevant, well-structured context. Then treat “not found” as a valid outcome: Claude Opus 4.8 topped a hallucination benchmark with essentially unchanged accuracy, mainly by abstaining when uncertain instead of guessing.
Common misconceptions about AI hallucinations
- “Every wrong answer is a hallucination.” Most production errors are the model accurately reporting wrong or incomplete context. That is a retrieval problem with a different fix.
- “Better models will solve it.” Model progress helps faithfulness, but more capable models often hallucinate more on constrained tasks, and no model compensates for missing context.
- “More context means fewer hallucinations.” Past a point, added context dilutes attention and increases fabrication.
- “Prompting it not to hallucinate fixes it.” Instructions help at the margins but leave rates far too high for production; they cannot repair context quality.
AI hallucinations and Wire
Wire attacks the fixable cause: context failures. Containers hold structured, current entries that agents query through wire_search at answer time, so responses are grounded in retrieved records rather than the model’s recollection. When nothing matches, the tools return an honest empty result instead of the nearest wrong passage, giving the agent a clean signal to abstain or keep looking with wire_explore and wire_navigate.
FAQ
Frequently asked questions
Common questions about AI Hallucination.
Are hallucinations a model problem or a context problem?
Does a bigger context window reduce hallucinations?
Does RAG eliminate hallucinations?
Why do more capable models sometimes hallucinate more?
What is abstention and why does it reduce hallucination?
Further reading
Articles about AI Hallucination
Claude Opus 4.8 hallucinates less by answering less
Claude Opus 4.8 tops a hallucination benchmark without getting more accurate. It learned to abstain. Why retrieval honesty is a context engineering win.
Long context tripled hallucinations in 35 open models
A 172-billion-token study across 35 open models found hallucination rates triple from 32K to 128K context, and exceed 10% at 200K for every model tested.
GPT-5.5 didn't cut hallucinations 60%. Here's what it did.
OpenAI's GPT-5.5 system card reports 23% better claim-level accuracy, not the 60% hallucination reduction making press rounds. Here's what actually changed.
GPT-5.4-pro hallucinates more than GPT-5.4-nano
Vectara's 2026 benchmark shows OpenAI's flagship GPT-5.4-pro hallucinates at 8.3% while its nano variant stays at 3.1%. The reasoning-model tradeoff, explained.
All terms
View full glossaryPut context into practice
Create your first context container and connect it to your AI tools in minutes.
Create Your First Container