Detecting & Mitigating Hallucinations
Hallucinations are confident but false LLM outputs. Learn why they happen, how to detect them, and concrete techniques to reduce them in production.
What is a Hallucination?
A hallucination is when an LLM produces text that is fluent and confident but factually wrong or unsupported by any source.
Because the output looks authoritative, hallucinations are dangerous in user-facing apps.
Why They Happen
LLMs predict the most likely next token, not the truth. With no grounding, they fill gaps with plausible-sounding inventions.
- Missing knowledge in training data
- Ambiguous or leading prompts
- Pressure to always answer
All lessons in this course
- LLM Evaluation Metrics & Benchmarks
- Human-in-the-Loop Feedback Systems
- Prompt Injection & Security Best Practices
- Detecting & Mitigating Hallucinations