

# How experiments use AI

Experiments uses AI to score your agent's responses. This page describes which results are AI-generated, which results CloudWatch computes, and how each result names the evaluator that produced it. For the role that CloudWatch uses during a run and where the results are stored, see [Security for experiments](omni-security-for-experiments.md).

## How evaluators score responses
<a name="omni-experiments-how-experiments-use-ai-evaluators"></a>

You choose the Amazon Bedrock AgentCore evaluators that score your agent's responses, such as `Builtin.Correctness` and `Builtin.Helpfulness`. These evaluators use a large language model (LLM) to judge each response.

For each case and evaluator, the run records the following results:
+ **Score** – A number, from a numeric evaluator.
+ **Label** – A category, such as `Somewhat Helpful`, from a categorical evaluator.
+ **Explanation** – The evaluator's reasons for its score or label.

In a hosted run, CloudWatch gets these results from the Amazon Bedrock AgentCore batch evaluation. In a run that your code reports with `PutExperimentRunResults`, your code sends the results, and CloudWatch records them as sent.

## AI-generated results
<a name="omni-experiments-how-experiments-use-ai-generated-results"></a>

Scores, labels, and explanations are AI-generated. An LLM can be wrong, so a score or label can be inaccurate, and an explanation can read well and still be incorrect. Before you act on a result, read its explanation and the trace of the response that it scored. Each case links to that trace.

## Results that CloudWatch computes
<a name="omni-experiments-how-experiments-use-ai-computed-results"></a>

Pass and fail results and run verdicts aren't AI-generated. CloudWatch computes them from the evaluator scores and labels and the rule that you give the run:
+ A case passes when it meets every case criterion in the rule. A criterion sets a minimum score for a numeric evaluator, or the labels that pass for a categorical evaluator.
+ A run passes when it meets every gate in the rule. A gate sets a bound on a measure of the run's cases, such as a minimum pass rate or a minimum average score.

The verdict states which check decided it and the values that it compared, for example `pass rate 82% (required 90%)`. It also lists each gate with the value that CloudWatch observed and whether the gate passed. You can reproduce a verdict from the recorded scores and labels. A run without a rule has no verdict.

## How results name their evaluator
<a name="omni-experiments-how-experiments-use-ai-attribution"></a>

Each score, label, and explanation carries the `evaluatorId` of the evaluator that produced it. You see this ID in the following places:
+ The Experiments pages in the CloudWatch console.
+ The run's summary scores in the `GetExperimentRun` response.
+ The case records in your results log group. For where these records are stored, see [Where results are stored](omni-security-for-experiments.md#omni-security-for-experiments-where-results-go).