Why AI invents answers from documents and how to check them
When AI confidently quotes the wrong deadline from your documents, save the question, retrieved passages and answer first. The error may come from retrieval, version selection or answer generation. Check each consequential claim against a current source, and check important conditions that the answer omitted. A link to a file does not establish that the answer is supported.
Locate the stage where meaning was lost
RAG retrieves information from documents and passes that context to a model. Investigating an error requires both stages. Replacing the model does not automatically fix retrieval of the wrong policy.
- The necessary passage was not retrieved
- The original contains the rule, but the retrieved passages do not. Check inclusion in the collection, the query, chunk boundaries and ranking. Preserve retrieved IDs and versions.
- A different period or similar process was selected
- An answer may accurately repeat a superseded document or a different department rule. Check the question date, scope and applicable version. A more recent upload timestamp does not establish applicability.
- The context is sufficient but the conclusion is wrong
- The relevant passage reached the model, yet a number changed, an exception disappeared or an unsupported promise was added. Check claims and conditions separately.
- The facts are true but the answer is incomplete
- The answer names an eligible expense and omits prior approval. This is a completeness failure even if every number it gives is correct.
A first investigation can use a table: question, required source, retrieved source, answer, unsupported claim and expected next action. Use fictional or authorized materials.
Check each claim and its citation
Split an answer into verifiable claims: amount, deadline, condition, responsible role and allowed action. Every consequential claim needs support in the supplied context.
- An inspectable citation
- The link identifies a specific document and version, and the passage supports that particular rule. A link opening successfully establishes availability, not correctness.
- Numbers and units
- 6000 rubles per night, per trip and per month mean different things. Currency, period and applicable conditions must accompany the number.
- All consequential conditions
- A reimbursement question can depend on a complete document set and the start of the clock. An answer saying only “five days” can lead to an incorrect action.
- Limits of automated checking
- Document codes, exact amounts and required fields can be validated with rules. Free-text meaning requires a separate assessment. A model self-rating and a second AI evaluator can also be wrong.
Microsoft distinguishes groundedness, support from the supplied context, from completeness against the expected answer [S1]. Track them separately.
Define when the system should stop answering
A useful refusal explains what is missing and routes the question to an accountable person. Also test the opposite error: refusing despite a sufficient current source.
- The needed rule is absent
- State that the available sources do not establish an answer. Clarify the question or refer it to the process owner. General model knowledge should not substitute for a missing company deadline.
- Current sources conflict
- Explain the uncertainty and route it for resolution. The model should not independently revoke an approved policy.
- Relevant conditions are missing
- Ask for the period, expense type or another parameter that determines the rule. Do not silently assume the convenient option.
- An answer is available
- An unnecessary refusal harms usefulness when a complete current source exists. Count these separately from justified refusals.
Agree human approval separately for consequential actions such as payments or contract changes. A supported answer is not authorization to perform an external action.
Twelve fictional examples with inspectable outcomes
The archive contains four short sources, twelve questions, manually prepared answer candidates represented as facts, and a Python 3 program. This is a controlled demonstration of checks on labeled fields. It calls neither a model nor a search service.
- 3 answers pass the declared rules
- A correct limit with its unit, a complete approval requirement and an answer combining two sources. Each has current versions and retrieved supporting passages.
- 2 justified refusals
- The retrieved context lacks the needed rule, or contains explicitly conflicting current information. Both require referral to an accountable person.
- 7 answers require correction
- A wrong number, an old version, a missing condition, an irrelevant citation, an unavailable passage, incompleteness and an unnecessary refusal. Output retains IDs and reasons.
- What the program actually checks
- It reads inputs, compares values, versions, citations and required fields, then compares decisions against expected ID sets. Two runs should match. Altering an input amount must break reconciliation.
Sources, questions and answer candidates are fictional and labeled in advance. The 3/2/7 result applies only to these examples. It measures neither AI accuracy, real retrieval quality nor automated understanding of prose.
Build an acceptance set for your process
Begin with authorized questions for which a process owner can identify a correct answer and source. Separate system tuning from final evaluation on previously unused questions.
- Routine and difficult questions
- Include paraphrases, similar documents, older versions, tables, exceptions and unanswerable questions. Record expected facts, required conditions and permitted refusals before running the system.
- Evaluate retrieval and answers separately
- For retrieval, check whether the necessary passage is present. For answers, count supported and unsupported claims, omitted conditions, justified and unnecessary refusals. Use a matching denominator for each metric.
- Repeated runs
- Preserve document versions, retrieval settings, model, prompt and run time. Repeat questions and separately test a changed source. One successful run does not establish consistent quality.
- Operational usefulness
- Measure human review time, rework, response delay and processing cost. Set acceptance thresholds from the process and the cost of errors. There is no universal percentage for every workflow.
Microsoft notes model response variability and the need to select workload-specific metrics [S2]. A model-based evaluator can assist review; disputed cases and acceptance criteria remain with the process owner.
What to bring to an initial discussion
The initial discussion is free. A full audit, pilot, implementation and support have separately agreed scope and price.
- One question and an authorized example
- Describe the reader, the action following the answer and the consequence of an error. A fictional passage with the same structure is enough to start.
- First-phase deliverables
- An agreed question set, sources and versions, a diagnosis of retrieval and answer errors, refusal rules, a review route and a decision on the next phase.
- What affects the work
- Tables and scans, update frequency, contradictions, retrieval quality, citation requirements, human reconciliation and hosting constraints. Answer evaluation complements source preparation and access control.
First check whether existing search and clear references are sufficient. A separate AI system needs an agreed process and an inspectable useful outcome.
Investigate one incorrect answer
Describe the question, expected result and consequence of an error. Add a fictional example of the relevant rule. Agree the transfer of real materials separately.
Official sources
Checked 13 November 2026. Sources for separate evaluation dimensions and repeated testing. Examples, program rules and acceptance recommendations were prepared for this guide.