Definition
AI Hallucination
An AI hallucination is a confident-looking output that is false, unsupported or not grounded in the provided context.
Short definition
An AI hallucination is an output that sounds plausible but is wrong, invented or unsupported. The term is most often used for language models that produce false facts, fake citations or incorrect reasoning with a confident tone.
In practice, a hallucination does not always look absurd. It often appears as a polished answer with a clear structure, confident wording and just enough real information to feel trustworthy. That is what makes it risky: the user sees fluent language, not the uncertainty behind the generation process.
How it happens
Language models generate likely text, not guaranteed truth. If the prompt is vague, the model lacks relevant context or the task requires exact facts, it may fill gaps with plausible patterns learned during training.
Hallucinations become more likely when the model:
- lacks access to current information,
- receives too little context,
- gets ambiguous or conflicting instructions,
- is asked a question that cannot be answered from the available evidence,
- is pushed to provide citations, numbers, legal details or source names without verification tools.
A model can also blend true and false details. It may name a real company and a real executive, then invent a report, quote or date around them. Mixed hallucinations are harder to catch than outputs that are obviously disconnected from reality.
Types of hallucination
Common types include:
- factual hallucinations: the model gives the wrong date, name, figure, definition or event;
- source hallucinations: the model invents links, papers, citations, authors or case numbers;
- context hallucinations: the model answers beyond the provided material even though it was supposed to stay grounded;
- reasoning hallucinations: the answer sounds logical, but the conclusion does not follow from the evidence;
- format hallucinations: the model returns the requested structure, but some fields are invented.
In business systems, contextual and source hallucinations are often the most dangerous. Users assume the answer came from an internal knowledge base, policy document or cited source, while the model may have filled in missing details on its own.
Example
A model might summarize a legal case and include a citation that does not exist. The answer may look polished, but the source is fabricated.
Another example: an internal assistant is asked about the company travel-expense policy. It quotes part of the policy correctly, but adds a reimbursement limit that is not in the document. The answer may sound routine, yet it can lead to bad operational decisions.
Hallucinations also appear in code. A model may suggest a library method that matches the naming style of the package but does not actually exist. The code looks credible until it fails to compile or behaves differently from the explanation.
Why it matters
Hallucinations are one of the main reasons AI outputs need evaluation and review. Mitigation strategies include RAG, citations, constrained outputs, tool checks and human approval in high-risk workflows.
The issue is not simply that models make mistakes. The issue is that they can make mistakes persuasively. In low-risk uses such as brainstorming or drafting, that may be acceptable. In customer support, healthcare, finance, law, cybersecurity or executive reporting, a hallucination can create real cost, bad advice or compliance exposure.
Mature AI deployments therefore do not assume that the model will always be correct. They design the workflow so uncertainty can be detected, sources can be checked and the impact of errors can be limited.
How to reduce hallucinations
Hallucinations cannot be eliminated completely, but their risk can be reduced. Practical methods include:
- using RAG so the model answers from specific documents;
- requiring citations or references to source passages;
- instructing the model to say "I do not know" when evidence is missing;
- constraining outputs to JSON fields, tables, checklists or other structured formats;
- verifying facts through tools, APIs, databases or search;
- testing responses against common and adversarial questions;
- keeping high-risk decisions under human review.
A better prompt helps, but prompting alone is not a complete safety layer. The strongest results come from combining instructions, high-quality context, automated validation and clear rules for when an AI answer needs approval.
How to spot a hallucination
Warning signs include very specific details without sources: dates, amounts, quotes, report names, case numbers, version numbers or links. Be especially careful when an answer sounds unusually smooth despite limited input.
If the output affects a decision, verify it outside the model. A useful rule of thumb is simple: the more confident the tone and the higher the cost of being wrong, the more verification you need.