esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

What Do You Do in the First 48 Hours When a Model Hallucinates?

The first 48 hours when a model invents answers: stop the harm, measure the cause, then fix it, explained simply for your AI interview.

In short

Don't start by changing the model. In the first 48 hours, limit the harm, measure how often and why the model gets things wrong, then fix the cause the numbers point to and test again. Ship only what scores better on real questions.

11 min readIntermediateCommon · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

First I stop the harm, so risky answers get a human check or are switched off. Then I pull about 150 real bad answers and sort them by cause: the right document was never found, the model ignored it, or it filled a gap with a guess. Only then do I fix the cause, and I ship nothing unless it scores better on an eval set of real questions.

What is a hallucination, in plain words?

A model hallucinates when it writes a fluent, confident answer that is false. Nothing in the wording warns you. OpenAI describes these as plausible but false statements, and they are dangerous because they read well.

Think of a new claims clerk who answers from memory instead of opening the policy file. The wrong answers still go out sounding certain, and the customer acts on them.

Here is a case of the kind a bank can face. A bank's support bot tells a customer: "Yes, the card fee was waived in March, as the tariff sheet says." No tariff sheet says that. The customer disputes a charge, and two staff spend a week untangling it.

Key words

Hallucination
A confident answer that the source documents do not support.
Grounding
Giving the model the source text and asking it to answer only from that text.
Retrieval
Searching your own documents for passages that match the question, then passing those passages to the model.
Eval set (test set)
A fixed list of real questions with the right answers, used to test every change.
Rollback
Switching back to the last version that scored better.

What do you do in the first four hours?

Before anyone touches the model, stop the harm. For hours zero to four, the goal is to keep wrong answers from reaching people who act on them.

The first 48 hours, in four stages

Wrong answers reported

users flag answers that sound right

Hours 0 to 4

Contain the harm

human check or switch off risky answers

Hours 4 to 24

Measure the causes

about 150 real bad answers, sorted

Hours 24 to 48

Fix the matching cause

the fix that fits the biggest group

Ship if it scores better

tested on the same real questions

  1. 1Reports come in, and the first job is to stop the worst answers from reaching customers.
  2. 2Once the harm is contained, the team sorts real bad answers by cause.
  3. 3The cause points to one fix, which the team builds and tests.
  4. 4The fix goes live only if the eval set shows fewer wrong answers.
The first 48 hours run in four stages, and each stage starts when the one before it is done. The fix goes live only when the eval set shows a higher score.
  1. 1

    Narrow the risky answers

    Fee, refund, medical and legal answers go to a person until the cause is known.

  2. 2

    Require a source

    An answer with no matching passage is held back, not sent.

  3. 3

    Keep a rollback ready

    Note which version scored best last time, so you can switch back quickly.

  4. 4

    Tell the owners in writing

    Say what is known, what is not, and when the next update comes.

How do you find out how often, and why?

Pull about 150 real answers that users reported, plus a few that were right. Check each one against its source document and mark it right, wrong, or no source. Also pull a random sample of ordinary answers. That lets you estimate how often wrong answers happen.

Then sort every wrong one into one of three causes: the right document was never found, the document was found and the answer ignored it, or there was no source and the model filled the gap with a guess. Each cause needs a different fix, so the count tells you where to start.

  • “argues that language models hallucinate because standard training and evaluation procedures reward guessing over acknowledging uncertainty.”

    OpenAI

  • “Building a successful LLM-based application starts with clearly defining your success criteria and then designing evaluations to measure performance against them.”

    Anthropic

OpenAI's 2025 research gives one reason models sound sure when they should not: standard evaluations reward a confident guess. Anthropic's guide says to define your success criteria, then design evaluations to measure them.

Where a made-up answer comes from

Confident wrong answer

reads well, but no source backs it

Find the cause

Right document not found

search returned nothing useful

Document found, ignored

the answer skips the text it was given

Gap filled with a guess

no source, so the model invents one

Fix the matching cause

Fix the search

the right passage must come back

Quote first, then answer

answer only from the quoted text

Allow saying I don't know

no source means no invented answer

Re-run the eval set

the score must rise before shipping

  1. 1A wrong answer is traced back to what the model had to work with.
  2. 2The right passage was not found, so fix the search.
  3. 3The document was there but skipped, so make the answer quote it first.
  4. 4Nothing to quote, so the model may say it does not know.
  5. 5Only the fixes that raise the eval score go live.
Every wrong answer is traced back to what the model had to work with. The yellow group is where the count lands. Each blue fix matches one cause, and the green end ships only when the eval score rises.

Here is a made-up count. The team reviewed 12 wrong answers and sorted them with a short Python script (a small program) that uses only the standard library.

Python
# Count why 12 reviewed answers were wrong. The labels are made up for this example.
from collections import Counter

reviews = [
    "no document found", "document ignored", "no document found",
    "guessed a gap", "no document found", "document ignored",
    "guessed a gap", "no document found", "document ignored",
    "no document found", "guessed a gap", "document ignored",
]
counts = Counter(reviews)
for cause, n in counts.most_common():
    print(f"{cause:<20} {n:>3} {n / len(reviews):>6.0%}")
print(f"{'total':<20} {len(reviews):>3}")

Output

no document found      5    42%
document ignored       4    33%
guessed a gap          3    25%
total                 12

Five of the 12 came from a document the search never found, so search is the first fix. Four ignored a document they were given, and three were guesses with no source.

Which fixes do you make by hour 48?

Fix the cause the count points to, cheapest first. Changes to search, documents and wording can be tested in hours, so start there.

  1. 1

    Fix the search

    Add the missing document, split long ones into smaller parts, and check that the search returns the right passage for the bad questions.

  2. 2

    Quote before answering

    For long documents, ask the model to pull the exact lines it will use, then answer from those lines. Anthropic's guide says this grounds the answers in the actual text.

  3. 3

    Cite every claim

    Each claim points to a passage, and a claim with no passage is removed. Anthropic calls this making the answer auditable.

  4. 4

    Allow an honest no

    Tell the model it may say it is not sure. Anthropic's guide says this can cut false information a lot.

  5. 5

    Limit it to its sources

    Tell the model to use only the documents it was given, not its general knowledge.

A newer or bigger model can change the rate, but it will not fix a document that is missing. So model choice comes last. Anthropic's guide also says these techniques reduce hallucinations without removing them.

  • “This technique can drastically reduce false information.”

    Anthropic

  • “Always validate critical information, especially for high-stakes decisions.”

    Anthropic

Tip

Don't promise zero. Say that you cut wrong answers, catch the rest with checks, and can roll back quickly. Before anything ships, run the eval set again: a change goes live only if the score rises and no good answer breaks.

What does the interviewer want to hear?

A strong answer covers

  • The first move is limiting harm and telling people, before any fix.
  • Measure first: how often, on which questions, and for which cause.
  • Cheapest fix first: search and documents, then quoting, citations and wording, then the model.
  • An eval set of real questions, run before and after every change.
  • Honest about the limit: fewer wrong answers and a way to catch the rest, not zero.

Common traps

  • Trap"Switch to a bigger model first."

    BetterA bigger model may change the rate, but without permission to say it is not sure, it can still guess when the document is missing. Measure first.

  • Trap"Retrain it on our documents this weekend."

    BetterRetraining is slow, hard to test in two days, and does not show the cause. Measure the causes first, then pick the fix.

  • Trap"Set the temperature to zero and it stops making things up."

    BetterTemperature is the randomness setting. Lower it and answers repeat more, and a wrong fact can repeat too, so test it against the eval set.

Can you spot the weak plan?

Spot the weak plan

A teammate posts four first steps for a bot that invented a fee. Which one is the weakest first move?

Quick check

The bot quoted a fee that appears in no document. Which cause should you check first?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q134How do you reduce hallucinations in RAG?13 min
  2. Q135How do you add citations?11 min
  3. Q219How do you detect hallucinations?12 min
  4. Q247Offline vs online evaluation?11 min
  5. Q268How many eval examples are enough?11 min
  6. Q275Eval scores dropped but the model is unchanged. How do you debug?12 min

Learn it in depth

Last updated on 27 November 2026

Shipping an AI assistant that has to be right?

I design and build AI products and agents, including the UI and the system behind it. Book a short call and tell me what your assistant answers, and where it has gone wrong.