AI and visibility

AI hallucinations: what they are, why they occur and how to avoid them

What are AI hallucinations, why do they occur and how can they be avoided? Causes, examples and six measures for business use.

  • Author: Ralph Loser
  • 7 min read
  • Translated from German

At a glance

AI hallucinations are answers from a language model that sound plausible but are wrong or entirely made up: non-existent sources, wrong figures, invented features or court rulings. They occur because the model generates probable word sequences instead of retrieving verified facts. This article explains the five causes, shows typical examples and warning signs, and describes six measures with which companies largely avoid AI hallucinations in operation: retrieval-augmented generation, mandatory sources, low temperature, a review loop by a second model, human approval for consequential answers and test cases with known answers.

  • AI hallucinations are answers that are linguistically convincing but wrong in substance. Without checks, they are rarely noticed.
  • The main causes are probabilistic word prediction, gaps in the training data and a training objective that puts coherence before correctness.
  • Retrieval-augmented generation (RAG) with your own documents is the most effective single lever against AI hallucinations.
  • Mandatory sources, low temperature and a review loop by a second model significantly reduce the error rate in operation.
  • Answers with legal or financial consequences are still approved by a person; test cases with known answers reveal regressions.

What are AI hallucinations?

AI hallucinations are answers from a language model that sound plausible but are wrong or entirely made up: non-existent sources, wrong figures, invented software features or court rulings that never existed. They occur because the model generates probable word sequences and does not retrieve verified facts. The term has become established even though it is misleading: the model does not perceive anything, it calculates.

For companies the topic is not academic. As soon as a language model answers customer enquiries, summarises contracts or drafts dunning letters, a wrong answer becomes a liability risk. This article explains why AI hallucinations occur, how to recognise them and which six measures largely prevent them in operation.

Examples of AI hallucinations

Three typical cases from practice show how inconspicuous AI hallucinations can be:

  • Invented case law: In 2023, a New York law firm filed a brief in Mata v. Avianca in which a language model cited several court rulings, complete with docket numbers, dates and headnotes. None of the rulings existed. The court fined the lawyers.
  • Wrong product information: A customer service chatbot confirms a refund rule that never existed in the company. The customer relies on it, and the company has to explain itself.
  • Invented software features: In response to a technical question, the model describes an interface or a parameter that does not appear in the documentation. Anyone who adopts the suggestion unchecked loses hours debugging.

What all three cases have in common: the answer is linguistically flawless but not backed up in substance. That is exactly why such errors are rarely noticed without checks.

Hallucinations also affect companies that do not use AI themselves. When a prospect asks ChatGPT or Perplexity about your company, the model assembles its answer from whatever it finds about you. If clear information is missing, it fills the gaps with guesses: wrong services, an outdated location, invented prices. Our guide to GEO and SEO describes what you can do about it. Whether AI crawlers are allowed to read your website and whether your company information is stated unambiguously there is shown by our free GEO and SEO check.

Why do AI systems hallucinate? The five causes

1. Probabilistic word prediction

Large language models (LLMs) generate text by predicting the most probable next word in each case. This produces fluent sentences but no guarantee of truth. If the model lacks the knowledge, it fills the gap with whatever fits well statistically, and that often sounds convincing.

2. Gaps and errors in the training data

The quality of the training data determines the quality of the answers. Incomplete, outdated or contradictory data lead to false statements. Niche topics, current events and internal company information, which cannot appear in public data at all, are particularly vulnerable.

3. Model architecture and training objective

Language models are trained to complete text, not to check facts. The architecture rewards coherence. Whether a statement is true is initially secondary for the training objective. This has to be added afterwards through fine-tuning and checking mechanisms. A 2025 study by OpenAI also shows that common training and evaluation methods reward guessing: a model that guesses an answer when uncertain scores better in many tests than one that says “I don’t know”.

4. Generation and decoding strategies

Settings such as temperature sampling or beam search control how freely the model phrases its output. Higher creativity increases the likelihood of invented content, because the model then also picks less probable continuations. For factual answers, the temperature should be low.

5. Unclear or leading questions

If a question contains a false assumption (“How high was the penalty in case X?”), the model often adopts the assumption instead of questioning it. It then answers a question that should never have been asked in that form.

Avoiding AI hallucinations: six measures

AI hallucinations cannot be prevented completely with today’s models. In operation, however, the rate can be pushed down to a level you can work with. These six measures have proven effective:

1. Retrieval-augmented generation (RAG)

With RAG, the model does not answer questions from memory but from documents passed to it at runtime: contracts, manuals, product data, tickets. The model does the phrasing, the facts come from your sources. This is the most effective single lever against invented answers and at the same time the way to make internal information usable at all.

2. Mandatory sources in the answer

Require every factual statement to be backed up with its reference: document, section, date. If the model finds no source, it should say so instead of guessing. An answer without a reference is then an answer that has to be checked.

3. Low temperature and narrow tasks

For factual answers, summaries and classifications, the temperature should be close to zero. The more narrowly the task is phrased (“Extract invoice number and amount” instead of “Summarise the document”), the less room there is for invented details.

4. Review loop by a second model

A second instance checks the answer against the sources: Is every statement backed up? Does anything contradict the document? This check is inexpensive, runs automatically and catches a large share of errors before a person sees them.

5. Human in the loop for decisions

Wherever an answer has legal or financial consequences, for example with dunning letters, information on contracts, medical or tax advice, a person approves it. The AI prepares, it does not decide. Reinforcement learning from human feedback (RLHF) makes models more reliable overall, but it does not replace approval in the individual case.

6. Test cases with known answers

Before starting, build a collection of questions with verified answers, deliberately including trick questions with false assumptions. Every change to the model, the prompt or the documents is run against these test cases. That way you notice when a change introduces new errors, before customers notice them.

Recognising AI hallucinations: five warning signs

  • References that are too neat: sources with a perfectly fitting title but no reference that can be found.
  • Precise figures without origin: percentages, dates or amounts that appear nowhere in the material.
  • Contradictions with the source: the answer says something different from the document it refers to.
  • Confident answers to trick questions: the model answers a question based on a false assumption instead of correcting it.
  • Details nobody asked for: added names, features or legal sections that go beyond the question.

Checklist for decision-makers

  • Which AI answers have legal or financial consequences? Provide for human approval there.
  • Is the relevant information available as documents that a RAG system can use?
  • Is there a test collection with verified answers that every change is run against?
  • Is it defined how the model deals with missing sources (“I don’t know” instead of guessing)?
  • Are answers logged so that errors can be traced?
  • Are employees trained to treat AI answers as a draft and not as a result?

Conclusion

Research is working on models that express uncertainty and supply sources of their own accord. Until then: hallucinations are no reason to do without language models, but they are a reason to use them only with sources, checks and clear responsibility. If you set this up properly, you get a tool that reliably takes routine work off your hands. We are happy to show you in a conversation how we build such systems as custom software connected to your documents.

AI hallucinations

Frequently asked questions

What are AI hallucinations, simply explained?

AI hallucinations are invented content in a language model’s answer: facts, sources or figures that are not correct but are phrased convincingly. The model guesses the most probable continuation of a text and has no built-in knowledge of whether that continuation is true.

Can AI hallucinations be avoided completely?

No, not with today’s language models. With RAG, mandatory sources, low temperature, a review loop, human approval and test cases, however, the rate can be reduced far enough for business use to be justifiable, provided that consequential answers continue to be approved by people.

Which AI hallucinates least?

The rate differs between models and changes with every model generation. The setup matters more than the choice of model: a mid-sized model with access to the right documents hallucinates less than the largest model without sources. Test candidates with your own test collection instead of general benchmarks.

How do I recognise AI hallucinations?

Check references, figures and legal sections against the original source, deliberately ask trick questions with false assumptions and watch for details that go beyond the question. In operation, a second model or human approval takes over this check.

References and sources

Further reading

Note: The guides provide a general overview and do not replace legal advice.