Hallucination

A hallucination is when an AI model states something false as if it were true, such as an invented fact, quote or source.

Checked 27/11/2026 against 2 sources. Next review 27/05/2027.

In AI, a hallucination is a plausible but false statement generated by a language model [1]. Anthropic describes it as text that is factually incorrect or inconsistent with the context the model was given [2]. A large language model can state a wrong answer with full confidence [1], so it reads like a right one. For a business chatbot, that means a made-up refund rule or opening hour that a customer may act on.

Why does an AI give a confident wrong answer?

OpenAI's researchers say hallucinations persist partly because current evaluation methods set the wrong incentives, rewarding guessing over honesty about uncertainty [1]. Their comparison is a multiple-choice test: if you do not know, a wild guess might be right, while leaving it blank scores zero [1].

They give an example. Asked for the title of one author's PhD dissertation, a widely used chatbot confidently gave three different answers, and none was correct. Asked for his birthday, it gave three different dates, all wrong [1]. A guess at a birthday has a 1-in-365 chance of being right, yet on accuracy-only scoreboards the guesser can look better than a careful model that says "I don't know" [1].

The fix OpenAI proposes is to penalise confident errors more than uncertainty and give partial credit for saying the model is unsure [1].

What can I change in my own setup to reduce hallucinations?

Anthropic's guide lists these techniques for working with Claude [2].

  1. Allow "I don't know" Tell the model it may admit uncertainty. Anthropic says this can drastically reduce false information [2].
  2. Ground it in quotes For long documents (over 20k tokens), ask the model to pull out word-for-word quotes first and base its analysis only on them [2].
  3. Make it cite Ask for a supporting quote for each claim, and have it retract any claim it cannot support [2].
  4. Compare several runs Run the same prompt multiple times. Inconsistent answers can point to a hallucination [2].
  5. Restrict its knowledge Instruct the model to use only the documents you provide, not its general knowledge [2].

Supplying your own documents at question time is what RAG does, and a clear instruction to answer only from them is prompt engineering. Retraining the model, covered under Fine-tuning, is a different tool for a different problem.

Can I check for hallucinations before a customer sees them?

An example, with made-up numbers

Say you run a website chat for a Singapore tutoring centre and sample 30 conversations a month. For each answer about fees or refunds, open the document it should have come from and tick whether the answer matches. If three answers disagree with the source, you have a 10% error rate on that sample, and you can see which documents or instructions to fix.

Anthropic says that even with these techniques you should always validate critical information, especially for high-stakes decisions [2]. For a shop, treat prices, legal terms, medical claims and promises as the items to verify.

Questions people ask

Why does ChatGPT make up facts?

OpenAI's researchers say language models can produce plausible but false statements, and that most evaluations reward guessing over saying "I don't know" [1]. In their test, a widely used chatbot confidently gave three different wrong answers to one question [1].

Can hallucinations be stopped completely?

Not yet. OpenAI calls hallucinations a fundamental challenge for all large language models [1], and Anthropic says its techniques significantly reduce them but do not eliminate them [2]. Keep a person in the loop for anything a customer will rely on, and check answers against the source document.

Does RAG fix hallucinations?

It helps, because the model answers from text you supplied and can quote it, which Anthropic lists as a way to ground responses [2]. Anthropic still warns that these techniques do not eliminate hallucinations [2]. See RAG.

See also

  • RAG RAG is a method where an AI looks up your own documents first, then writes its answer from what it found, not only from what it learned in training.
  • Large language model A large language model (LLM) is an AI system trained on huge amounts of text to predict the next piece of text, which lets it write, summarise and answer questions.
  • Prompt engineering Prompt engineering is the practice of writing clear instructions and examples for an AI model so it reliably produces the output you need.
  • Fine-tuning Fine-tuning is training an existing AI model further on your own example inputs and outputs, so it handles your task more consistently than the base model.
  • Chatbot A chatbot is a program you talk to by text or voice, which answers questions or helps you finish a task.
  • Token A token is the small piece of text, such as a word, part of a word or a punctuation mark, that an AI language model reads and writes.

References

  1. Why language models hallucinate, OpenAI. Read 27/11/2026.Hallucinations are plausible but false statements generated by language models.
  2. Reduce hallucinations, Anthropic. Read 27/11/2026.Even the most advanced language models, such as Claude, can sometimes generate text that is factually incorrect or inconsistent with the given context.