How a chatbot writes an answer
A large language model (LLM) is trained on huge amounts of text. During that training it learns which words tend to follow which, at a scale that lets it write grammatical, well-organised sentences on almost any subject.
When you send a question, the model builds its reply one small piece at a time. At each step it scores the possible next words and picks a likely one. The image at the top of this page shows the idea: for “The first person to walk on the Moon was…”, a well-trained model gives a very high score to “Neil”, because that continuation appears consistently in its training text.
That is why chatbots are often right about widely documented facts. The pattern is strong, so the most likely continuation is also the true one.
Why “plausible” is not the same as “verified”
The same mechanism has no built-in step that checks whether a sentence is true. It produces what is likely given the patterns it learned. For a famous fact, likely and true usually coincide. For a rare or very specific fact, they can come apart.
An illustrative example — not a real transcript
Imagine asking a chatbot for “three academic papers about the history of bus timetables in a small coastal town, with authors and years”. Few such papers exist. A model can still produce three entries that look exactly like citations: realistic author names, plausible journal titles, sensible years. Each piece follows the pattern of a citation. None of it has been checked against a library catalogue.
| A plausible-sounding answer | A verified fact | |
|---|---|---|
| Where it comes from | Patterns the model learned in training | A source you can open: a document, record or dataset |
| What it guarantees | Fluency and the right format | That someone can point to evidence |
| How to tell | You can’t, from the wording alone | It links to, or names, a source you can check |
OpenAI’s researchers give a simple illustration of why some details are hard: spelling and grammar follow consistent patterns, so models master them as they grow. But arbitrary facts that appear rarely — their example is a pet’s birthday — can’t be predicted from patterns alone, and that is where hallucinations arise.

Why models guess instead of saying “I don’t know”
In a paper published in September 2025, OpenAI argued that hallucinations persist partly because of how models are trained and tested. Many evaluations score only accuracy: the share of questions answered correctly. Under that kind of scoring, a confident guess sometimes earns a point, while “I don’t know” never does — like a multiple-choice exam where leaving a question blank guarantees zero.
Over thousands of questions, a model that guesses can look better on a scoreboard than one that admits uncertainty, even though it makes more confident errors. The researchers propose scoring that penalises confident errors more than honest uncertainty.
This doesn’t mean newer models aren’t improving. It means a chatbot’s confidence is not, by itself, evidence that it is right.
When to be most careful
Hallucinations are more likely when you ask for:
- Exact details: names, dates, figures, prices, quotations and citations.
- Rare or very specific subjects that appear little in public text.
- Recent events, which may have happened after the model’s training data was collected.
- Sources: a model can produce a reference in perfect format that does not exist.
Some assistants can search the web or read documents you provide, and show where an answer came from. That makes checking much easier. It doesn’t remove the need to check: an assistant can still summarise a source inaccurately or attach a claim to the wrong source.

How to check an AI answer
Ask where the claim comes from. If the assistant gives sources, open them. A link that doesn’t exist, or a page that doesn’t say what was claimed, is a warning sign.
Check anything you will act on against a primary source — the official documentation, the original study, the government page, the company’s own terms.
Treat exact quotes and citations with extra suspicion. Search for the quoted words or the paper’s title yourself.
Rephrase and ask again. If you get a different specific answer each time, the model is probably guessing.
For medical, legal or financial decisions, use the AI answer as a starting point for questions to ask a qualified person, not as the answer.
What this doesn’t mean
A chatbot isn’t “lying” in the human sense — it has no intention to deceive. And it isn’t useless: it can be very good at explaining, summarising and drafting. The point is narrower: fluent text and verified facts are different things, and only one of them comes with evidence.
Related guides
- AI, Machine Learning and Deep Learning: What's the Difference?: what a language model is.
- How to Use AI Chatbots Safely: 10 Privacy Tips: use chatbots with care.
