AIAI Academy

Module 1: Foundations · 3 min read

Hallucinations: Why AI Makes Things Up, and How to Protect Yourself

Real cases where a hallucination cost money, why it happens, and six practical ways to reduce the risk.

A hallucination is when an AI model presents wrong or invented information with complete confidence and convincing wording. It's not a rare glitch but a direct result of how language models work. That's why it's important to understand it before relying on AI for anything that matters.

Two real cases

The lawyers and the precedents that didn't exist. In 2023, in a lawsuit against the airline Avianca in New York, lawyers submitted a brief citing court rulings they had found using ChatGPT. It turned out some of the precedents didn't exist at all: the model had invented case names and quotes. The judge fined the lawyers, and the case became the best-known lesson in the field.

The chatbot that promised a refund. Air Canada's chatbot told a passenger he could request a bereavement discount retroactively, contrary to the company's actual policy. In 2024 a Canadian tribunal ruled the company was responsible for what its bot said and ordered it to compensate the passenger. The message for businesses is clear: what your bot says counts as what you say.

Why it happens

As we saw in the lesson on language models, the model produces the likely continuation of text, not the true one. Usually these are the same thing. When the model doesn't know, it doesn't stop. It keeps producing text that sounds like an answer.

In 2025 OpenAI published research explaining another layer: the way models are tested and ranked rewards guessing. A test that gives a point for a correct answer and zero for "I don't know" teaches the model it's better to guess, exactly like a student on a multiple-choice exam. The researchers proposed changing scoring methods so that admitting uncertainty is rewarded.

🎬 Why Large Language Models Hallucinate · IBM Technology

Where the risk is especially high

  • Precise details: numbers, dates, quotes, names of sources and precedents.
  • Rare topics: little-known people, small companies, local laws. The less information there was in training, the more likely an invention.
  • Recent events: anything that happened after the model's knowledge cutoff.
  • Loaded questions: "Why is X better than Y?" invites the model to justify an assumption that may be wrong.

Six ways to protect yourself

  1. Use tools with search and sources. A model connected to search and showing links lets you check. Click the links; don't settle for the fact that they exist.
  2. Give the model the material. Instead of asking "what does a standard contract say?", attach the contract and ask about it. That's the principle of RAG.
  3. Allow it not to know. Write explicitly: "If you're not sure, say you don't know."
  4. Ask for a quote from the source. "Quote the sentence from the document you're relying on" makes inventing harder.
  5. Verify anything that costs money. Numbers in a report, a legal clause, a medication dose: always against a primary source.
  6. For a customer-facing bot, limit the scope. The bot should answer only from your policy documents and hand off to an agent when it has no answer.

Bottom line: Hallucinations stem from the model predicting likely text, not truth. They shrink with every generation of models but don't disappear. The right habit: AI for drafts and ideas, and a person to verify before anything goes out.

Sources

Read next