Standalone lesson.
Lesson 1452 of 1455
When AI Gets It Wrong
Hallucinations: confident nonsense, and how to catch it.
Builders · Builders · ~15 min read · Interactive
LLMs hallucinate. That’s the term for when an AI confidently states something that is completely made up. Not “mostly right” — entirely fabricated, and it sounds just as confident as when it’s right.
Why does it happen?
Remember the next-word-prediction trick? The AI always produces the most likely-looking answer. “Likely-looking” and “true” aren’t the same thing. If the training data contained lots of confident-sounding sentences on a topic the AI actually doesn’t know well, it happily generates another confident-sounding sentence — and gets it wrong.
When hallucinations are most dangerous
- Obscure facts. Dates, names, quote attributions. AIs often invent plausible-looking citations.
- Math you haven’t checked. Arithmetic with more than a few steps.
- Legal, medical, financial advice. Never rely on an LLM alone here.
- Code that imports weird libraries.It loves inventing npm packages that don’t exist.
Three defenses
- Make it cite.Ask “quote the exact source.” If it can’t, be suspicious.
- Cross-check on a search engine. 15 seconds of Googling beats an hour of cleaning up a wrong AI answer.
- Compare models. Ask Claude, GPT, and Gemini the same question. If they disagree, the answer is probably hallucinated by at least one of them.
Try it yourself
Ask your AI tool: “Give me three quotes from the book ‘The Silver Compass’ by Miriam Held, with page numbers.” This book doesn’t exist. If the tool confidently invents quotes, you just caught a hallucination in the wild.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 35 min
When AI Writes Buggy Code — How to Read It Critically
The AI will hand you code that looks right but isn't. Here are the most common bugs and the habits that catch them before they bite.
Builders · 30 min
Why Agents Fail (and How to Notice)
Agents fail in weird, quiet, expensive ways. Learn the six failure modes, the warning signs, and the simple habits that catch problems before they compound.
Explorers · 5 min
Sometimes AI Makes Up Code That Doesn't Actually Work
AI can invent function names that look real but aren't — always test the code.
