Ask an AI assistant for the case law on a question, and it may give you three court decisions with names, dates and reference numbers. They look perfect. One of them may not exist.
This is called a hallucination. It is not a rare bug that will disappear with the next update: it comes from the way language models work. This guide explains what hallucinations are, why they happen, what they have already cost real people and businesses, and how to keep them out of your work.
What is an AI hallucination?
An AI hallucination is an answer that sounds confident and plausible but is false. The AI doesn’t flag it as a guess: it presents it in the same fluent, assured tone as everything else.
Typical forms:
- Invented facts. A company’s founding year, a product feature, a historical date, stated wrongly.
- Invented sources. Court decisions, scientific studies, book titles or web addresses that don’t exist, often with realistic authors and reference numbers.
- Invented quotes. A sentence attributed to a real person, who never said it.
- Wrong numbers. Statistics, prices, percentages or calculations that look precise and are not.
- Distorted summaries. A summary of a real document that adds a point the document never makes, or reverses what it says.
The US National Institute of Standards and Technology (NIST) prefers the term “confabulation” and lists it among the main risks of generative AI in its 2024 profile on the subject. The word fits: like a person filling a memory gap with a convincing story, the model fills a gap in its knowledge with convincing text.
Why language models hallucinate
To understand why, you need one idea about how tools such as ChatGPT, Claude or Gemini work. They are built on large language models, which are explained in our guide What is a large language model?.
They predict plausible text, they don’t look up facts
A language model has learned, from a huge amount of text, which words are likely to follow others. When you ask a question, it produces an answer word by word, each time choosing a likely continuation. It doesn’t consult a database of verified facts.
Most of the time, the likely answer is also the correct one, because correct information appears often in the training data. But when the model doesn’t “know”, it can still produce a likely-sounding answer. A court decision has a typical shape (two party names, a court, a year, a number), so the model can produce something with exactly that shape.
Gaps in the training data
Some information appears rarely, or not at all, in the text a model learned from: the details of a small Swiss company, a recent change in the law, a niche technical standard, your own internal procedures. OpenAI researchers point out that facts which appear rarely and follow no pattern, such as a person’s birthday, are especially hard for a model to get right. Models also have a training cut-off date, so anything more recent is unknown to them unless they can search the web.
No built-in fact check
A basic language model has no internal step that asks “is this true?” before it answers. Some recent tools add web search or step-by-step reasoning, which reduces errors, but the underlying mechanism remains a prediction.
Training rewards guessing
In a paper published in September 2025, OpenAI researchers argue that hallucinations persist partly because of how models are trained and evaluated. Most tests score an answer as right or wrong. A model that guesses sometimes gets it right; a model that says “I don’t know” always scores zero. Over time, this rewards confident guessing. The researchers propose scoring methods that penalise confident errors more than honest uncertainty. They also state clearly that hallucinations still occur in their latest models.
Real cases: when hallucinations caused damage
These cases are public and documented by courts.
Invented court decisions in a New York lawsuit
In Mata v. Avianca, a passenger sued an airline in a US federal court in New York. In 2023, his lawyers filed a brief citing several court decisions that turned out not to exist: they had been generated by ChatGPT. When the opposing side and the judge could not find them, the lawyers did not come clean straight away.
On 22 June 2023, Judge P. Kevin Castel imposed a USD 5,000 penalty on two lawyers and their firm and required them to write to each judge falsely named as the author of an invented decision. The judge wrote that using a reliable AI tool for assistance is not improper in itself; the failure was in not checking.
A growing list of cases worldwide
This was not an isolated incident. Damien Charlotin, a French lawyer and researcher, keeps a public database of court decisions dealing with hallucinated content in filings. By 2026 it listed well over a thousand cases, mostly in the United States, but also in Canada, Australia, the United Kingdom and several European countries. Lawyers, experts and people representing themselves all appear in it.
A customer-facing chatbot in Canada
In February 2024, the Civil Resolution Tribunal of British Columbia ruled on a dispute between a passenger and Air Canada. The airline’s website chatbot had told him he could apply for a reduced bereavement fare after travelling; the airline’s actual policy did not allow this. Air Canada argued that the chatbot was responsible for its own statements. The tribunal rejected that argument, held the airline responsible for all information on its website, and ordered it to pay the difference plus costs, about CAD 800 in total. The decision does not say what technology the chatbot used, but the lesson applies directly to AI assistants that talk to customers.
The common thread: in each case, the person or business that relied on the tool was held responsible, not the tool.
How to reduce hallucinations
You can’t switch hallucinations off, but you can make them much rarer and much easier to catch. Anthropic’s own guidance for its Claude models lists several of the techniques below, and notes that they reduce hallucinations without eliminating them.
Give the AI your sources
The most effective step is to stop asking the model to answer from memory. Paste the relevant document, attach the file, or use a tool that searches your documents first and answers from them. This approach is called retrieval-augmented generation (RAG), explained in our guide AI with your own documents.
Then say it explicitly: “Answer only from the document provided. If the answer isn’t in it, say so.”
Allow “I don’t know”
Tell the assistant that “I don’t know” or “the document doesn’t say” is an acceptable answer. This simple instruction gives the model a way out other than guessing. Our guide How to write a prompt has more examples of clear instructions.
Ask for citations and exact quotes, then check them
Ask the AI to quote, word for word, the passage that supports each claim, and to say where it comes from. Then open the source and check that the passage exists and says what the AI claims. An invented citation is easy to spot when you actually look it up; it is only dangerous when nobody does.
Use AI where errors are cheap
Drafting, rephrasing, summarising a document you have in front of you, brainstorming or translating a text you can check: in these tasks, an error is easy to see and costs little. Asking for facts you can’t verify yourself is where the risk lies.
Keep a human review
Anything that leaves the company, commits it to something or informs an important decision should be read by a person who knows the subject. Make this a written rule, for example in an AI usage policy.
When hallucinations matter most
The same error can be harmless in a brainstorm and serious in a contract. Be especially careful in these areas:
- Legal. Case law, statutory articles, deadlines and contract clauses. Check every reference in the official source (in Switzerland, for example, the federal law collection on Fedlex and court websites).
- Medical and health. Dosages, interactions, diagnoses. An AI answer is never a substitute for a professional’s judgement.
- Financial and tax. Rates, thresholds, calculations and figures in reports. Recalculate numbers yourself or with a spreadsheet.
- Customer-facing. Chatbots, emails and quotes sent to clients. As the Air Canada case shows, what your tool says to a customer is treated as what your business says.
- Published content. Articles, social media posts and reports that carry your name. An invented quote attributed to a real person can damage that person and your credibility.
A simple checklist before you use an AI answer
- Is it a fact, a figure, a name, a date or a source? If yes, it needs checking.
- Did the AI answer from a source you gave it, or from memory? Answers from memory deserve more suspicion.
- Can you open every cited source? Check that it exists and says what the AI claims.
- Do the numbers add up? Recalculate anything important.
- Would an error cause harm? If it could affect a client, a patient, a contract or money, have a knowledgeable person review it.
- Is it recent? Laws, prices and products change; the model may not know the latest version.
- Does it sound too neat? A perfect quote or a statistic that proves your point exactly is a reason to look twice.
For a broader view of how these tools work, start with What is AI? and What is ChatGPT?.