Glossary

AI hallucination

AI hallucination is output from a language model that sounds fluent and confident but is false, unsupported by the sources it was given, or invented outright, such as a policy that does not exist or a citation to a paper nobody wrote.

Book a workflow review

Why models hallucinate

A large language model generates the most plausible next words. It does not look facts up unless a system hands it sources, and it has no built-in sense of what it does not know. Gaps in training data, vague questions and missing context all push it towards a guess. Training and scoring methods that reward a confident answer over admitting uncertainty make guessing more likely.

The forms it takes

  • Invented facts: a price, a date, a clause or a product feature that is not real.
  • Fabricated sources: references, links or case numbers that look right and lead nowhere.
  • Unfaithful summaries: a summary that adds a detail the document never contained.
  • Wrong actions: an AI agent calls a tool with an order number it made up.

How to reduce the risk

No method removes it completely, so build layers.

  1. Ground answers in approved sources with retrieval-augmented generation, and require citations.
  2. Tell the model it may say it does not know, and test that it does.
  3. Constrain output where you can: pick from a list, fill a fixed schema, quote rather than paraphrase.
  4. Check claims against systems of record. If the model names an order, confirm the order exists before acting.
  5. Measure how well answers stick to their sources with an evaluation set, and sample live answers.
  6. Keep a person reviewing outputs that carry legal, financial or medical weight.

An example

Imagine a shop's chat assistant asked whether sale items can be returned. The policy page was never indexed, so the model offers a plausible return window the shop never had. A better prompt alone is not the fix: index the policy, require a citation for any policy answer, and send the question to staff when no source supports it. This example is hypothetical. Our AI agent testing work looks for exactly these gaps.

A small first step

A 30-minute workflow review

Pick one process that costs your team time. We look at it with you and tell you honestly whether automation or an AI agent pays, what it would take, and what to measure first.

Message us on WhatsApp

Keep exploring

Ready to build something secure?

Tell us about your product. We will reply with a clear plan.

Start a project

We would like to use Microsoft Clarity to see how visitors use the site, so we can improve it. It sets cookies and is off unless you accept. Cookie policy