Short answer: make retrieval recovery a per-document state machine, preserve the last verified index generation, and fail closed when a legal contract cannot be tied to its exact source revision. The deciding constraint is auditability, not raw query uptime. A workspace that quietly serves mixed revisions after a partial ingest is available in the least useful sense.
For an internal knowledge-base bot used during contract review, I would ship four explicit states: pending , verified , stale , and quarantined . Keep generation metadata beside every chunk. A query may read only one verified generation per contract, so recovery never creates a half-old, half-new answer context.
That sounds strict. Good.
Why recovery starts with the document generation
Retrieval-augmented generation separates the model's parametric memory from an external non-parametric memory.…