# 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.

AI and LLM interview question Q390, Forward Deployed Engineering and applied AI. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/model-hallucinates-first-48-hours

## Say it in 30 seconds

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.

## Say it in 2 minutes

My first move is to find out how bad it is and where. No retraining yet. In the first four hours I limit the damage. If the model answers fee, refund, medical or legal questions, a person checks every answer, or I switch that feature off until we know the cause. I tell the owners what we know and what we don't.

Then I measure. I collect about 150 answers that users reported as wrong, plus a few that were right, and I check each one against its source document. I sort every wrong one by cause: the right document was never found, the document was found and ignored, or there was no source and the model filled the gap. Each cause has a different fix, so the count tells me where to start.

By the end of day two I make the fix that matches the biggest group. If the document is missing, I fix the search. If the model ignores its sources, I make it quote the text first and cite each claim. If there is no source, I let it say it is not sure. I write these cases into an eval set and run it before and after. A change ships only if the score goes up.

I also tell the team the honest goal. The techniques cut wrong answers but do not remove them all. The target is fewer wrong answers, a way to catch the rest, and a quick rollback if a new version does worse.

## 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.

- **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.

*Diagram, The first 48 hours, in four stages: 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. Reports come in, and the first job is to stop the worst answers from reaching customers.
2. Once the harm is contained, the team sorts real bad answers by cause.
3. The cause points to one fix, which the team builds and tests.
4. The fix goes live only if the eval set shows fewer wrong answers.

1. **Narrow the risky answers:** Fee, refund, medical and legal answers go to a person until the cause is known.
2. **Require a source:** An answer with no matching passage is held back, not sent.
3. **Keep a rollback ready:** Note which version scored best last time, so you can switch back quickly.
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.

*Diagram, Where a made-up answer comes from: 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.*
1. A wrong answer is traced back to what the model had to work with.
2. The right passage was not found, so fix the search.
3. The document was there but skipped, so make the answer quote it first.
4. Nothing to quote, so the model may say it does not know.
5. Only the fixes that raise the eval score go live.

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:

```text
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. **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. **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. **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. **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. **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." Better: A 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." Better: Retraining 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." Better: Temperature 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?

A. Retrain on all our tariff sheets this weekend, then we'll be safe.
B. Pull 150 reported answers and label each one by cause before we change anything.
C. Send fee and refund answers to a person while we look into it.
D. Keep the last version that scored better, so we can roll back.

**Answer:** A. Retraining is slow, hard to test in two days, and does not tell us the cause. Measure first, then pick the fix that matches the cause.

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

A. The model is too small for the job
B. The randomness setting (temperature) is too high
C. The model had no source and filled the gap with a guess
D. The system prompt is too short

**Answer:** C. If no document says it, no passage can support the fee, so the model made it up. Still check what search returned for that question, to rule out a missed document. Model size and temperature do not add facts.

## Can you answer these from memory?

**Flash cards**

- **What is a hallucination?** A fluent, confident answer that is false, with nothing in the wording to warn you.
- **First move when it happens?** Limit the harm: human checks on risky answers, or switch those answers off.
- **How do you find the cause?** Sort real bad answers: document not found, document ignored, or a guess.
- **What is an eval set?** A fixed list of real questions with right answers, run before and after each change.
- **Cheapest fix first?** Better search and documents, then quoting, citations and permission to say not sure.
- **Can you promise zero?** No. Aim for fewer wrong answers, a way to catch the rest, and a quick rollback.

## Likely follow-up questions

- Q134 How do you reduce hallucinations in RAG? https://designervenkat.online/interview/ai/how-to-reduce-hallucinations-in-rag
- Q135 How do you add citations? https://designervenkat.online/interview/ai/how-do-you-add-citations
- Q219 How do you detect hallucinations? https://designervenkat.online/interview/ai/how-do-you-detect-hallucinations
- Q247 Offline vs online evaluation? https://designervenkat.online/interview/ai/offline-vs-online-evaluation
- Q268 How many eval examples are enough? https://designervenkat.online/interview/ai/how-many-eval-examples-are-enough
- Q275 Eval scores dropped but the model is unchanged. How do you debug? https://designervenkat.online/interview/ai/eval-scores-dropped-model-unchanged

## Learn it in depth

- [Retrieval-augmented generation](https://designervenkat.online/learn/ai-engineering/rags)
- [Grounded generation](https://designervenkat.online/learn/ai-engineering/generation)
- [LLM Evaluations](https://designervenkat.online/learn/ai-engineering/llm-evaluations)
