Johan Kristensson
← Back to all articles
Foundations

What Is AI Hallucination? And How Do You Deal With It?

· Updated · 3 min read

"Hallucination" is the word for when an AI states something false with full confidence. It doesn't hedge or sound unsure. It says it as fact, in the same tone it uses when it is right.

It is the most important limitation of today's AI to understand. It doesn't mean the technology is broken. It means you need to use it for the right things.

Why it happens

Large language models write text by predicting which words should come next, based on patterns in their training data. They have no separate fact-checking step, and they don't know what they don't know. Ask them about something outside their reliable knowledge and they produce a plausible-sounding answer, because producing plausible text is what they are built to do.

A classic example: ask an AI for research papers on a topic. It will often list convincing citations, with real-sounding authors, journals and titles, that don't exist.

How to work with it

The answer is not to distrust AI completely. It is to match the task to the risk.

Connecting the AI to your own documents (see What is RAG?) cuts hallucination a lot for company-specific questions, because the answer comes from real source material rather than from patterns in training data.

A useful way to think about it: treat AI like a very bright, very fast intern who now and then invents facts with complete confidence. Review the work, keep the good parts and fix the errors.

Want to put this into practice?

Book a 30-min call
Free 30-min callBook a call