Open table of contents
Conclusion
Moving RAG into production requires a decision about who may retrieve which version of a document and how the evidence behind an answer can be traced. Treat ingestion, retrieval, authorization, generation and evaluation as separate responsibilities, with identifiable changes and failure states.
Define the contracts first
| Boundary | Decision | Evidence to retain |
|---|---|---|
| Ingestion | Source identifiers, revisions, deletion and permission updates | Source-to-index mapping and pending or failed updates |
| Retrieval | Eligible corpus, chunking, candidate count and reranking | Query, configuration, candidate identifiers and ranks |
| Authorization | User access, decision validity and revocation | Denied cases and behavior of retrieval, answers and caches after revocation |
| Generation | Attribution and conditions for declining an answer | Source passages, generation settings, answer and evaluation |
Deleting a source document can leave copies in an index, answer cache or conversation history. Define retention and deletion for each store. Audit records may also contain sensitive material; decide what they contain, who can access them and how long they remain.
Steps toward a bounded release
- Limit the workflow and audience. Prepare answerable questions with identified source passages, questions with no available answer and questions that access policy must reject.
- Freeze the corpus and configuration versions. Evaluate retrieved candidates separately from generated answers so a retrieval miss is distinguishable from an unsupported answer despite available evidence.
- Revise and delete documents and revoke a user’s access. Observe the intermediate states until the index and caches reflect each change. Agree an acceptable propagation interval with the workflow owner before using it as an acceptance threshold.
- Check the user-visible outcome, retry behavior and escalation path when retrieval fails or generation times out. If the system can write to an external application, add a separate approval and execution boundary.
- Retain the questions, source revisions, settings, outcomes, exceptions and responsible reviewer together. Use that record to decide whether to continue or stop the bounded release.
Trade-offs
Separate responsibilities make revisions and failures easier to trace, but introduce update handling, retries and audit operations. A small application can maintain these contracts internally; separate deployed services are not a prerequisite.
Limitations
This process does not determine accuracy or update latency. Re-evaluate when the corpus, access model or question distribution changes. Define release criteria and authority to stop the system; average answer quality alone is insufficient.
Further reading and sources
- What to Measure Beyond the Answer in RAG Evaluation
- Before Adding AI: Prepare APIs, Data, Authority and Auditability
- OpenAI Retrieval guide: examples of search, chunking and attribute filtering. Check product-specific settings against the deployed version.
Related case context
These cases provide attributed design context. They do not establish that the proposed experiments or configurations were delivered in those engagements.