hallucination
An LLM output that is fluent and confident but factually wrong, including made-up citations, library functions, or quotes.
Definition
A hallucination is an LLM response that sounds correct but is factually wrong: fabricated citations, non-existent library functions, invented product features, false attributions. Hallucinations are a structural artefact of next-token prediction, not a bug. Mitigations: ground answers via RAG, require citations to retrieved sources, prefer extraction over generation when accuracy matters.