# AI hallucination

> Canonical: https://skillalmanac.com/glossary/hallucination | Verification status: pending | Index status: not offered to search engines

A hallucination is model-generated content unsupported by relevant grounding or presented as factual despite being false. Source faithfulness and external factuality are different criteria; requested fictional invention is not automatically a hallucination.

Also called: hallucination, AI hallucinations, hallucinations, confabulation.

## In plain language

A model might invent a citation or state a fact that conflicts with the evidence it was given. Fluent or confident wording does not make the claim reliable. First decide what the answer must be faithful to: a supplied document, current external facts, or both. An intentionally fictional story is a different task and should not automatically be graded as a factual failure.

## Technical definition

Usage varies across tasks. Summarization research distinguishes faithfulness to the input from factuality outside it. An externally true detail can still be unsupported in a source-bound summary, while a summary can faithfully repeat an inaccurate source. Evaluators should name the criterion and supporting evidence. Retrieval, quoting and consistency checks can support evaluation, but none is proof of truth by itself; mitigation effectiveness must be measured for the actual task.

## How it shows up when you use agents

An unsupported file path can cause a failed command; an invented package name can misdirect installation; a fabricated citation can enter a report. Check the relevant files, package registry or source passage before relying on the claim. A tool result also needs interpretation: citing a real page does not establish that it supports the sentence beside the citation.

For a source-bound summary, compare each factual claim with the supplied text. For a question about the current world, also check current external evidence. Log retrieved passages so you can distinguish a retrieval problem, a source problem and a generation problem. These can overlap.

## Common confusions

- **Faithfulness versus factuality.** Support in a document and truth outside that document are separate evaluation questions.
- **Fiction versus factual assertion.** Inventing a character on request is not automatically a hallucinated factual claim.
- **Confidence versus verification.** Tone and repeated agreement are not independent evidence.
- **Error versus intent.** An unsupported output does not by itself establish intentional deception or settle questions about a model's mental states.
- **Access versus accuracy.** Web or file access does not guarantee that an answer uses the evidence correctly. See the [claim-checking guide](/learn/ai-hallucination-what-to-check).

## Worked examples in this catalogue

### [AI Hallucination: What to Check in Agent Output](https://skillalmanac.com/learn/ai-hallucination-what-to-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide gives a routine for reviewing agent output: split it into claims, tag where each came from, ask for exact quotes, read the source yourself, and remove any claim with no support.

Why it exercises the concept: It turns the definition into a checklist you can run on any answer, and it names the common failures such as invented quotes and real quotes that do not support the claim.

### [faithful-summary-writer](https://skillalmanac.com/skills/skill-almanac/faithful-summary-writer)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A summary of one document in which every sentence traces to the source, followed by a check for invented or altered facts.

Why it exercises the concept: Summaries are where small invented details slip in. The skill makes each sentence point back to the text, so a hallucination shows up as a sentence with no source.

### [library-docs-lookup](https://skillalmanac.com/skills/skill-almanac/library-docs-lookup)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An answer to a library question taken from the installed package's own files, with the file and line cited.

Why it exercises the concept: A coding agent that answers from memory can invent an API that does not exist. Reading the installed files and citing the line replaces recall with something you can open.

### [discernment-nudge](https://skillalmanac.com/skills/anthropic/discernment-nudge)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A few follow-up questions added after a substantive answer, prompting you to check the facts and assumptions behind it.

Why it exercises the concept: It does not stop hallucinations. It builds the habit of questioning a fluent answer before you rely on it.

## Related terms

- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [Context window](https://skillalmanac.com/glossary/context-window.md)
- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [LLM-as-a-judge](https://skillalmanac.com/glossary/llm-as-a-judge.md)
- [Explainable AI (XAI)](https://skillalmanac.com/glossary/explainable-ai.md)
- [TruthfulQA](https://skillalmanac.com/glossary/truthfulqa.md)

## Sources

- [Reduce hallucinations](https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations), Anthropic (Claude Docs) (accessed 2026-11-23)
- [What Are AI Hallucinations?](https://www.ibm.com/think/topics/ai-hallucinations), IBM (accessed 2026-11-23)
- [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://arxiv.org/abs/2005.11401), arXiv (Lewis et al.) (accessed 2026-11-23)
- [On Faithfulness and Factuality in Abstractive Summarization](https://aclanthology.org/2020.acl-main.173/), Maynez et al. (accessed 2026-11-24)
- [SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models](https://arxiv.org/abs/2303.08896), Manakul et al. (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above. Independent source and example-target verification is pending. [Glossary index](https://skillalmanac.com/glossary.md).
