Test retrieval against draft and published document copies

Track publishing status separately from document name. A draft can be newer than the approved version even when both share a title.

Example

The internal rollout notes include an unapproved price change. The customer-facing assistant should retrieve the published policy only.

What to do

  1. Store source identity, state and audience on each indexed version.
  2. Test a query with both draft and approved documents in the environment.
  3. Verify eligibility filters and confirm that cache entries do not mix the versions.

How to verify

The public result only cites the approved version, while authorized internal views follow their own policy.

Limits

A draft may appear in another collection under a different name. Apply eligibility at ingestion and retrieval.

Spendplane for this workflow

See the masking demo and synthetic benchmark

Related reading