Why AI Hallucinates: Simple Examples and How to Check Answers
But is it supported?
Raju asks his AI helper to write a description of his ginger tea. The draft says, “Our award-winning tea has delighted customers since 1995.” It sounds impressive. But Raju never mentioned an award or an opening year. The sentence is polished—and its factual claims are unsupported. This is the problem we will learn to spot today.
01. What is an AI hallucination?
An AI hallucination is generated content that is false or unsupported but presented as though it were factual. Examples include an invented source, a made-up delivery date, or a summary that adds information absent from its source. Terminology varies across research; here we focus on claims readers should verify.
Claim
This tea won an award
Evidence
No award information supplied
Action
Verify the claim or remove it
02. Why can a language model do this?
A language model learns patterns that help it generate plausible continuations. Producing a likely sentence is not the same task as checking every claim against reality. If the needed fact is missing, it may still produce a familiar-looking answer. Its training and later tuning can reduce this behavior without eliminating it.
Generation
Produce a plausible continuation
Evidence
Locate information about the claim
Verification
Check whether evidence supports it
03. Raju’s missing delivery date
Raju gives the model an order note: “Order placed Monday. Delivery date not confirmed.” He asks when the milk will arrive. An answer such as “Tuesday morning” fills a gap without evidence. A suitable source-based answer is: “The note does not confirm a delivery date. Please check with the supplier.”
Known
Order placed Monday
Unknown
Confirmed arrival date
Useful response
Say what is missing and how to check
04. Notice common warning signs
Check precise dates, prices, quotations, statistics, named awards, and references especially carefully. Also watch for an answer that contradicts the source or gives details the source never mentions. These are reasons to investigate, not an automatic test that labels every detailed answer as false.
Exact details
Dates, quantities, prices
Attribution
Quotes, authors, studies
Source mismatch
Added or contradicted information
05. Separate facts, inferences, and unknowns
Suppose a sales record shows that Raju sold more tea on two rainy days. That observation is a fact within the supplied record. “Rain caused the increase” is an inference that the record alone does not establish. Tomorrow’s exact sales remain unknown. Labeling these categories helps prevent guesses from becoming apparent facts.
Observed
Two rainy days had higher sales
Inferred
Rain may have contributed
Unknown
Tomorrow’s exact sales
06. Give the model a clear evidence boundary
Provide the relevant document or confirmed facts and specify what to do when an answer is absent. Asking it to use only the supplied source and mark missing details can help reduce unsupported additions. It remains an instruction to be checked, not a guarantee the model will follow perfectly.
Scope
Use the supplied order note
Support
Identify the supporting passage
Missing detail
Say “not stated” instead of guessing
Suitable answer: Not stated in the source. Supporting text: “Delivery date not confirmed.”
07. A citation is a starting point, not proof
If an AI answer includes a link, open it. Confirm the source exists, then find the passage supporting the exact claim. A real article can be cited for something it never says. Check dates and scope too: an older announcement might not describe the current situation.
Exists?
Does the source actually open?
Supports?
Does it state this claim?
Applies?
Right date, topic, and context?
08. Does web search or RAG solve everything?
Retrieval-Augmented Generation, or RAG, supplies retrieved material to a model as context for its answer. This can help when the needed facts are in relevant sources. However, the system might retrieve the wrong document, use outdated information, or misread a correct passage. The final claims still need checking.
Retrieve
Find relevant source material
Read
Interpret it correctly
Answer
Stay within what it supports
09. Will temperature zero stop hallucinations?
No. As we learned in Lesson 7, temperature changes token-selection probabilities. It does not verify facts. A system can repeatedly produce the same unsupported answer. Similarly, asking the same model “Are you sure?” can trigger a revision, but agreement with its earlier answer is not independent confirmation.
Low variation
The wording may repeat
Self-check
The model may revise or agree
Evidence check
Compare with an actual source
10. Use a four-step publishing check
Before publishing Raju’s description, extract each factual claim: award, opening year, ingredients, price. Compare each with the relevant record. Correct unsupported details or remove them. Then read the revised draft once more to make sure the edit did not introduce another claim.
Identify
List factual claims
Compare
Find supporting evidence
Decide
Keep, correct, qualify, or remove
Review
Check the final wording
11. A developer example: an invented method
A coding assistant might suggest a Java library method that looks sensible but does not exist in your installed version. Check the official documentation for that version, compile the code, and test representative inputs. Compilation can catch a missing method; it cannot prove that the business logic is correct.
API existence
Read version-specific documentation
Syntax and types
Compile the code
Behavior
Test normal and edge cases
12. Decide when an answer is safe to use
For a fictional tea-shop slogan, imaginative wording may be welcome. For a real price, ingredient list, or delivery promise, unsupported invention is a problem. Match the review to the consequences. Medical, legal, financial, or safety-critical decisions need suitable authoritative evidence and qualified review.
Fiction
Invent within the requested story
Factual writing
Support factual claims
High-stakes use
Use appropriate expert review
Practice: spot the unsupported detail
Raju sells ginger tea for ₹20. His shop is closed on Sundays.
AI draftEnjoy Raju’s award-winning ginger tea for ₹20, available every day.
Which parts are supported, unsupported, or contradicted?
Reveal the explanation
- Supported: Ginger tea costs ₹20.
- Unsupported: “Award-winning.” No award is mentioned.
- Contradicted: “Every day.” The source says the shop is closed on Sundays.
Corrected version: Enjoy Raju’s ginger tea for ₹20. The shop is closed on Sundays.
Quick questions
Does confident wording mean the AI knows?
No. Confidence in the wording is not proof that a claim has been checked.
Can I prevent every hallucination with one prompt?
No. Clear instructions and reliable source material help, but you still need verification appropriate to the task.
Is “I don’t know” a bad answer?
When the necessary information is missing, acknowledging the gap is more useful than inventing a fact. A good response can also explain what information is needed next.
A convincing answer can still be unsupported.
Provide relevant sources. Allow uncertainty. Open citations. Check each important claim before using it.
Next lesson: Embeddings explained simply
How can a system find related text even when the words are different? We will explore numerical representations and semantic search through Raju’s tea shop.
Join the conversation: What would you check first in an AI-written article: its dates, quotations, or sources—and why?
- Anthropic: Reduce hallucinations
- Anthropic: Tracing the thoughts of a large language model
- Farquhar and colleagues: Detecting hallucinations using semantic entropy
The examples and exercises are fictional teaching scenarios, not benchmark results.



Comments
Post a Comment