How an evaluation works
An evaluation runs in two phases, which GetEvaluation reports as its phase:
-
RETRIEVING– AWS Context runs one agentic retrieval for each scenario, as you. It records each scenario’s question, generated answer, and retrieved context as one session record. The sessions go to your CloudWatch Logs log group/aws/context/evaluations/sessions/default. -
GRADING– After retrieval finishes, AWS Context starts an Amazon Bedrock AgentCore batch evaluation with your credentials. Each selected evaluator scores each answered scenario, and Amazon Bedrock AgentCore writes the scores to the log group/aws/bedrock-agentcore/evaluations/batch-evaluations/results/default.
An evaluation with evaluators takes several minutes, even with one scenario. An evaluation that selects only retrieval metrics, with no evaluators, starts no Amazon Bedrock AgentCore batch evaluation.
Each evaluation has a time limit for running its scenarios. When an Agent Context doesn’t match the scenarios well, agentic retrieval takes more turns to answer each question. A large set can then reach that limit and fail. Before you run a large set, run a smaller one and check its retrieval latency.
Each evaluation runs once. To repeat it, start a new evaluation with the same scenarios, or choose Duplicate in the console. For more information, see Evaluate continuously.