Rachis

When should an answer say "I don't know"?

20 November 2026, updated 28 November 2026

Part 6 of 7: Start here

When your application says it does not know, you need to decide whether the documents lack the answer or the needed passage never reached the model. A reply that fills a missing fact with a guess can mislead the user; a refusal can withhold information the documents contain.

The application builds a request for the model containing selected passages, the question and instructions. Start with an instruction to answer only from what the request contains and to name any missing information, then check each refusal to decide whether to accept the limit or fix how your application selects passages.

Two reasons the passages lack the answer

Retrieval is the step that searches your document collection for passages relevant to the question. Retrieved passages can concern the right subject while lacking the fact needed to answer.

Take a traveller who asks whether their insurance covers a concert ticket they could not use because their flight was cancelled. If the insurer's policy wordings and claims guidance mention nothing about unused tickets, the answer should say the documents do not say whether that loss is covered.

Now suppose an endorsement, a document amending the policy, covers that loss but never reaches the request. The same reply is then accurate about the passages it was given and wrong about the documents. To find where the endorsement dropped out, check which passages reached the request.

When the passages are close but incomplete

One LangChain forum user building a tool that drafts emails gave this example of the problem: when looking up the cost of a 60x40cm sign, the retriever fetches passages about prices but misses the one specifying dimensions, so the model guesses the price of a medium sign instead of a small one.

When the reply refuses although the answer was found

One RAGFlow user reported that RAGFlow's retrieval test, which shows what search returns for a question, put the correct passage first. The reasoning the chat displayed before replying also identified the answer. The final reply still said the available sources were insufficient. The author later wrote that the behaviour stopped after updating to a newer build.

To distinguish missing evidence from a reply that does not account for evidence it received, inspect the request that was actually sent.

The missing documents and recall collection gathers related builder reports.

Give the model a missing-evidence rule

Anthropic's guidance recommends allowing Claude to say "I don't know" and instructing it to use only provided documents, not its general knowledge. For long documents, it recommends extracting word-for-word quotes first. It also suggests checking each claim against a quote afterward and retracting any without support. These techniques can reduce false information without eliminating it.

Start with this instruction and test it: "Answer only from the passages below. Cite the passage behind each statement. If the passages do not contain the answer, say so and name the information that is missing. If they answer only part of the question, answer that part and say which part they do not cover."

For the traveller, "The supplied passages do not say whether unused concert tickets are covered" leaves the question open. OpenAI's prompting guidance for GPT-5.6 says absence of evidence should not automatically become a factual "no". For research and synthesis, it recommends narrowing the answer or reporting missing evidence instead of guessing.

In RAGFlow's Naive chat mode, the Empty Response setting sets a fallback message for questions where retrieval finds no usable dataset content. Leaving the field blank allows the model to continue generating an answer. RAGFlow's documentation says the fallback is based on retrieval results and does not guarantee that every generated answer is complete.

What studies show about instructions to decline

A 2026 study tested three small models on English questions from Natural Questions and HotpotQA, scoring replies automatically by exact match and word overlap with reference answers. With an explicit instruction to decline, they almost never answered when the passages held no answer.

On fully supportive passages, adding that instruction lowered the answer rate from 91.7% to 79.3%. When one passage was edited to give a wrong answer, they still answered 41.6% of those questions.

Another 2026 study tested 12 models on six datasets. The models range from 135 million to 32 billion parameters, the numerical values a model learns in training. The study paired passages that answered a question with versions where a needed passage was replaced or removed, or the question was swapped for one the passages could not answer.

Told to reply "unanswerable" when the documents lacked the answer, the models still answered 40.0% to 99.3% of questions without enough evidence and refused up to 29.7% of those with enough.

Both studies found models answering when the passages lacked the correct answer and refusing when the passages held it, so check for both.

A first setup and a check

Start with the instruction above. If your application shows a fixed message when search finds nothing, such as RAGFlow's Empty Response, word it so users can tell it apart from the model's own reply. Save the exact request, reply and citations together.

Write a few questions your documents answer and a few they do not, and record the passage that settles each answerable one. Run them, and for each reply note whether it answered or declined and whether that passage reached the request.

A correct "I don't know" reflects a real limit in the documents; make that clear to the user. If a refusal's settling passage never reached the request, inspect search, filters, ranking and request assembly.

If the passage was in the request and the reply still declined, compare the reply with that passage and the instruction. If the reply answers a question your documents cannot answer, check each statement against its passage and revisit the instruction. The next piece covers how to test the answers your application gives.

Join the waitlist: one email when there is something to try.

Read the pain map: Retrieval and citations.