Johan Kristensson
← Back to all articles
Foundations

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

3 min read

Hallucination is the term used when an AI generates information that is confidently wrong. Not uncertain, not hedged, just stated as fact, with the same tone it uses when it is correct.

It is the most important limitation to understand about current AI, and it does not mean the technology is broken. It means you need to use it appropriately.

Why it happens

Large language models generate text by predicting what words should come next based on patterns in their training data. They do not have a separate fact-checking module. They do not know what they do not know. When asked something outside their reliable knowledge, they generate a plausible-sounding answer because that is what they are designed to do.

A classic example: ask an AI to cite research papers on a topic. It will often produce plausible-looking citations with real-sounding author names, journal names, and titles, none of which exist.

How to work with it

The practical response is not to distrust AI entirely. It is to match the task to the risk. For creative drafting, summarisation, brainstorming, and reformatting, where you or a colleague will review the output anyway, hallucination is a manageable nuisance. For tasks requiring precise facts, citations, legal details, or medical information, where an error has consequences, AI output should always be verified against primary sources.

Grounding AI in your own documents, using RAG, significantly reduces hallucination for company-specific knowledge because the system is drawing from real source material rather than generating from training patterns.

The best mental model: treat AI like a very smart, very fast intern who occasionally invents facts with complete confidence. Review the work, keep the good parts, fix the errors.

Want to put this into practice?

Book a 30-min call