deep · 6 min
Saying "I don't know"
Noticing when the retrieved text doesn't hold the answer, from retrieval scores or the model's own judgment, and telling the user so.
updated 27 Sept 2026
The fix looks easy. Put one line in the prompt: "Answer only from the documents. If they don't contain the answer, say so." Then the model will say so when it should. Let's see where that breaks.
Our docs chatbot knows the product manual. A user asks, "Does the app work offline?" The manual never mentions offline mode.
In a typical RAG pipeline, search grabs the five chunks most similar to the question. It always returns five. "Top five" has no idea of "none of these are any good". So the model gets chunks about sync settings, caching and network errors: close in topic, no answer.
Now the model can say the manual doesn't cover it. Or it can stitch something together from the caching chunk: "Yes, recently viewed pages are available offline." That second answer cites real text, so it looks grounded. And it's made up.
Documents make models answer more
You'd hope a model told to stick to the documents would notice they don't answer the question. Often it doesn't. Part of the reason is general, and it's in hallucination: training and benchmarks reward a guess over "I don't know". But retrieval adds its own push.
A Google team labelled questions by whether the retrieved text was actually enough to answer them, "sufficient context", and watched what models did. Big models answered well when the context was enough. When it wasn't, they often answered wrong instead of holding back.
And adding documents made them hold back less. One model declined 84% of questions with no documents and 52% once retrieved documents were added. Another went from 100% to under 19%. Some of that is good, since the documents helped them answer more questions correctly. The likely cause of the rest: any context makes a model more confident, including context that doesn't hold the answer.
So that one line in the prompt isn't enough. We need signals.
Signal one: the search score
The cheapest signal comes before the model runs. Every search result comes with a score. If even the best one is low, there's probably nothing there, and we can say "I couldn't find that in the docs" without calling the model at all.
But raw scores are slippery. A reranker like Cohere's gives scores between 0 and 1, yet they depend on the query. You can't read them as ratios, and the same number means different things for different questions. So we calibrate. Cohere's suggestion: take 30 to 50 real queries, find a document for each that's only borderline relevant, score those pairs, and use the average as a starting threshold.
That catches questions that are clearly off topic. It does nothing for our offline question, where the chunks are on topic and score fine but still don't hold the answer. Similar isn't the same as sufficient.
Signal two: ask the model
The model can tell "same topic" from "answers the question" better than a score can. So we use it in two ways.
In the prompt, we give it permission to say it doesn't know, and the exact words to use: "If the documents don't contain the answer, say 'I don't have enough information to answer that.'" For long documents, have it pull out relevant quotes first, with a fixed phrase like "No relevant quotes found" for the empty case. A fixed phrase is easy for our code to spot and turn into a proper screen state.
As a separate check, we ask a yes or no question before answering: does this text contain what's needed? If the API returns logprobs, the probability of "yes" becomes a confidence score we can put a threshold on.
Careful with that confidence, though. In an OpenAI example of exactly this check, over an article about Ada Lovelace, the model was 99.14% sure the article didn't answer one partly covered question, and 99.59% sure it did answer another partly covered one. Confidence says how sure the model is of its yes or no. It doesn't say whether the yes or no is right. Check any threshold against your own labelled examples before trusting it.
Putting them together
The Google team combined two signals: an automatic "is the context enough?" label and the model's own confidence in its answer. A small statistical model turned the two into one prediction of whether the answer would be wrong, and the system declined when that crossed a threshold. On the questions it still answered, it was right 2 to 10% more often, and it beat using confidence alone.
Why not just refuse whenever the context falls short? Because models still got 35 to 62% of those questions right anyway: a yes or no guess that landed, a fragment of context plus what the model already knew, or a fact it knew from training. A hard filter throws those away.
That last threshold is a dial between two numbers: how many questions the system answers (coverage), and how often those answers are right. Turn it toward caution and it answers fewer, with more of them right. Turn it the other way and it answers more, with more wrong. There's no correct setting in general. A medical tool belongs near the cautious end. A brainstorming tool can answer nearly everything.
Too cautious is a failure too, by the way. A system that says "I don't know" to everything never makes anything up, and nobody can use it. So in evals, track right, wrong and declined as three separate numbers. If declining scores the same as a wrong answer, the system gets tuned toward guessing.
A few more cautions. Thresholds don't travel: they're only as good as the examples you tuned them on, so re-check when the model, the documents or the questions change. And training it in doesn't fully work. The Google team fine-tuned models with "I don't know" as the answer on some examples. They declined more, but still answered wrong more often than they declined.
Saying it well
Detecting the gap is half the work. The other half is what the user reads.
In a 2026 usability study of site chatbots, one bot couldn't search for rental cars. Instead of saying so, it gave a long explanation of how to search the site. The user took it as a request for more details, typed them in, got the same kind of answer again, and only then realized the bot couldn't help. Another bot opened with "I can't rank listings" and put a useful alternative in the second paragraph. The user read the first sentence and stopped.
So put the "no" first, keep it short, and put anything the system can do instead right after it, not below. And say where it looked. People in that study were let down when a bot just sent them to other pages.
Back to the offline question, then. With a sufficiency check in place, the model sees that the caching chunk doesn't answer it, and the reply is something like: "I couldn't find anything about offline use in the product manual." One sentence. It says what's missing and where we looked, and it leaves the user free to check somewhere else.
Further reading
- Sufficient Context: A New Lens on Retrieval Augmented Generation Systems, Joren et al. (Google), 2024. How models behave when the documents aren't enough, and the combined-signal fix. The main one to read.
- Best Practices for using Rerank, Cohere, undated (checked 2026-09-27). A short, concrete way to set a score threshold.
- Using logprobs, Hills and Anadkat (OpenAI), 2023. The "is there enough context?" check in code, including where it gets it wrong.
- Reduce hallucinations, Anthropic, undated (checked 2026-09-27). Prompt wording you can copy for the "I don't know" phrase.
- Less Chat, More Answer, Rosala, Kenderova and Kohler (Nielsen Norman Group), 2026. What users actually need from a chatbot that can't help.