Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

Glossary · Data Science & AI

Hallucination

Also called: AI hallucination · confabulation

When an AI model produces a fluent, confident answer that is false or unsupported, such as an invented fact, number or citation.

Definition

A hallucination is output from a generative model that sounds plausible but is not grounded in its inputs or in reality. It happens because language models generate likely-sounding text rather than looking facts up, so gaps in training data, ambiguous prompts or requests for very specific details can lead to fabricated names, figures, quotes or sources. Hallucinations are especially risky because they are delivered in the same confident tone as correct answers. Mitigations include supplying source documents through retrieval, asking the model to quote its sources, and verifying any fact that matters against a primary source.

Worked example

Hypothetical scenario: asked for academic support for a pricing claim, a chatbot returns three journal articles with authors, years and page numbers. A library search shows two of them do not exist, so the analyst cites only the verified source.

Guides

  • Large Language Model: A neural network trained on very large amounts of text to predict the next token, which lets it generate, summarize, translate and reason over language.
  • Retrieval-Augmented Generation: A technique that retrieves relevant documents from a trusted source and adds them to a language model's prompt so its answer is grounded in that material.
  • Generative AI: AI systems that produce new content, such as text, images, code or audio, by learning patterns from large amounts of existing data.
  • Prompt: The instructions, context and examples given to a generative AI model to steer what it produces.
  • Context Window: The maximum amount of text, measured in tokens, that a language model can consider at once, covering the prompt, any documents supplied and its own reply.

Courses

More in Data Science & AI

All glossary terms