# How Do You Get a Model to Admit It Doesn't Know?

> Why models guess, how to give them a safe way to say no, and how to test it, explained simply for your AI interview.

**In short:** Give the model explicit permission to say it doesn't know, and make it answer only from the source text you provide. Then test it with questions that have no answer, because models tend to guess unless the scoring and the prompt both reward honesty.

AI and LLM interview question Q104, Prompt and context engineering. Beginner, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/how-do-you-get-a-model-to-say-i-dont-know

## Say it in 30 seconds

Models guess because most tests reward a lucky guess over an honest gap. So I make the model say I don't know when the source is silent. I give it permission and the exact words to use. I make it quote the source first, and my code checks that the quote is real. Then I test it on questions the source cannot answer, and on easy ones too, so it doesn't refuse everything.

## Say it in 2 minutes

A model has no built-in check before it speaks, so a question that sounds answerable often gets a confident reply, right or wrong. It only picks the next likely word, again and again. OpenAI's 2025 research says training and tests often reward that guessing over an honest gap.

The fix starts in the prompt. I tell the model that saying it doesn't know is allowed, and give it the words to use. I ask it to use only the text I supply, and to quote that text word for word before it answers. My code checks that each quote really appears in the source. If not, the question goes to a person, and no answer is shown.

The part people skip is testing. I build two sets: questions the source answers, and questions it cannot answer, written like the real ones. A good model answers the first and says I don't know to the second. If it refuses everything, it has failed too. And I say the honest limit out loud: these checks lower the rate of confident errors, they do not remove them, so high-stakes answers still get a person to check.

## What does saying I don't know mean for a model, in plain words?

A language model picks the next word that most likely fits, again and again. It does not check a fact before it speaks, so it has no built-in sense of when it lacks the answer. A question that sounds answerable often gets a confident reply, right or wrong.

Picture a new hire in a claims office with the policy handbook open. A good hire checks the handbook and, if the rule is not there, says "Not in the handbook, I will check with a senior." A weak one makes up a rule that sounds right. A model needs the good hire's habit: point to the source, and admit when the source is silent.

- **Hallucination:** A confident answer that the source does not support, or that is simply false.
- **Grounding:** Tying an answer to a source text you supplied, so someone can check it.
- **Temperature:** A setting that controls how random the model's word choice is. Lower means more predictable.
- **Calibration:** How closely a model's stated confidence matches how often it is right.

## Why do models guess instead of admitting a gap?

OpenAI's 2025 article on hallucinations says a main reason is the way models are scored. Most tests give a point for a right answer and nothing for a blank or an "I don't know". So a guess that is sometimes lucky scores better than an honest gap. Say a model faces 10 questions it does not know. If it guesses and half the guesses are lucky, it scores 5. If it says I don't know to all 10, it scores 0. On the scoreboard, the guesser looks better.

*Diagram, Same test, two scoring rules: Two scoring rules, same test. When only right answers count, guessing looks better on the scoreboard. When a confident wrong answer costs more than an honest gap, the model that admits uncertainty comes out ahead.*
1. Only right answers count, so a lucky guess scores.
2. The honest gap keeps the model trusted when it does speak.

> "standard training and evaluation procedures reward guessing over acknowledging uncertainty" (OpenAI, 2025)
>
> "Saying "I don't know" guarantees zero points." (OpenAI, 2025)

The article says the fix is to change the scoring: penalise confident errors more than uncertainty, and give partial credit for an honest expression of doubt. It adds that a few extra honesty tests on the side are not enough. OpenAI's own Model Spec also prefers an admitted gap to a confident guess that may be wrong.

Reading-comprehension systems have shown this for years. A 2018 paper tested question answering on questions the text does not answer, and found the systems tended to make unreliable guesses.

## How do you make the model say it doesn't know?

Four habits, all in the prompt and in the code around it. Each one is cheap to add.

1. **Give it permission and the words:** Say in the prompt that admitting uncertainty is allowed, and give the exact words to use. For example: "Not in the policy wording I have. Please ask a claims adjuster."
2. **Use only the text you supply:** Tell it to rely on the documents you give it, not on what it half remembers. Anthropic's guide says the same: a clear instruction to use provided documents and not general knowledge.
3. **Quote before you answer:** Ask for word-for-word quotes first, then answer only from them. Anthropic's guide recommends this for long documents. If no quote fits, the honest answer is that the source does not say.
4. **Let code make the final call:** Your app checks that each quote really exists in the source, and sends the question to a person when it does not. The model can ask; the code decides what is shown. The check proves the quote is real, not that it answers the question, so high-stakes answers still get a person's review. Anthropic's guide also says to drop any claim that has no supporting quote.

*Diagram, A grounded answer, checked in code: A question goes to the model, which must quote the policy first. Code checks the result: a real quote gives a sourced answer, and no quote sends the question to a person instead of a guess.*
1. The staff question goes to the model, with the policy text.
2. A real quote from the policy lets the answer go ahead.
3. No matching quote means the answer may be a guess, so it stops here.
4. The answer goes out with the line it came from.
5. A question with no quote goes to a claims adjuster, with no answer shown.

Here is the same idea in plain Python. The model's answer is simulated, and the code lets through only a quote that really appears in the policy.

```python
# A grounding check for a claims assistant. No real model: the code only
# accepts an answer that quotes the policy word for word.
POLICY = """Flood damage is covered for owner-occupied homes.
Rented flats are not covered for flood damage.
Theft from a parked car needs a police report."""

def answer(question, quote):
    # The model must give a quote. Code checks that the quote really is in the policy.
    if quote and quote in POLICY:
        return "ANSWER, with quote: " + quote
    return "I DON'T KNOW: no matching line in the policy. Send to a person."

print(answer("Is flood damage covered for a rented flat?", "Rented flats are not covered for flood damage."))
print(answer("Is fire damage covered for a rented flat?", ""))
print(answer("Are bikes always covered?", "Bikes are always covered."))
```

Output:

```text
ANSWER, with quote: Rented flats are not covered for flood damage.
I DON'T KNOW: no matching line in the policy. Send to a person.
I DON'T KNOW: no matching line in the policy. Send to a person.
```

## How do you test that it says no at the right times?

Most teams test only the questions the source answers, then are surprised when the model guesses on the rest. Build two test sets instead.

- **Answerable questions:** The source covers them, so the model must answer, with a quote, and get the right answer.
- **Unanswerable questions:** The source does not cover them. Write them like the real ones, close enough to tempt a guess. The model must say it doesn't know.
- **Both sets, every time:** A model that refuses everything passes the second set and fails the first, so you need both.

> "Remember, although these techniques significantly reduce hallucinations, they don't eliminate them entirely." (Anthropic's guide to reducing hallucinations)

A 2022 paper on arXiv, Language Models (Mostly) Know What They Know, asked whether models can predict which questions they will answer correctly. Its abstract says the models perform well at predicting this, but struggle with calibration on new tasks. So measure how often the model says I don't know when it should, instead of trusting how sure it sounds.

> **Tip:** In an interview, don't promise that a prompt makes a model honest. Say that you lower the rate of confident wrong answers, measure it on questions with no answer, and keep a person in the loop for high-stakes cases.

### How would you stop a claims assistant from guessing a cover?

An insurer's claims assistant answers staff questions from 400 pages of policy wording. These are made-up numbers, but the stakes are real. Its first version answered 31 of 100 questions the wording never covers, with a confident yes or no. Some of those answers could approve a claim that should go to a person.

1. **Build the two test sets:** Take 200 real questions the wording answers, and 100 it does not. Include the uncovered ones staff really ask, such as flood damage to a rented flat.
2. **Turn on the quote rule:** The model must quote the wording first. Code rejects any quote that is not in the text, and the question goes to a claims adjuster.
3. **Run the same tests again:** In this example, 97 of the 100 uncovered questions get the reply "I don't know" and go to a person. The answered questions keep their quotes, so a checker can read them.
4. **Watch the cost of saying no:** Every refusal costs staff time. Track how often a person gets a question the wording could have answered, and tune the search that finds the text.

- **Illustrative: first version: Guesses with confidence.** 31 of 100 uncovered questions got a confident yes or no, with no line to check.
- **Illustrative: with the quote rule: Says I don't know.** 97 of the 100 went to a person. Every answer that remains shows the exact line.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] Models guess by default, because they predict likely words, not checked facts.
- [ ] Give permission to say I don't know, and state the exact words to use.
- [ ] Quote first, answer from the quote, and otherwise say the source is silent.
- [ ] Let code check the quote and send the gap to a person.
- [ ] Test with questions the source cannot answer, and check it doesn't refuse too much.
- [ ] The honest limit: these checks lower confident errors, they do not remove them.

**Common traps**

- Trap: "Just tell it to say I don't know if it is unsure." Better: A bare instruction helps a little. Pair it with quotes, use-only-this-text, and tests with questions that have no answer.
- Trap: "The model knows when it doesn't know." Better: It often can't tell. Test it on questions with no answer and measure what it does.
- Trap: "A lower temperature stops the guessing." Better: Less randomness does not give the model the source. A confident wrong answer can come out every time.

## Can you spot the guess?

**Spot the guess:** A claims assistant is asked whether flood damage to a rented flat is covered. The policy wording has no line on it. Which reply is the safest?

A. Yes, floods are always covered for tenants.
B. No line covers this. I don't know, so I'll ask a claims adjuster.
C. Probably covered, since most policies include flood damage.
D. Not covered, because flood cover is always excluded for flats.

**Answer:** B. The right reply admits the gap and routes it. The other three guess: one says yes, one says probably, and one gives a rule nobody quoted from the wording.

**Quick check:** Which change most reduces confident guesses on questions the source cannot answer?

A. A longer system prompt with more instructions
B. Require a quote from the source before any answer, and let code check it
C. A bigger model
D. A lower temperature

**Answer:** B. A quote the code can check stops answers that have no matching line in the source. A bigger model or a lower temperature does not show the model what the source says, so guesses still come out.

## Can you answer these from memory?

**Flash cards**

- **Why do models guess?** They predict likely words. Most tests reward a lucky guess over an honest gap.
- **What is the first fix?** Give permission to say I don't know, with the exact words to use.
- **What does a quote rule do?** The model quotes the source first. Code checks the quote is real, or sends the question to a person.
- **What is grounding?** Tying each answer to a source text you supplied, so someone can check it.
- **What two test sets do you need?** Questions the source answers, and questions it cannot answer. Test both.
- **Can a prompt fix it fully?** No. Prompts and checks lower errors, but Anthropic says these techniques don't eliminate them entirely.

## Likely follow-up questions

- Q023 What is a hallucination, and why does it happen? https://designervenkat.online/interview/ai/what-is-an-ai-hallucination
- Q134 How do you reduce hallucinations in RAG? https://designervenkat.online/interview/ai/how-to-reduce-hallucinations-in-rag
- Q219 How do you detect hallucinations? https://designervenkat.online/interview/ai/how-do-you-detect-hallucinations
- Q220 What is grounding? https://designervenkat.online/interview/ai/what-is-grounding
- Q232 What is over-refusal? https://designervenkat.online/interview/ai/what-is-over-refusal
- Q234 How should an app handle refusals? (full answer coming)

## Learn it in depth

- [Grounded generation](https://designervenkat.online/learn/ai-engineering/generation)
