Hallucination
A fluent, confident answer that is false or not supported by the sources.
A hallucination is a fluent, confident answer that is false or not supported by the sources. Models generate likely text, not checked facts. They invent citations, APIs, numbers and names, especially when asked about things they cannot know. Grounding in sources, asking for quotes and allowing “I do not know” all reduce it; none removes it.
NIST’s Generative AI Profile (NIST AI 600-1, July 2024) calls the same risk confabulation and lists it among the risks specific to generative AI. Two kinds matter in practice. An answer can contradict the documents it was given, which faithfulness metrics measure. Or it can be confidently wrong about the world when no source was given at all, which is common with recent events, niche products, people and exact figures. Lower temperature makes output more repeatable, but a repeated wrong answer is still wrong.
RAG and grounding cut hallucinations by giving the model the right text, and citations let a reader check each claim. Both fail when retrieval brings back the wrong documents, so measure retrieval separately with evals. A common mistake is treating the model’s stated confidence as evidence: it is generated text like the rest of the answer.
Sources
- NIST: Generative AI Profile (NIST AI 600-1) nvlpubs.nist.gov
Related terms
- RAG (retrieval-augmented generation): Finding relevant documents first and putting them into the prompt, so the model answers from them.
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Structured outputs: The model’s answer is constrained to match a JSON schema you provide.
- Faithfulness (groundedness): A RAG metric: the share of claims in an answer that are supported by the retrieved sources, not by the model’s memory or invention.
- Grounding: Tying a model’s answer to specific supplied sources, such as retrieved documents or search results, instead of its training memory.
- Citations (source attribution): Links from each claim in an AI answer to the passage it came from, so a reader can verify it.
