Field notes
Ten checks we run before a RAG feature goes live
Retrieval-augmented generation (RAG) features tend to stall after the demo works. The demo ran as an administrator over a tidy folder and answered questions its builder had picked. In production the same system meets the whole document store and users who may see only part of it, and they ask questions nobody planned for.
These are the checks we run before a RAG feature reaches real users. They apply on Amazon Bedrock and on Azure. Where a managed feature helps, we name it and link the provider's page; several are in preview, and provider pages change often, so open the source before you build on one.
Published . Sources checked .
A test set built from real questions
A build starts with fifty to a hundred questions collected from the places people already ask them: support tickets, a shared inbox, an internal chat channel. Each question gets the answer a good employee would give and the document that answer comes from. About one in five should be a question the system ought to decline or hand to a person, because the answer is not in the documents or the user may not see it.
Every change after that is scored against the set: chunking, the embedding model, the prompt, the model version. Amazon Bedrock's RAG evaluations can score a Bedrock knowledge base or responses brought from another RAG system. Microsoft Foundry made multi-turn and continuous evaluation generally available in November 2026. Neither tool writes the questions. That takes a few working sessions with the people who answer them today.
Retrieval scored on its own
When an answer is wrong, the first question is whether the right passage was retrieved. If it was not, no prompt change will fix it. Scoring retrieval apart from generation keeps the two kinds of failure from hiding each other, and Bedrock's retrieve-only evaluation jobs report context relevance and context coverage for that split.
The usual retrieval fixes are plain work: parse tables and scanned files properly, add metadata such as product, region, and effective date so results can be filtered, and remove old copies of the same document so the index holds one version of each policy.
Sources: 3
Permissions enforced at retrieval, per user
A demo usually runs as an administrator, so it can see everything. In production, each user should get results only from documents they may open, and the filtering has to happen before any text reaches the model.
Amazon Bedrock Managed Knowledge Base can ingest allow and deny lists from connected sources and return only the documents a given user may access. Its documentation sets two limits to design around. The feature filters results and is not a security boundary, so the application must authenticate the user and pass a verified identity. Users are matched by email address with no alias resolution, so an address that differs between the identity provider and the source system gives wrong results. On Azure, Foundry IQ's indexed knowledge source for Microsoft 365 document libraries, lists, and pages does permission-aware retrieval and became generally available in November 2026.
Our check before launch: sign in as the least privileged person in the company and ask about salaries, layoffs, and board minutes.
Citations a reviewer can open
Every answer should link the passage it came from, and the link should open the source at that passage. A support lead can then correct a wrong answer in a minute instead of guessing where it came from.
Bedrock's RAG evaluation scores this with two metrics, each from 0 to 1: citation precision, the share of cited passages that are cited correctly, and citation coverage, how well the response is supported by the passages it cites.
Sources: 5
A written rule for questions it should not answer
Some questions have no answer in the documents. Others have one that a user should not get from software, such as a legal, medical, or employment judgment. Each case needs a written rule and a handoff that passes the question and the retrieved context to a person, so they start with what the system already found.
Declining too often is a failure as well. Bedrock's refusal metric scores how evasive responses are, and Foundry's safety rubric evaluators (preview) report disallowed and allowed behavior violations separately, so refusing a question the system should answer counts against it.
Guardrails on what goes in and what comes out
Input checks look for prompt injection in user messages and in retrieved documents. Output checks stop content that should not leave the system, including personal data. A grounding check compares the answer with the retrieved passages: Bedrock Guardrails' contextual grounding check scores a response for grounding and relevance and blocks responses below thresholds you set.
Multi-turn chat and agents need more than single-message checks, because an attack can be spread across turns. Bedrock Guardrails announced stateful guardrails in gated preview on November 29, 2026; they evaluate a request with the system prompt and session history. Foundry added agent controls in public preview, which evaluate an agent's proposed actions with rules, safety classifiers, and model judges.
A cost for every answer
Log the cost of each request from the first day of a build: input and output tokens, the model, and who asked, by user, customer account, and feature. That gives a cost per answer, the number a product owner needs for pricing and the first number to drift when something changes.
On Bedrock, model invocation logging writes each call to CloudWatch Logs, Amazon S3, or both, and tags on an application inference profile can be turned into cost allocation tags so the cost shows per application in Cost Explorer. Managed spend limits are arriving on both clouds. Amazon Bedrock Gateway, in preview, sets dollar limits per user, group, or IAM role and stops requests before they reach a model. Foundry's cost controls, in public preview, set dollar or token budgets with alerts and blocks.
Model versions pinned, with their end dates written down
Every hosted model has a retirement date. On Bedrock, a model moves from Active to Legacy to End-of-Life, and most models have a 6-month Legacy period; some have 45 days. Once a model is Legacy, existing customers may lose access after 15 days of inactivity, which matters for a feature that only runs at month end. After End-of-Life, requests fail, and nothing migrates automatically.
On Azure, generally available models get at least 60 days' notice before retirement. Standard deployments can be upgraded automatically, which a deployment setting controls; provisioned deployments are not upgraded, and a retired model answers every request with an error.
Keep model IDs in configuration, put each retirement date in the runbook, and rerun the test set against the replacement well before the date.
Traces someone can read
When a user reports a bad answer, someone has to rebuild it: the question, the passages retrieved, the prompt, the model, the response, and how long each step took. That needs tracing by request from the first day of the build.
For agents on Bedrock AgentCore, AgentCore Observability now estimates cost by session, trace, and span (preview). Foundry's Insights, generally available, groups production traces into recurring findings such as failures, tool misuse, and where cost concentrates.
Fresh content and a named owner
Documents change after launch. The ingestion schedule should match how often the source changes, and deleted or replaced documents should leave the index on the same schedule. Otherwise the system will cite a policy that no longer exists.
The feature also needs an owner on the client's side and a runbook that says who is alerted, what counts as an incident, how to roll back a prompt or model change, and when the test set is rerun. Without an owner, answer quality slips and nobody notices until users stop trusting it.
Where the facts come from
Sources
Public provider pages only, each opened on December 5, 2026. Dates are the ones the page itself shows; pages with no date are marked as undated. Preview features can change or end before general availability.
- Evaluate the performance of RAG sources using Amazon Bedrock evaluations. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation-kb.html
- What's new in Microsoft Foundry | Ignite 2026. Microsoft Foundry Blog, November 24, 2026. https://devblogs.microsoft.com/foundry/whats-new-in-microsoft-foundry-ignite-2026/
- Use metrics to understand RAG system performance. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-eval-retrieve-generate.html
- Access Control Lists awareness enablement. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-acl.html
- Review metrics for RAG evaluations that use LLMs (console). Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-eval-llm-results.html
- Use contextual grounding check to filter hallucinations in responses. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-contextual-grounding-check.html
- Amazon Bedrock Guardrails announces stateful guardrails in gated preview. What's New with AWS, November 29, 2026. https://aws.amazon.com/about-aws/whats-new/2026/11/bedrock-guardrails-stateful-guardrails-preview/
- Monitor model invocation using CloudWatch Logs and Amazon S3. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/model-invocation-logging.html
- Application inference profiles. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/cost-mgmt-application-inference-profiles.html
- Amazon Bedrock Gateway (preview). Amazon Bedrock product page, undated. https://aws.amazon.com/bedrock/gateway/
- Model lifecycle. Amazon Bedrock User Guide, undated. https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html
- Microsoft Foundry Models lifecycle and support policy. Microsoft Learn, undated. https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirements
- Amazon Bedrock AgentCore adds cost visibility for every agent and fleet, plus lower-cost evaluations. What's New with AWS, December 1, 2026. https://aws.amazon.com/about-aws/whats-new/2026/12/agentcore-agent-fleet-cost-visibility/
Planning a RAG feature?
Next step
The AI Feature Launch Plan works through these checks for one use case and ends with a fixed price for the build.