failure

Hallucination

A hallucination is when a language model produces output that is factually wrong, fabricated, or unsupported, while sounding confident.

Hallucination is the most discussed failure mode of LLMs. It happens because language models predict plausible next tokens, not verified facts — when ground-truth knowledge is missing or contradictory, the model fills the gap with statistically likely but false content. Common forms include invented citations, fake API signatures, wrong historical dates, and confident answers to questions outside the model's knowledge cutoff. Mitigations include retrieval-augmented generation (RAG), explicit uncertainty prompting ("If unsure say 'I don't know'."), output verification with a second pass, and lower temperature for factual queries.

Common mistakes

FAQ

What is hallucination?

A hallucination is when a language model produces output that is factually wrong, fabricated, or unsupported, while sounding confident.

What are the most common mistakes with hallucination?

Assuming bigger models hallucinate less — they often hallucinate more confidently. Treating hallucination as a prompt-only problem when retrieval is the real fix. Not running factual evals before shipping.

Sources

Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/hallucination.md.