Lesson 6 of 9 · about 18 minutes
Why Chatbots Make Things Up, and What Fixes Help
You'll be able to
- Explain why language models produce confident false statements
- Describe retrieval-augmented generation and search grounding, and what they can and can't fix
- Explain what reasoning models and tool use change
- Check any AI-produced fact before repeating it or relying on it
Ask a chatbot for the history of a small-town newspaper and it may hand you a founding year, a founder's name and a colorful quote from the first editorial. All three can be invented. They read fine. They are formatted like facts. And the model will often defend them if you push back. This is hallucination, and anyone who repeats what a chatbot says needs to understand where it comes from.
Why it happens
Recall lesson 5: a language model picks plausible next tokens. A plausible-sounding founding year and the real one look much the same to that process. For famous facts, the training data repeated the true version thousands of times, so the true version wins. For obscure facts (a county commissioner, a 1962 bond vote, a small band's first album) the model saw little or nothing, and it fills the gap with something that fits the shape.
Recent research from inside two AI companies adds detail.
- The incentive problem. In September 2025 OpenAI published a paper arguing that standard training and testing reward guessing. If a benchmark counts only right answers, a model that guesses on every question beats one that says "I don't know" when unsure. Like a student on a multiple choice test with no penalty for wrong answers. The authors proposed scoring that punishes confident errors more than honest uncertainty.
- The misfire. In March 2025 Anthropic published research tracing the internal circuits of its Claude model. It found a default "can't answer" pathway that switches off when the model recognizes a familiar name. Hallucinations can happen when a name feels familiar but the model knows little else about it. The brake comes off, and there's nothing real behind it.
Hallucinations cluster in predictable places. Learn these and you'll catch most of them:
| High-risk request | Why it's risky | What to do |
|---|---|---|
| Citations, report titles, statute numbers, page numbers | Perfectly regular format, easy to fake | Look up every one in the original source |
| Quotes from real people | Models produce in-character lines | Never repeat an AI-supplied quote without the original recording or document |
| Local and obscure facts | Little or no training data | Treat as a lead, then find the record |
| Recent events | After the model's training cutoff | Use search-grounded tools and check dates |
| Exact numbers, arithmetic, dates | Digits are just tokens to the model | Recompute, or have the model run code |
| URLs | Models produce believable addresses | Click every link |
Grounding: put the sources in front of it
The best fix so far is to stop asking the model to remember and start asking it to read. Retrieval-augmented generation, or RAG, was named in a 2020 paper led by Patrick Lewis at Facebook AI Research. The idea:
When a chatbot shows "Searched the web" and lists sources, it is doing a version of this, often called grounding. So does any tool that lets you upload a PDF and ask questions about it.
Grounding helps a lot. It doesn't make answers trustworthy on its own. The search can pull the wrong documents (an old version of the budget, a different town with the same name). The model can misread a table, merge two sources, or add a "fact" from memory that isn't in any of them. It can cite a real page that doesn't support the sentence attached to it. So open the source and find the sentence.
Example: grounded, still wrong
A volunteer for the invented Ridgeview Gazette uploads the water district's 84-page budget and asks: "How much is the district spending on the new well?" The bot answers $1.2 million and cites page 31.
Page 31 shows $1.2 million, in a column labeled "FY2025 Requested." The adopted figure on page 33 is $940,000. The bot read a real number from a real page and still gave the wrong answer to the question asked. The volunteer caught it only because she went to page 31 and read the column header.
Reasoning models: thinking before answering
Starting with OpenAI's o1 in September 2024, companies trained models to write out a long internal chain of steps before giving a final answer, using reinforcement learning to reward chains that end at right answers. OpenAI reported o1 averaged about 74 percent on the 2024 AIME, a hard high school math competition, with one attempt per problem. GPT-4o averaged about 12 percent. In January 2025 the Chinese lab DeepSeek published R1 with open weights, reporting that reasoning ability could be grown with reinforcement learning alone, without people writing out example reasoning. Today most big model families have a "thinking" mode or setting.
Reasoning helps most on problems with checkable steps: math, code, logic puzzles, multi-step planning. It costs time and money, since the model may produce thousands of hidden tokens before answering. It does not give the model facts it never learned. A reasoning model asked about an obscure local official can reason very carefully toward an invented answer. And the written-out reasoning a model shows you isn't always a faithful account of how it got there; Anthropic's circuit research found a model describing the schoolbook carrying method for addition while internally doing something else.
Tool use: hand the job to the right tool
The other big fix is to stop making the model do everything itself. With tool use, the model can decide mid-answer to call a calculator, run a short program, search the web, or query a database, then read the result and carry on. Ask a model with a code tool for the average of 400 numbers and it writes a few lines of code and runs them, instead of predicting digits. In November 2024 Anthropic released the Model Context Protocol, an open standard for wiring tools and data into AI apps, which other major companies have since adopted.
| Approach | What it fixes | What it doesn't fix |
|---|---|---|
| Plain chatbot from memory | Fast, good for brainstorming, drafting, explaining well-known topics | Obscure facts, recent events, exact figures |
| Grounding / RAG / web search | Recent and specific facts, gives you sources to check | Misreading sources, wrong documents retrieved, fake support |
| Reasoning mode | Multi-step math, code, logic, planning | Missing facts; adds cost and wait time |
| Tool use (code, calculator, database) | Exact arithmetic, data analysis, live lookups | Calling the wrong tool or misreading its output |
Common mix-ups
- Claim: Newer models don't hallucinate. What the evidence shows: Rates have dropped on many benchmarks, but every major company still warns users to check important outputs. OpenAI's own 2025 paper calls hallucination a lasting challenge.
- Claim: If you ask "are you sure?" it will catch its mistakes. What the evidence shows: Sometimes. Models also cave on correct answers when challenged, because agreeable replies were rewarded in training. Check against a source instead.
- Claim: A cited link proves the claim. What the evidence shows: Only if the page says it. Grounded models sometimes attach real links to sentences the page doesn't support.
Reporting angle
When a public agency uses a chatbot to answer residents (permit questions, utility billing, benefits), ask: what documents is it grounded in, and how often are they updated? Who reviews wrong answers, and is there a log of conversations? Has anyone tested it with the 20 most common questions, and what share did it get right? A records request for the testing results and the vendor's contract terms on accuracy is a good start. Then test it yourself with five questions you already know the answers to, and save screenshots with dates.
Research angle
- Why language models hallucinate: OpenAI's explanation of how training and grading reward guessing.
- Retrieval-Augmented Generation paper: the original paper on grounding answers in retrieved documents.
- Learning to reason with LLMs: OpenAI's description of reasoning models.
- DeepSeek-R1 paper: an open account of how a reasoning model was trained.
- Vectara hallucination leaderboard: a public, regularly updated test of how often models invent details when summarizing.
Check yourself
1. Why does a language model sometimes invent a citation to a report or a quote that never existed?
A made-up citation has the same shape as a real one. A plain model predicts plausible text; it doesn't look anything up unless a tool is added.
2. According to OpenAI's September 2025 paper, why do training and testing practices encourage hallucination?
If a test only counts right answers, guessing beats honest uncertainty. The paper argues scoring should penalize confident errors more than abstaining.
3. What does retrieval-augmented generation (RAG) do?
RAG searches a document set or the web, then pastes the best passages into the prompt. The model answers with sources in front of it.
4. A chatbot with web search gives you an answer with three links. What should you still do before repeating the fact at a meeting or online?
Grounded models can still misread a source, cite the wrong page or blend two sources. The link is where your checking starts.
5. What did OpenAI's o1 (September 2024) add compared with earlier chatbots?
OpenAI reported o1 scored about 74 percent on the 2024 AIME math exam with one try per problem, against about 12 percent for GPT-4o, by spending time reasoning first.
6. A model asked to multiply two 9-digit numbers gets it right only when it runs code. What does that show?
A calculator or code runner does arithmetic exactly. The language model's strength is deciding when to call the tool and explaining the result.
Terms in this lesson
- Hallucination
- When an AI model states something false or invented as if it were true. Also called confabulation.
- Grounding
- Tying a model's answer to specific sources, such as search results or your own documents, put in its context.
- RAG
- Retrieval-augmented generation: search first, paste the relevant passages into the prompt, then generate the answer from them.
- Reasoning model
- A model trained to work through a problem step by step internally before giving its final answer, trading time for accuracy.
- Tool use
- A model calling outside programs, such as a search engine, calculator or code runner, and using their results.
Sources
- OpenAI: Why language models hallucinate (September 5, 2025) checked 2026-10
- Anthropic: Tracing the thoughts of a large language model (March 27, 2025) checked 2026-10
- Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (arXiv 2005.11401) checked 2026-10
- OpenAI: Learning to reason with LLMs (September 12, 2024) checked 2026-10
- DeepSeek-AI, DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (arXiv 2501.12948) checked 2026-10
- Anthropic: Introducing the Model Context Protocol (November 25, 2024) checked 2026-10