> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Regression Evals

Test agent responses against scored datasets with automated LLM grading.

Regression Evals is an evaluation framework for systematically testing agent quality on the Uptiq Platform. It allows teams to create datasets of test cases, which are read from an uploaded document, generated by an LLM, or added manually. Teams then run those test cases against a live agent, score each response on a 0–10 scale using an LLM scorer, and receive AI-generated suggestions for improving the agent.

{% hint style="info" %}
Use [Regression Evals](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals.md) before release, [Online Evals in Control Center](https://docs.uptiq.ai/platform/control-center/evals.md) after release, and [Reinforcement Learnings](https://docs.uptiq.ai/platform/console/agent-builder/monitor/reinforcement-learnings.md) to carry reviewed feedback forward.
{% endhint %}

<details>

<summary>Regression Evals or Evals? The difference</summary>

The Uptiq Platform has two evaluation features, and their names are close. **Regression Evals** is the one on this page. **Evals** is a separate section of Control Center. They answer different questions.

|                                  | **Regression Evals**                                                        | **Evals** (Control Center)                                                                                                                        |
| -------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Question it answers**          | Does the agent still give the right answers after I change it?              | How good are the answers the agent gives to real users?                                                                                           |
| **When it runs**                 | Before release, when you choose to run it                                   | After release, in the background on live conversations                                                                                            |
| **What is scored**               | The agent's replies to your test cases                                      | Real executions, which the agent ran for real users                                                                                               |
| **What you compare against**     | An expected answer you wrote, or had written for you, for each test case    | The evaluator's method, such as Checklist, Answer Relevancy, Faithfulness, Safety or Task Completion                                              |
| **How it's scored**              | An LLM scorer rates each reply from 0 to 10. A score of 7 or higher passes. | An evaluator, using a single judge model, a jury of models or one of your agents. A result below the evaluator's **Pass at or above** mark fails. |
| **Where you set it up**          | One agent, in **Agent Config › Regression Evals**                           | The account, in **Control Center › Evals**. An evaluator is assigned to agents and can serve more than one.                                       |
| **What you do with the results** | Read the failures, then apply **Suggested changes** to the agent            | Review flagged results in the **Review Queue**, and track quality in **Online Eval Runs**                                                         |
| **Effect on users**              | None. The test cases never reach a user.                                    | None. Scoring runs off the response path.                                                                                                         |

Use them together. Run Regression Evals before you release a change, to catch regressions against known cases. Use Evals after release, to catch drift on real traffic. When a reviewed miss in production reveals a gap, add it to a Regression Evals dataset so the next change is tested against it.

See [Evals in Control Center](https://docs.uptiq.ai/platform/control-center/evals.md) and [Evals](https://docs.uptiq.ai/platform/core-concepts/evals.md) for the production side.

</details>

| Capability           | Description                                                                                                                  | Limit                                             |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| Dataset management   | Create, rename, delete datasets; import test cases from an uploaded document, or generate them from the agent's instructions | 100 per agent                                     |
| Test case management | Question, expected answer, optional document context and attachments                                                         | 50 per AI generation; up to 500 from one document |
| Evaluation runs      | Trigger, monitor progress in real-time, cancel, view results                                                                 | 100 per agent                                     |
| LLM scoring          | 0–10 scale with reasoning, 7+ = pass threshold                                                                               | —                                                 |
| Suggested changes    | AI-generated improvement recommendations with one-click apply                                                                | —                                                 |
| Document support     | Auto-generated DOCX/XLSX/PDF test documents with preview                                                                     | —                                                 |

## Open Regression Evals

Regression Evals belongs to one agent. Open the agent in Agent Builder and select **Agent Config**. The **Agent Config** window has a sidebar of settings in four groups, with no search box:

| Group                      | Settings                                                                                                                                 |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **Agent Setup**            | **Basic Details**, **Instructions**, **Agent Behaviour**, **Integrations**, **Skills & Capabilities**, **Triggers**, **Execution Plans** |
| **Credentials & access**   | **Secrets & Variables**, **Access & Security**, **Authentication**                                                                       |
| **Cognition & Control**    | **Guardrails**, **Regression Evals**                                                                                                     |
| **Reinforcement Learning** | **Learning Cases**, **FAQ**, **User Persona**                                                                                            |

Select **Regression Evals** under **Cognition & Control**, below **Guardrails**. The page has two tabs, **Datasets** and **Runs**. Inside a dataset or a run, a breadcrumb at the top, such as **Regression Evals › New dataset** or **Regression Evals › Evaluation run**, takes you back to the page.

## Workflow

{% tabs %}
{% tab title="Datasets and test cases" %}
Manage [datasets](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-datasets.md#datasets) and [test cases](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-datasets.md#test-cases).
{% endtab %}

{% tab title="Runs and results" %}
View [runs](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-runs-and-scoring.md#runs), [scoring](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-runs-and-scoring.md#scoring), and [suggested changes](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-suggested-changes.md#suggested-changes).
{% endtab %}
{% endtabs %}

{% stepper %}
{% step %}

### Build a dataset

Create a [dataset](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-datasets.md#datasets) from an uploaded document, generate one with AI, or add test cases manually.
{% endstep %}

{% step %}

### Run the evaluation

Execute the dataset against the live agent in [Runs](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-runs-and-scoring.md#runs).
{% endstep %}

{% step %}

### Review and improve

Inspect [scores](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-runs-and-scoring.md#scoring), review failures, and apply [suggested changes](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-suggested-changes.md#suggested-changes).
{% endstep %}
{% endstepper %}

***

## In this section

Datasets, runs and scoring, and suggested changes each have their own page.

* [Regression Evals datasets](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-datasets.md): Create, import and manage the datasets and test cases that Regression Evals runs against an agent
* [Eval runs and scoring](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-runs-and-scoring.md): Start and monitor evaluation runs, read run results, and see how each test case is scored
* [Regression Evals suggested changes](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals/eval-suggested-changes.md): Review the changes Regression Evals suggests for an agent and apply them

## What's next

{% content-ref url="/pages/rGXmqmGrFNaJnqEn7wCA" %}
[Monitor](https://docs.uptiq.ai/platform/console/agent-builder/monitor.md)
{% endcontent-ref %}

{% content-ref url="/pages/9cd0c4d868b97b43a234c8d0ca5c3690fa58decb" %}
[Evals](https://docs.uptiq.ai/platform/control-center/evals.md)
{% endcontent-ref %}

{% content-ref url="/pages/D6DpqqFZRhDxiw0QpRZM" %}
[Reinforcement Learnings](https://docs.uptiq.ai/platform/console/agent-builder/monitor/reinforcement-learnings.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
