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
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

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.

12 min readBeginnerCommon · estimateFacts checked 26 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.

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.

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.

Key words

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.

Same test, two scoring rules

Scored on right answers only

Always takes a guess

a lucky guess earns a point

Honest scoring

Says I don't know

a confident error costs more

Looks better

on the scoreboard, errors hidden

Trusted when it speaks

fewer confident errors

  1. 1Only right answers count, so a lucky guess scores.
  2. 2The honest gap keeps the model trusted when it does speak.
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.
  • “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. 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. 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. 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. 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.

A grounded answer, checked in code

Staff question

Is flood covered for a rented flat?

Model

must quote the policy first

Code checks the quote

Quote is in the policy

a real quote from the policy

No such quote

the model may be guessing

Sourced answer

staff can read the line

Sent to a person

a claims adjuster takes it on

  1. 1The staff question goes to the model, with the policy text.
  2. 2A real quote from the policy lets the answer go ahead.
  3. 3No matching quote means the answer may be a guess, so it stops here.
  4. 4The answer goes out with the line it came from.
  5. 5A question with no quote goes to a claims adjuster, with no answer shown.
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.

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

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

    BetterA 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."

    BetterIt often can't tell. Test it on questions with no answer and measure what it does.

  • Trap"A lower temperature stops the guessing."

    BetterLess 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?

Quick check

Which change most reduces confident guesses on questions the source cannot answer?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q023What is a hallucination, and why does it happen?11 min
  2. Q134How do you reduce hallucinations in RAG?13 min
  3. Q219How do you detect hallucinations?12 min
  4. Q220What is grounding?9 min
  5. Q232What is over-refusal?11 min
  6. Q234How should an app handle refusals?Coming soon

Learn it in depth

Last updated on 26 November 2026

Building an assistant that has to admit when it doesn't know?

I design and build AI agents and assistants, including the checks that make them say no when the source is silent. Book a short call and tell me what yours needs to answer.