In a fictional equipment policy, Finance had 15 calendar days to return equipment until a July revision extended that deadline to 30. Operations kept 15. If the AI answers 15 for Finance in August, check which passage it had in front of it.
Mark one version effective April 1 and the other July 1. Give both the title “Equipment Returns.” The documents should look similar enough that a search for the title finds both. Add a short sentence with a distinctive phrase and a version label to each relevant section. Keep the answer sheet and the phrases identifying the right version outside the question text.
Put an effective date in the test cases
| Question | Expected answer and proof |
|---|---|
| What was the Finance deadline on May 10? | 15 calendar days, with the April policy paragraph. |
| What was the Finance deadline on August 10? | 30 calendar days, with the July policy paragraph. |
| What was the Operations deadline on August 10? | 15 calendar days, with the Operations exception in July. |
| What is the deadline for a team omitted from the July version? | Ask for the team’s applicable rule or say the supplied documents do not establish it. |
Give your sample an explicit scope for teams the July document omits. The last answer works when the fictional July policy supersedes the whole April policy on its effective date. If the revision supersedes only part, change the expected result to reflect the version that still applies.
Isolate the source of a stale answer
Save the returned file ID, version, and a citation or supporting passage for each question. If the app exposes retrieved chunks, record them in a test log. Google’s Document AI layout parser describes chunks that can carry their ancestor headings. Preserve a version label alongside that heading in your own index so passages with the same section title can be told apart. Document AI layout parsing
When an answer is wrong, inspect the retrieved passages. If only the April passages are present for the August Finance question, check what files the app indexed and how it applied the date. When both files are present and the app still uses April, require the answer to state the effective date and point to the exact section before you accept it. NIST discusses confidently incorrect answers and citations. Mark missing source evidence as its own failure even if the deadline is correct. NIST generative AI risk profile
Keep file dates and policy dates separate
Give the April and July files distinct identifiers even when they have the same heading. Note the effective date and whether the new version replaces the entire policy. Keep upload dates in separate fields. A coordinator can upload an older PDF tomorrow for archival purposes, and the new upload does not become the working rule. For a historical question, the date in the query needs to take priority over a newer version's convenience.
Save the question and its expected passage. For the August Finance lookup, keep an excerpt showing “Finance,” “30 calendar days” and the relevant effective date or version header. A returned passage that contains only “30 calendar days” has lost the group it applies to. Preserve both the words and the section context if the indexed material lets you. Confirm that the import actually captured the page with the date as well as the page with the answer.
Test a copy whose file has the latest upload date but whose policy effective date is still in the future. Put the date after August 10, then ask the same August question. Examine which file was retrieved before accepting any answer. Next move the question's date past the new policy and check whether the answer changes. Both questions should carry their own explicit date. This can uncover a workflow that always chooses the latest upload or always pins the result to the July file.
Find where the older passage entered the answer
| What you can inspect | Example finding | Check next |
|---|---|---|
| Document inventory | July is missing | Ingestion, file access and the version identifier |
| Chunks for the August Finance question | Only April is returned | Date and department filters, then retrieval ranking |
| Both versions in the returned material | The answer still cites April | The policy scope, effective-date resolution and citation |
| The answer mentions July but gives no passage | The words are right without evidence | Require an exact section, then check it in the file |
If you can see only the final answer, document that limitation. Ask the app to quote and identify the passage it used, then audit the citation against the original. A bad result might be a retrieval problem or an interpretation problem, and the final answer alone may not identify the cause. See whether the app supports a test workspace that can isolate one version at a time. A failure with only July loaded points to a different issue than a failure that appears only when both are loaded.
Check versions after any refresh
Choose a test that includes an exception. In the example, Operations remains at 15 days in July. That catches a workflow that sees a new Finance rule and applies the same time to everyone. When a policy changes one group, inspect whether the heading or another note clearly delimits that group. If the file is scanned, make sure the index kept the labels that distinguish the departments. Fixing the page image may help only if the input actually has that problem.
Keep these questions and their expected sources in a small test set outside the policy documents. When a refresh replaces files, rerun them with the same date assumptions. Make one correction at a time, such as providing a version identifier or updating the retrieval rule, so you can see which change affected the answer. When a future-dated rule is loaded, check the old and new periods before sharing the refreshed workflow. If the question itself does not provide a usable date, configure a way to ask for it or state the date basis explicitly.
For another useful case, leave both files in the index and remove access to July for one authorised test account. A response should respect what that account can retrieve, and make the gap clear when the available material cannot establish a current deadline.


