This is one of the most important things to internalize: LLMs make things up, and they do so confidently. This is called hallucination.
Why Hallucinations Happen
Remember: an LLM doesn't "look up" answers.
It generates text by predicting the most plausible next token.
Most of the time, the most plausible text is also accurate, because the model has seen many true statements and learned to reproduce them.
But sometimes:
- The fact you're asking about wasn't in its training data
- The fact was in the training data but garbled or contradictory
- The model is interpolating — making something up that sounds like the kind of thing that would be true
A textbook example: an LLM, asked for citations to scientific papers on a topic, may produce realistic-looking citations with plausible authors, journals, and years — none of which actually exist.
The references sound like real citations because the model learned the format of citations very well, even when it didn't have specific accurate ones to reproduce.
A Useful Frame
It helps to think of an LLM as a very confident author writing fiction.
It produces text in the style of a knowledgeable expert, and often that text is also true.
But the model is fundamentally optimized to be plausible, not correct.
How to Manage Hallucinations
You can't eliminate hallucinations, but you can manage them:
- Verify factual claims that matter, especially names, dates, statistics, and citations.
- Ask the model to indicate uncertainty. "If you're not sure, say so" actually works to some extent.
- Provide source material in the prompt. If the model has the relevant information right in its context window, it's much less likely to hallucinate. This is the entire premise of RAG.
- Use tools that can ground responses. Many modern AI products include web search, calculator access, or database lookups. These reduce hallucination because the model isn't relying on its memory.
Hallucination is also a major reason agentic AI matters: agents can verify facts, look things up, and double-check their own work in ways a single text completion can't.