Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Explainer

Why AI hallucinates, and how to reduce it

AI hallucinations are fluent answers that are false. Why language models produce them, which ones you can prevent, and a checklist for work you depend on.

By 7 min read
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
Quiz at the end
On this page

An AI hallucination is an answer that reads as fluent and confident but is false or not supported by any source: an invented citation, a wrong date, a function that does not exist. Language models produce them because they are trained to continue text plausibly, and both their training and the tests used to rank them reward a confident guess over “I don’t know”. You cannot switch hallucination off, but you can make it much rarer and much easier to catch by giving the model the source material, letting it admit uncertainty, and checking claims against quotes.

This explainer covers where hallucinations come from, the kinds you will meet, what reduces each one, and where those fixes stop working. Sources are linked inline; facts were checked on 21 November 2026. For the short definition, see the hallucination glossary entry.

Why language models make things up

A language model learns by predicting the next piece of text across a huge amount of writing. Nothing in that process labels sentences as true or false. OpenAI’s researchers describe hallucinations as “plausible but false statements generated by language models” and argue that standard training and evaluation “reward guessing over acknowledging uncertainty” (OpenAI, September 2025).

Their accompanying paper makes two points that matter in practice (Kalai et al., 2025):

  • Rare facts are hard to learn from patterns. Spelling and grammar follow regular patterns, so models get them right. Someone’s birthday or a paper’s exact title appears a few times or never, so the model has nothing reliable to predict from. In their test, a chatbot gave three different wrong birthdays for one of the authors.
  • Benchmarks punish honesty. Most evaluations score an answer right or wrong. A model that guesses “September 10” has a 1 in 365 chance of scoring; a model that says “I don’t know” scores zero every time. Models tuned to climb those leaderboards learn to guess.

Interpretability research at Anthropic points to a similar mechanism inside one model. It found that refusing to answer is Claude’s default, and that a “known entities” feature switches that default off when the model recognises a name. When the feature fires for something the model only half-knows, the model “proceeds to confabulate” and produces a plausible answer that is untrue (Anthropic, March 2025). Familiarity, not knowledge, opens the door.

The useful conclusion: a hallucination is not a glitch in an otherwise factual system. Fluent text without a source behind it is what the model does by default, and accuracy has to be added by the way you use it.

The kinds of hallucination you will meet

Each kind has the same shape: what it looks like, why it happens, and what catches it.

Invented specifics

Names, dates, figures, quotes, URLs and references that look right and are not. These come from the rare-facts problem above: the model knows what a citation looks like but not which ones exist. Catch them by opening every reference and checking every number against its source. Never paste a model-generated citation into anything you publish without opening it.

Answers that contradict the material you supplied

You paste a contract and the summary states a notice period the contract does not contain. This happens more with long inputs: Anthropic’s documentation notes that accuracy and recall degrade as the context grows, which it calls context rot (Claude docs, context windows). Catch it by asking for quotes and checking them, covered in the next section.

Out-of-date facts

The model answers from what it saw in training, which stops at a date called the knowledge cutoff. Anthropic, for example, lists a “reliable knowledge cutoff” for every model (Claude models overview). Anything after that date, such as a new price, a new version or a change in the law, is a guess unless the tool searched the web or you supplied it. Catch it by asking where the fact came from.

Invented capabilities

In code, this is a function, flag or package that does not exist; in office work, a menu option or setting that is not there. The model has seen many similar APIs and blends them. Catch it by running the code or following the steps before you rely on them.

What reduces hallucinations

The techniques below come mostly from Anthropic’s guide to reducing hallucinations (Claude docs). They work in any assistant, not only Claude.

Technique What you do What it fixes
Supply the source Paste or attach the document, or use retrieval, and say “answer only from this material” Invented specifics, out-of-date facts
Allow “I don’t know” Say explicitly that “the document does not say” is an acceptable answer Guessing to fill a gap
Quote first Ask for word-for-word quotes before the answer, then base the answer only on those quotes Contradicting the supplied material
Cite and retract Ask for a supporting quote per claim and tell the model to remove any claim it cannot support Unsupported claims in drafts
Ask more than once Run the same question several times; disagreement between answers is a warning sign Guesses that vary run to run

Supplying the source is the biggest single lever. Retrieval-augmented generation, which fetches relevant documents and puts them in the model’s context, was introduced partly because models that answer from retrieved text produce “more specific, diverse and factual language” than models answering from memory alone (Lewis et al., 2020). The RAG tutorial shows how that works, and grounding is the general term for tying answers to sources.

Allowing uncertainty matters because of the incentive problem described above. If your instructions imply that every question has an answer, the model will supply one. Anthropic’s guide says giving explicit permission to admit uncertainty “can drastically reduce false information”.

Where the fixes stop working

Anthropic’s own guide ends with the honest limit: these techniques “don’t eliminate them entirely. Always validate critical information, especially for high-stakes decisions.” Three cases deserve extra care:

  • Questions with no source to supply. If the answer is not written down anywhere you can give the model, grounding cannot help. Treat the output as a draft for an expert to check, not as an answer.
  • Long, dense inputs. Even with the source in context, a detail on page 80 of a 200-page document is easier to miss or blur. Split the work, or ask for quotes and check them.
  • Answers you cannot check. If you have no way to tell a right answer from a wrong one, a lower hallucination rate does not make the tool safe for that task. Use it where you, or a test, can verify the result.

The position this page takes: for anything you will act on, publish or send, assume an unchecked model answer may contain a hallucination, and design the task so that checking is cheap. That is a better use of effort than hunting for a prompt that makes the model “never” make things up.

Checklist for work you depend on

  • Give the model the material, and tell it to answer only from that material.
  • Say that “not stated in the source” is an acceptable answer.
  • Ask neutral questions. A leading one (“The notice period is 30 days, isn’t it?”) invites sycophancy: the model agreeing with you instead of with the source.
  • For long documents, ask for quotes first and the answer second.
  • Open every link and reference before you reuse it.
  • Check every number, name and date that will leave your hands.
  • For code, run it; for steps in a product, follow them.
  • For recurring tasks, write a few test questions with known answers and re-run them when you change model or prompt.

Next steps

Covers

Check your understanding

Why AI hallucinates quiz

Causes of AI hallucinations, the kinds you meet, techniques that reduce them, their limits and a checklist for work.

6 questions · pass mark 70%

Question 1 of 60 answered
  1. According to OpenAI's researchers, why do standard training and evaluation encourage hallucinations?
  • Hallucination

    A fluent, confident model output that is false or not supported by its sources, such as an invented citation, quote or API call.

    Glossary

  • Research a topic with sources you can check

    Research a topic with AI search and keep every claim checkable: build a source list, open and log each source, draft from the log, then add limits and a date.

    WorkflowBeginner30 min6 steps

  • RAG fundamentals: retrieval before generation

    What RAG is and how retrieval-augmented generation works, when it beats long context or fine-tuning, and a minimal working pipeline in about 80 lines of Python.

    TutorialBeginner30 min

  • Grounding

    Tying a model's answers to specific provided sources or retrieved data, so that each claim can be traced back to a source and checked.

    Glossary

  • Prompting fundamentals: clear tasks, examples and formats

    How to write a good prompt: frame the task, say who the output is for, show an example and specify the format, so a model's answers are useful and repeatable.

    TutorialBeginner25 min

Back to top