View a markdown version of this page

Track and read results - AWS Context

Track and read results

Call GetEvaluation with the evaluation’s ID to read its status and results, or open the evaluation on the Evaluation tab in the console. An evaluation has ended when GetEvaluation returns endedAt.

The status field reports the evaluation’s progress.

PENDING (console: In progress)

AWS Context accepted the evaluation and hasn’t run a scenario yet.

IN_PROGRESS (console: In progress)

The evaluation is running. phase is RETRIEVING while scenarios run, and GRADING after retrieval finishes.

COMPLETED (console: Complete)

No scenario failed or went unanswered, and every evaluator scored every answer. An evaluation with no evaluators completes unless a scenario failed.

COMPLETED_WITH_ERRORS (console: Completed with errors)

The evaluation ended, but some scenarios failed, went unanswered, or weren’t scored. The results cover the scenarios that were scored. Without evaluators, only a failed scenario causes this status.

FAILED (console: Failed)

The evaluation failed. Retrieval metrics and the sessions of scenarios that ran remain. For causes, see Troubleshooting evaluations.

scenarioCounts shows what happened to each scenario. admitted is the number of scenarios in the evaluation. After retrieval ends, admitted equals the sum of the following counts:

  • submitted – Retrieval returned an answer, and the evaluation sent it to the evaluators.

  • unanswered – Retrieval ran out of time or returned no answer, so the evaluators didn’t score it. Narrow the question, or split it into smaller ones.

  • failed – Retrieval failed, or timed out before it retrieved any context.

The results contain the following:

  • metricSummaries – One entry for each selected metric. For latency, statistics.latency has sampleCount and averageMilliseconds over the submitted scenarios. A summary without statistics means no scenario reported a value, or the read failed. It never means a value of 0.

  • batchEvaluation – The Amazon Bedrock AgentCore batch evaluation that scored the answers: its batchEvaluationId, its batchEvaluationStatus, and evaluatorSummaries. For each evaluator, a summary has statistics.averageScore, totalEvaluated, and totalFailed. totalFailed counts answers the evaluator couldn’t score, not low scores. The console shows each average as a percentage.

  • retrievalTraceLocation and evaluationResultLocation – The CloudWatch Logs log group and log stream that hold the evaluation’s sessions and its scores.

  • scenariosDownloadUrl – A link that downloads the evaluation set. The link is valid for 5 minutes.

batchEvaluation is absent until the batch evaluation starts. It’s also absent after the evaluation fails or a read fails. It’s absent after the batch evaluation is deleted, or when the caller can’t read it in Amazon Bedrock AgentCore. To see the scores, the caller needs bedrock-agentcore:GetBatchEvaluation.

An evaluation with evaluators normally records its end when its batch evaluation finishes. Otherwise, GetEvaluation records the end when a caller with bedrock-agentcore:GetBatchEvaluation calls it. Until then, endedAt stays absent and DeleteEvaluation returns ConflictException. The evaluation counts toward the account’s 3 evaluations in progress until it ends, or until it reaches the maximum time a run can stay in progress.

To check the logs in the console, open the evaluation and choose View logs. Choose View retrieval traces to see each scenario’s question, answer, and retrieved context, or View evaluation results to see each evaluator’s scores. Each link opens CloudWatch Logs in a new tab. The same links are in each evaluation’s Actions menu on the Evaluation tab.

By default, the console’s evaluator scores count unanswered and failed scenarios as a score of 0, so they can be lower than averageScore. When an evaluation has such scenarios, turn off Include unevaluated scenarios to average only the scored answers. Latency always averages only the answered scenarios.