Skip to content
CoRISE

From RAG Prototype to Production Architecture

Separate retrieval, generation, authority, freshness and evaluation for sustainable RAG operation.

3 min read
  • AI
  • Data
  • Architecture
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

BoundaryDecisionEvidence to retain
IngestionSource identifiers, revisions, deletion and permission updatesSource-to-index mapping and pending or failed updates
RetrievalEligible corpus, chunking, candidate count and rerankingQuery, configuration, candidate identifiers and ranks
AuthorizationUser access, decision validity and revocationDenied cases and behavior of retrieval, answers and caches after revocation
GenerationAttribution and conditions for declining an answerSource 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

  1. Limit the workflow and audience. Prepare answerable questions with identified source passages, questions with no available answer and questions that access policy must reject.
  2. 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.
  3. 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.
  4. 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.
  5. 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

These cases provide attributed design context. They do not establish that the proposed experiments or configurations were delivered in those engagements.

Contact

Tell us about your engineering challenge.

Talk with CoRISE about the design, implementation and operation of your systems.

Start a Conversation