BeCodeBeCode
Back to the glossary
Artificial intelligence

AI hallucination

A made-up but convincing output

An AI hallucination is when a language model generates an answer that sounds convincing and factual but is actually incorrect or entirely made up. The model can “invent” a fact, a number, a source, or a quote. It is not a malfunction — it follows from how these models work.

Why hallucinations happen

Language models like ChatGPT do not look up verified facts — they predict the most likely continuation of text based on patterns they learned. Their aim is to produce a linguistically natural answer, not to confirm that it is true. When the model lacks enough information, instead of admitting “I don’t know” it often fills in something that sounds plausible.

The risk rises with questions about specific facts, numbers, names, sources, or very niche and edge topics where the model had little material during training. The trouble is that a hallucination looks just as confident as a correct answer — the model does not tell you when it is sure and when it is merely guessing.

How to prevent hallucinations

Hallucinations cannot be eliminated entirely, but their frequency can be reduced significantly. The foundation is a well-phrased instruction, verifying important outputs, and technical solutions that feed the model verified material instead of letting it rely on memory alone.

  • Always verify important facts, numbers, and sources against a trusted source.
  • Give the model context in the instruction and ask for specific material.
  • On sensitive topics, never rely on the output blindly.
  • For business use, consider a RAG approach that grounds answers in your verified documents.

What this means for a business

AI is a great assistant, but not a source of truth. If you deploy it where it provides information to customers or employees, an unverified hallucination can damage both trust and reputation — picture a chatbot that invents return terms or a price.

The answer is not to avoid AI, but to use it sensibly. Design the setup so the model relies on verified data for facts, and train your team to review outputs critically. This is exactly one of the key topics of our AI training.

Want to use AI safely and without made-up facts?

Explore our AI training

Frequently asked questions

Can AI hallucinations be prevented entirely?

Not entirely — they stem from the very principle of how language models work. Their frequency can be reduced significantly, though, with good instructions, verifying outputs, and solutions that feed the model verified material instead of relying on memory alone.

How do I recognize a hallucination?

Most reliably by verifying the facts against a trusted source, because a hallucination sounds just as convincing as the truth. Pay extra attention to specific numbers, names, citations, and sources, which the model is happy to fill in.

Is it safe to deploy an AI chatbot for customers?

Yes, if you set it up correctly. For facts it should draw on your verified documents, have clearly defined boundaries, and hand off to a human in sensitive cases. Without that, you risk it giving the customer made-up information.

Related terms

No commitment

Tell us what you're working on.

Write a few lines about your company and what's holding you back. We'll get back within 24 hours with a concrete proposal and price.