VNode ITeSBook

AI Adoption & Agents

RAG in Production: Architecture Decisions That Actually Matter

Review document preparation, retrieval, access and evaluation together before treating a RAG demonstration as a production application.

Parveen KRPublished Updated 3 min read
A reviewer compares a generated answer with source material retrieved from an organised document collection.
On this page

Define the application boundary

A retrieval-augmented generation demonstration can be built around a small approved document set and a few friendly questions. A production application must also handle source changes, access permissions, incomplete evidence, failures and support ownership.

Define the question types the application may answer and the actions it may perform. Record whether it drafts advice or changes operational records. Treat the examples below as proposed architecture reviews, not a report of measured client results.

Preserve source meaning when preparing documents

Document preparation should preserve the context needed to answer the intended questions. A table row may need its headers; a policy clause may depend on an exception in the next paragraph. Fixed-size chunks are one option to test, not a sufficient explanation of a document strategy.

Keep identifiers, effective dates and source ownership with the material. Compare candidate preparation approaches using questions with known required evidence. An improvement needs observed retrieval and answer results on your own cases. No universal quality gain or cost reduction follows from selecting a named chunking technique.

Choose document preparation and chunking approaches that preserve useful context, then test them against representative questions.

Compare retrieval approaches using actual questions

Azure AI Search supports hybrid search that runs full-text and vector retrieval and combines their ranked results using Reciprocal Rank Fusion. Exact identifiers and conceptual questions can place different demands on retrieval.

Create cases that reflect both. Compare the returned passages, missing evidence and inappropriate matches. Keep query settings and corpus versions in the record. A benefit shown on one dataset does not establish a percentage improvement for another organisation. This article makes no numerical claim about VNode customer query performance.

Compare keyword, vector and combined retrieval approaches using the questions your system must answer.

Evaluate before tuning for a demo

Use a stable set of representative questions, including missing information, conflicting sources and questions outside scope. Inspect retrieval and generated-answer quality separately. Retain some acceptance cases that were not repeatedly used while tuning.

Microsoft Foundry documents evaluation and observability capabilities. Choose the workflow and supported metrics appropriate to the application, and keep domain review alongside automated signals. A fluent response or a citation is not evidence that the source was current or that access was authorised.

Use access and safety controls alongside output review

Enforce the intended document access in the application and connected services. Review how identity reaches retrieval and any tools. Test restricted operations with authorised test accounts. Prompts and citations do not enforce access.

Azure AI Content Safety Prompt Shields detect attack patterns in supplied text. They do not establish factual accuracy or source grounding, and handling depends on the selected integration. Treat detection as one control within the application design. Before wider use, test failure handling, source updates, monitoring and a supported recovery route, with named owners.

Evaluate answer quality and production controls, then retest after changes.
Sources & further reading (4)
Parveen KR, Founder and Principal Consultant at VNode ITeS

Written by

Parveen KR

Founder & Principal Consultant

Parveen KR is Founder & Principal Consultant at VNode ITeS, with 22+ years across technical training, consulting and capability development. A Microsoft Certified Trainer since 2012, he connects scoped advisory and implementation work with practical learning for the people who will use and maintain the solution.

View author profile
  • RAG
  • Azure OpenAI
  • Azure AI Search
  • LLM
  • Enterprise AI
  • Responsible AI

Next step

Want this workflow reviewed against your own work?

A consultant looks at the business outcome, the data, and who has to approve the action before recommending a scope.