Hallucination
A hallucination is when an AI model generates information that sounds plausible but is false or unsupported by any real source. It is the central reliability risk in AI systems, mitigated with grounding, retrieval, and verification.
- Glossary
- Updated 2026
A hallucination is output from a large language model that is fluent, confident, and wrong — or at least unsupported by any real evidence. It can take the form of an invented citation, a quote attributed to someone who never said it, a function that doesn't exist in your codebase, or a precise-sounding number with no basis in the data. The danger is that hallucinations rarely look like errors; they read exactly like the model's correct answers.
It happens because a model generates language by predicting the most likely next token, not by consulting a verified record of facts. When the answer is well-represented in training data, that prediction is usually right. When the question is obscure, ambiguous, or outside what the model learned, it still produces a smooth continuation — and that gap is where fabrication creeps in. This matters acutely for autonomous systems: an AI agent that acts on a hallucinated fact can take a wrong action, not just give a wrong answer.
Consider a support agent asked about a refund policy that isn't in its training data. Left to memory, it might confidently invent a "30-day window" that doesn't exist. The fix is grounding: with retrieval-augmented generation, the agent fetches the actual policy document and answers only from that text, while guardrails instruct it to cite the source or reply "I don't know" when nothing relevant is found. That combination — ground the answer, then verify it — is the practical defense against hallucination.
Hallucination FAQ
A hallucination is when a language model produces output that sounds confident and plausible but is actually false or unsupported by any real source — an invented citation, a made-up statistic, a non-existent API, or a fabricated quote. The model isn't lying in a human sense; it is predicting fluent text, and sometimes the most fluent continuation is one that isn't grounded in fact.
Build agents that don't make things up
Ground answers in your own data with retrieval and guardrails. Free to start — no credit card required.