When a retrieval-augmented generation (RAG) assistant gives a bad answer, trace one failed question before changing the model. Check which source should have applied, whether its current text made it into the index, and what evidence the model actually received. Fix the first point where that evidence went missing, changed meaning, or stopped being eligible.

Start with one question and one authoritative source
A support lead reports that the assistant gives customers 30 days to request a return. In this hypothetical example, the current policy gives customers on new orders 14 days. Orders placed before the change still qualify for 30. The original answer might be correct for one order and wrong for another. Ask the policy owner to name the authoritative passage, when it took effect, and which orders it covers.
Make that expectation explicit in a replay record: the exact question and relevant order date; the user role and question time; the expected document, version and passage; any version or copy that should be excluded; the passages actually sent to the model; and the owner of the first failed check. Use a test account and retain identifiers rather than sensitive document text in routine logs. If the order date is missing, the expected behavior may be a clarifying question instead of a deadline.
Check the passage at each handoff
First compare the approved source with the extracted text. Can you see the 14-day rule and its effective date together? A PDF parser might pull the number out of a table while losing the column header that explains which orders it covers. Fix the extraction or preserve the heading and row labels with the passage. A larger chunk can retain more context, but it can also mix two policies; check the text a person would actually read.
Next find the expected version in the live index using its source ID. If the current passage exists in extracted text but is absent from the index, inspect the ingestion job, its checkpoint, and the index it wrote to. If the version is present, replay the original question with the same user role and filters. Check the candidate results, then the smaller set of passages the model received. The right passage may have been filtered out by missing metadata or dropped when results were ranked and trimmed.
If the right passage arrives intact and the assistant still gives the wrong deadline, inspect how the model applies the evidence. Microsoft's RAG evaluation guidance distinguishes retrieval from whether the answer is grounded in what was retrieved. An answer can be grounded in the wrong version. Score the evidence against the policy first, then score the answer against that evidence.
Prove that changes make it to live retrieval
Give each approved source a stable ID and distinguish its revision from the time it was indexed. Record effective dates and the business scope that selects the right revision. A freshly indexed copy can still describe old policy. Keep historical versions searchable only where the workflow needs them, such as the return window on an older order. If a document has been withdrawn entirely, confirm its text is excluded from search and any cached responses that depended on it.
Test a complete change in a staging environment: publish the new version, ask a question about a new order and one about an older order, withdraw a duplicate copy, then rerun both questions. Try the same replay after an interrupted ingestion job. Confirm that the old and new chunks are each eligible only where intended. Oracle’s index-drift guide explains why checking the source alone misses outdated chunks and derived artifacts.
Choose an update window with the workflow owner. For a time-sensitive policy, agree on what the assistant does if a new revision misses the deadline: route the affected question to a person, for example. Measure from the approved change to the point it is served by the live retrieval path. A successful sync log only proves that a job finished. Microsoft’s grounding data design guidance covers refresh choices and the trade-off between incremental updates and rebuilding an index.
Give the first failed check an owner
Keep a small replay set for the sources that matter most to the business. Include a normal question, an effective-date boundary, a plausible duplicate, and a withdrawn source. Track which cases returned the expected passage and which admitted ineligible evidence. Share the failing case with the team that can fix it: the policy owner for conflicting rules, the data team for extraction and sync, or the product team for a reply that misuses good evidence.
On the WhatsApp AI assistant project, NULL GROUP built the data infrastructure, ETL pipelines, dashboards, reporting, marketing data and automation for a product reaching close to 300,000 users. Our guide to data infrastructure for AI assistants covers the wider data layer. Once the evidence path is reliable, use a separate AI assistant evaluation framework to decide which tasks the assistant should be allowed to perform.
Start with a wrong answer your team can reproduce and trace it back to an approved passage. If that trail breaks across systems, our System Improvement service can help isolate the failing handoff. Share the failing question and source with us to discuss where to start.