Building an AI assistant that knows when to say "I don't know"
Why a document Q&A assistant should abstain rather than guess, the Bedrock controls that make it do so, and how to measure errors rather than answer rate.
Westerwick6 min read

On this page
The assistant that worries business owners isn't the one that says "I don't know". It's the one that confidently invents a refund policy, a price or a deadline, and says it just as fluently as it says everything else. An AI assistant that abstains when your documents don't hold the answer is usually the more useful one, even though it answers fewer questions.
Why AI assistants guess instead of saying "I don't know"
Guessing isn't a bug that one vendor forgot to fix. In a paper published in Nature in April 2026, a team including OpenAI researchers argues that "dominant headline metrics such as accuracy systematically reward guessing over admitting uncertainty"1. Under accuracy-only scoring, "a model that guesses outscores a trustworthy model that abstains when uncertain"1.
They illustrate it with OpenAI's own models on SimpleQA, a set of factual test questions. The older o4-mini scored slightly better on accuracy: 24% against 22% for the newer gpt-5-thinking-mini. But o4-mini gave wrong answers 75% of the time, against 26% for the newer model, which abstained more often2. OpenAI's summary: "errors are worse than abstentions"2.
The same paper shows why this matters when you buy or build. The researchers tested a simple technique that makes a model abstain when its answers aren't consistent. It "cuts errors but also reduces accuracy across models", which the authors call "a barrier to adoption"1. In other words, the fix looks worse on a leaderboard even when it's better for your customers.
Judge a business assistant by how often it's wrong, not by how often it answers.
Grounding: answering only from your documents
A document assistant (often called RAG, short for retrieval-augmented generation) works in two steps. It first retrieves the passages from your documents that look relevant to the question4, then asks a language model to answer using those passages. An answer is grounded when everything it says comes from the retrieved passages.
Grounding isn't automatic. The model can still add a detail from its general training, mix up two passages, or answer a slightly different question. AWS's documentation gives a clean example: if the source says "London is the capital of UK. Tokyo is the capital of Japan" and the user asks for the capital of Japan, the answer "The capital of Japan is London" is ungrounded, while "The capital of UK is London" is grounded but irrelevant3.
Both failures look like confident answers to the person reading them. And a perfectly grounded answer can still repeat an outdated document, so someone must own and review the documents themselves. The controls below catch the first two problems.
Four controls that produce an honest "I don't know"
1. Filter weak retrieval before the model sees it
If retrieval returns nothing useful, the model will be tempted to fill the gap. In Amazon Bedrock Knowledge Bases, AWS's managed service for answering from your documents, every retrieved passage comes with a score, described as "the relevancy score of the document"4. Bedrock can also rerank results with a separate model that re-orders them by relevance4.
In our view, the simplest abstention rule starts here: if no passage clears a relevance bar you've tested, don't ask the model at all. Return a clear "no answer found" instead.
This check matters for another reason. AWS states that guardrails "are not applied to the references retrieved from Knowledge Bases at runtime"4. Guardrails don't validate the retrieved passages themselves, so we recommend checking retrieval quality before any answer is generated.
2. Tell the model, in plain words, when to stop
The instructions you give the model (the system prompt) should say what to do when the material doesn't cover the question: say so, and point to a person. Our own website assistant, the Westerwick AI chat, is told that if it doesn't know something it must "say so plainly" and direct the visitor to our email address or contact page, rather than invent clients, statistics or certifications.
Instructions help, but they're a request, not a guarantee. That's why the next control exists.
3. Check the answer against its sources
Amazon Bedrock Guardrails includes a contextual grounding check, which scores each answer on two things: whether it's grounded in the source, and whether it's relevant to the question3. You set a threshold for each. With thresholds of 0.7, "all model responses with a grounding or relevance score of less than 0.7 will be detected as hallucinations and blocked"3.
The threshold is a dial, not a switch. Raising it blocks more invented content, but also more legitimate answers. It can be set anywhere between 0 and 0.99, and "a threshold of 1 is invalid as that will block all content"3. Tune it on your own real questions, not on defaults.
Know the limits before you rely on it:
- Supported uses are narrow. AWS lists summarisation, paraphrasing and question answering, and states that "Conversational QA / Chatbot use cases are not supported"3. Don't assume the check covers a multi-turn chatbot; validate your design against AWS's stated limits before relying on it.
- Size limits apply. The check accepts at most 100,000 characters of source, 1,000 characters of question and 5,000 characters of answer3.
- Streaming can leak. When answers stream word by word, an irrelevant answer can reach the user and "is only marked as irrelevant after the whole response is streamed"3. For high-stakes answers, check before you display.
4. Route the "no" to a person
An abstention that ends in a dead end is still a bad experience. Every "I don't know" should hand over to something useful: a named team inbox, a callback form or a ticket. The assistant has just told you exactly which question your documents don't answer. That's worth capturing.
Designing the refusal the user sees
A good refusal is specific. "I can't help with that" frustrates people. "Our documents don't state a warranty period for this product. Ask the supplier, or contact our support team" tells them what's missing and what to do.
Our Ask demo includes exactly this scenario: asked about a warranty, it answers "Insufficient evidence" because the sample manual doesn't say, and suggests asking the supplier. It's a scripted sample, but it shows the shape we recommend:
- Say what was checked ("the equipment manual", "the 2026 price list").
- Say what's missing, in the user's terms.
- Offer the next step, with a real route to a person.
- Show sources whenever you do answer, so people can check the answers you give. Our article on citations users can actually inspect covers that side.
Measuring abstention: errors, not answer rate
The SimpleQA example shows why a single "accuracy" figure misleads2. Track three numbers on a fixed set of real questions:
- Correct answers.
- Wrong answers, the number that does damage.
- Abstentions, split into "rightly held back" (the documents really didn't say) and "wrongly held back" (the answer was there).
A change that lowers the correct-answer rate slightly while cutting wrong answers sharply is usually a good trade for a business assistant. The Nature authors make the same case for benchmarks: state openly how errors are penalised, so that holding back when unsure is rewarded rather than punished1.
Wrongly held-back answers aren't free either. If they climb, look at retrieval quality and your documents before loosening the thresholds.
Doing this in South Africa
Guardrails and Knowledge Bases are both available when you use Bedrock's global cross-Region inference from the Cape Town Region (af-south-1)5. AWS says data at rest, "including logs, knowledge bases, and stored configurations", is designed to stay in your source Region5. The processing of each request, though, is routed to supported Regions worldwide5.
AWS itself advises evaluating this against "the Protection of Personal Information Act (POPIA) and other sector-specific requirements" and consulting your legal and compliance teams5. We'd say the same: get professional advice before you put personal information in scope.
What to do next
- Write down what "no answer" should look like for your assistant, including the exact handover to a person.
- Collect 50 real questions, including some your documents genuinely can't answer, and record the right outcome for each.
- Set a retrieval score bar and a grounding threshold, then tune both against that question set rather than using defaults.
- Report wrong answers and abstentions separately each time you change a prompt, model or document set.
- Check data residency and POPIA with your advisers before live customer data goes in. To see abstention in action, try the Ask demo on our solutions page.
Sources
- 1.Evaluating large language models for accuracy incentivizes hallucinationsNature · 22 April 2026
- 2.Despite Improvements, GPT-5 Continues to Hallucinate, OpenAI SaysAnalytics India Magazine
- 3.Use contextual grounding check to filter hallucinations in responsesAmazon Bedrock User Guide
- 4.Query a knowledge base and retrieve dataAmazon Bedrock User Guide
- 5.Scale AI in South Africa using Amazon Bedrock global cross-Region inference with Anthropic Claude 4.5 modelsAWS Machine Learning Blog · 30 January 2026


