

# Compare before and after a change

Comparing runs is how you find a regression. Run your evaluation set, make the change, run the same set again, and compare the two evaluations. Make risky changes in a test Agent Context first, so a regression doesn’t reach your agents.

Keep the scenarios, the evaluators and metrics, and the caller’s access the same in both runs. Scores depend on what the caller can read, so two callers can get different scores from the same Agent Context.

Compare the following:
+ Each evaluator’s `statistics.averageScore`. A drop means that answers got worse for that evaluator.
+  `scenarioCounts`. A rise in `unanswered` or `failed` scenarios is a regression even when the averages hold.
+ Retrieval latency, if you selected it.

To find which scenarios regressed, compare their scores in the results log group, and their answers in the sessions log group. `GetEvaluation` returns both locations.

An evaluation reads the Agent Context as it is when the evaluation runs, so it doesn’t measure a change that’s held for review. For a pattern with a separate Agent Context for each environment, see [Dev, test, and production patterns](promote-patterns.md).

To repeat an evaluation in the console, choose **Duplicate** on the evaluation. The console opens a new form with the same evaluators, metrics, and scenarios, and the name with `-copy` added. Review the form, and then choose **Run evaluation**. If the console can’t load the scenarios, upload the scenario file again. With the API, download the evaluation set from `scenariosDownloadUrl`. The file is JSON that you pass to `StartEvaluation` as `scenarioSource.inline`.