Evaluating Generative AI Applications Before and After Release
This lesson explains the evaluation types in Amazon Bedrock Evaluations, how evaluations gate releases in pipelines, and how outputs are validated in production.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish automatic, LLM-as-a-judge, human and RAG evaluations.
- Explain how a golden data set and thresholds gate prompt and model changes.
- Identify run-time controls that validate generative AI outputs.
Amazon Bedrock Evaluations
Amazon Bedrock Evaluations runs evaluation jobs over a prompt data set. Automatic evaluations compute built-in metrics such as accuracy, robustness and toxicity. LLM-as-a-judge evaluations use an evaluator model to score responses for correctness, completeness, faithfulness, harmfulness and custom criteria at scale, with optional reference answers. Human evaluations use internal work teams for judgements that need people. RAG evaluations score knowledge base retrieval (context relevance and coverage) and generated answers (correctness and faithfulness to the retrieved context). Results compare models, prompts and configurations side by side.
Evaluation in the delivery pipeline
Prompts, model choices, guardrail settings and knowledge base configuration are versioned like code. A change triggers an evaluation job against a curated golden data set of representative and adversarial prompts, and the release proceeds only if scores meet thresholds and do not regress against the current version. The data set grows from production samples and reviewers' corrections.
| Change | Evaluation |
|---|---|
| New prompt template | LLM-as-a-judge quality scores against the current version |
| New model | Same data set across candidate models, plus latency and cost |
| New chunking or retrieval settings | RAG evaluation of retrieval and answers |
| New guardrail settings | Safety test set of harmful and benign prompts |
The following diagram shows the evaluation gate in the delivery pipeline.

Evaluating AI changes
Validating outputs in production
- Guardrails with contextual grounding and automated reasoning checks validate responses at run time.
- Structured output features and schema validation in code check machine-readable responses.
- AgentCore Evaluations scores live agent sessions, for example for helpfulness and tool selection.
- User feedback and sampled reviews feed new evaluation data.
A claims assistant
A claims assistant's answers got worse after two prompt changes, and the company now wants to switch to a cheaper model without losing quality.
The team builds a golden set of 1,500 claims questions with reference answers. Each pull request that changes prompts or retrieval settings starts a RAG evaluation job, and the pipeline blocks the merge if correctness or faithfulness fall below the current version's scores.
For the model change, evaluation jobs run the same set against both models; the cheaper model matches quality on 97% of questions, so it is released with an online evaluation of sampled production sessions to confirm the result.
What makes a prompt change safe to release in an evaluation-gated pipeline?
Show answer
Its scores on the curated golden data set meet the thresholds and do not regress compared with the current version.
Exam Tips
Remember for the exam
- Prompt or model changes must not reduce quality: Bedrock evaluation job as a pipeline gate.
- Score faithfulness to retrieved documents: RAG evaluation.
- Nuanced quality scoring at scale without reviewers: LLM-as-a-judge.
- Measure live agent quality after release: AgentCore Evaluations online evaluation.