Salar Saeedi

Applied AI · Guide

How to stop a policy assistant from quoting the wrong year

Teach a policy assistant to retrieve rules by effective date, jurisdiction, and audience, then test it on documented changes over time.

Salar Saeedi2 min read
Three-stage illustration — How to stop a policy assistant from quoting the wrong year

Suppose a company extends its return window on 1 April. A well-cited answer can still give a March purchase the April terms. Policy search needs to match the version of a rule to the events in the question.

Make effective dates part of retrieval

Store the effective interval, affected market, audience, and supersession links with each policy version. Index the text and metadata together. Preserve the original versions for questions about older cases and show document dates with passages when preparing the answer context.

Source · Anthropic — Context engineering for AI agents

Test the transition rather than the easy middle

Use paired synthetic examples with dates just before and just after the change, an undated request, and an exception that applies only in one market. Require the answer to cite a specific rule and either identify its effective date or ask what happened when. Verify case-level application as well as citation coverage.

Source · Niu et al. — RAGTruth · OpenAI API — Evaluation best practices

Keep the review path traceable

Give the reviewer the question, the policy version retrieved, and the passage used. Add search tests for archived records after publishing a new policy. If the available evidence leaves an overlap or gap between versions, route the decision to the person responsible for the policy.

What to take away

For decisions governed by a dated policy, a trustworthy answer matches the rule, version and event date.

References

Related work in the portfolio