Evaluating context
Evaluation measures whether an Agent Context returns correct, complete answers for the questions your agents ask. This chapter describes how to build an evaluation set, establish a baseline, run and interpret an evaluation, and evaluate continuously as your sources and context change.
You give an evaluation a set of scenarios, each a question with optional ground truth: an expected answer, assertions that a correct answer satisfies, or both. AWS Context answers each question with agentic retrieval, and Amazon Bedrock AgentCore evaluators score the answers. Run the same set before and after a change to the Agent Context, and compare the scores to catch regressions.
You run evaluations on the Evaluation tab of an Agent Context in the console, or with the StartEvaluation, GetEvaluation, ListEvaluations, and DeleteEvaluation operations. An evaluation runs with your own identity, so you need permissions for AWS Context, Amazon CloudWatch Logs, and Amazon Bedrock AgentCore batch evaluation. For the policy, see Permissions for evaluations.