> 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/eval-datasets.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Regression Evals datasets

Create, import and manage the datasets and test cases that Regression Evals runs against an agent.

A dataset is a collection of test cases for evaluating an agent. Each agent can have up to **100 datasets**.

![](https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-f9a93d4db65ffbdbf83e58481827d3f40af26ea1%2Fregression-datasets.png?alt=media)

## New dataset

Select **New dataset**, the green button at the top right of the **Datasets** tab. The **New dataset** window opens under the breadcrumb **Regression Evals › New dataset**. It shows `A dataset is a set of test cases your agent is evaluated against. Start empty, or fill it from AI or a document — you can add more test cases any way later.`

1. Enter a **Name** (required). The field suggests an example, such as `Refund policy questions`.
2. Under **How will you add test cases?**, choose one of three cards. **Write them yourself** is selected when the window opens, and carries a **New** label.
3. Fill in the fields the chosen card adds, if any.
4. Select the button at the foot of the window. **Cancel** closes the window without creating anything.

| Option                     | What it does                                                                       | Extra fields                                             | Button                  |
| -------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------- | ----------------------- |
| **Write them yourself**    | Start with an empty dataset and add each question and expected answer by hand.     | None                                                     | **Create dataset**      |
| **Generate with AI**       | Have test cases written for you from the agent's instructions.                     | **Number of test cases**, **What should they focus on?** | **Create and generate** |
| **Import from a document** | Upload a file that lists test cases, or one that describes the scenarios to cover. | **Document**                                             | **Create and import**   |

The window changes when you pick a card: the fields for that option appear below the cards, and the button at the foot takes the option's name.

## Create a dataset with AI or from a document

Both start in the **New dataset** window. The **Name** is required, up to 120 characters. Select **Create and generate** or **Create and import**, and the dataset opens at once with **Status** reading **Adding test cases**. A banner shows `New test cases are being written or read from your file. They appear here when ready — this can take a few minutes.` The test cases appear in the table when they are ready.

### Generate with AI

Test cases are written from the agent's instructions.

| Field                          | Required | Description                                                                                                                                |
| ------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Number of test cases**       | Yes      | Up to 50 at a time. It starts at `10`. The hint under the field shows `Up to 50 at a time. They're written from the agent's instructions.` |
| **What should they focus on?** | No       | A free-text box that steers the test cases toward a theme. For example, `Edge cases around refunds and partial payments`.                  |

**Generation steps:**

1. The system reads the agent's system prompt (instructions)
2. Sends it to an LLM (Gemini 3 Flash) to generate test cases
3. For each test case, the LLM creates: question, expected answer, and optional document content
4. Document content is converted to actual files (DOCX, XLSX, or PDF) and uploaded to storage
5. Test case records are created with document references

### Import from a document

Upload a document, and the test cases are read out of it for you. The document can list the test cases, or describe the scenarios to cover; from a description, the cases are derived from the rules and constraints it states.

The **Document** field is required. Drag a file onto the dashed area, or select the area to choose one. A hint beneath it shows `A list of test cases, or a document describing the scenarios to cover · .pdf, .xlsx, .xls, .md · up to 10MB`. Select **Create and import** to create the dataset and start reading the file.

* **File types:** `.pdf`, `.xlsx`, `.xls`, `.md`
* **Size:** up to 10 MB
* **Test cases:** decided by the document, up to 500

### Manage datasets from the builder chat

You can also ask the builder assistant to create a dataset, add, change or delete test cases, attach uploaded files to a test case, list runs and stop a run. On Agent Executor 1.5, after you approve the plan for a new agent, it offers to set up a dataset before it builds the agent. Datasets, test cases and runs you create yourself work on every executor version. See [Manage tests from the builder chat](https://docs.uptiq.ai/platform/task-guides/create-an-agent.md#manage-tests-from-the-builder-chat) and [Set up tests before the build](https://docs.uptiq.ai/platform/task-guides/create-an-agent.md#set-up-tests-before-the-build).

### Add test cases manually

Create manual test cases one at a time in an existing dataset.

On a dataset's page, select **Add test case**. The window shows `Write a question your agent should handle and the answer you expect back.` Its fields are **Question**, **Expected answer**, **Context (optional)** and **Attach documents (optional)**. Attached documents are the context the answer is checked against. They can be `.xlsx`, `.csv`, `.pdf`, `.jpg`, `.png`, `.docx`, `.doc`, `.webp`, `.heic`, `.heif`, `.txt` or `.md`, up to 10 more documents, and up to 50 MB per file. **Save and add another** keeps the window open for the next test case, and **Add test case** saves and closes it. The dataset's table then lists **Question**, **Expected answer** and **Documents**.

A test case's row menu has **Edit** and **Delete**. **Edit** opens **Edit test case**, which shows `Change the question or what a correct answer looks like.` It has the same fields as **Add test case**, with **Cancel** and **Save**.

Each manual test case can include:

* `question`
* `expected answer`
* optional documents

Use `POST /:agentId/eval/datasets/:datasetId/items` to create the test case.

Use **Test Case Search** to filter by question, expected answer, or document context.

<details>

<summary>How document format selection works</summary>

Document format selection is automatic.

| Format | Content Type             | Examples                      |
| ------ | ------------------------ | ----------------------------- |
| XLSX   | Tabular/spreadsheet data | Budgets, financial tables     |
| DOCX   | Narrative prose          | Memos, policies, contracts    |
| PDF    | Professional documents   | Invoices, resumes, statements |

</details>

## Dataset Views

The **Datasets** tab opens with four figures: **Datasets**, **Test cases**, **Eval runs**, and **Latest pass rate**. **Latest pass rate** is the share of test cases that passed in the most recent run.

**List view** has a filter button (the funnel icon) and a **Search** box above a table of the agent's datasets:

* **Name** — Dataset name
* **Status** — See the table below
* **Test cases** — How many test cases the dataset holds
* **Last run** — The pass rate of the dataset's last run, as a badge such as `33% passed`, or **Never run**
* **Created** — Creation timestamp, such as `Oct 26, 2026, 1:48 PM`
* **Actions** — The `⋮` menu at the end of the row has **View**, **Edit details** and **Delete**. **Edit details** opens **Edit dataset details**, where you change the **Name** and select **Save**. **Delete** asks `Delete dataset?` and says the dataset and its test cases will be removed and that this cannot be undone.

| Status                | Meaning                                                                                                                              |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **Adding test cases** | The test cases are still being written or read from your file. They appear when ready.                                               |
| **Ready**             | The test cases are in place and the dataset can be run.                                                                              |
| **Failed**            | No test cases could be read from the document. Hover over the badge for the reason, then upload a revised document as a new dataset. |

When the list is empty, it shows **No results.**

**Details view** opens when you select **View**. The header is the dataset name, with **Add test case** and **Run evaluation**. Below it are **Status**, **Test cases**, **Last run** and **Created**, a **Search** box, and the table of [test cases](#test-cases).

***

## Test Cases

Each test case contains:

* **Question** — The input prompt sent to the agent
* **Expected answer** — The ground truth / ideal response
* **Context** (optional) — Context the answer is checked against, such as a description of an attached document (e.g., "Excel budget sheet")
* **Documents** (optional) — Files attached with **Attach documents**, shown as clickable chips

### Document Preview

Clicking a document chip opens a preview modal:

| File Type                  | Viewer                                  |
| -------------------------- | --------------------------------------- |
| PDF                        | Native document viewer                  |
| Google Docs / Office files | Embedded Google or Office Online viewer |
| Excel                      | Office Online viewer                    |

{% hint style="info" %}
Toggle between "Show preview" and "Show context" if document context is available. Use the "Open file" button for external download.
{% endhint %}

***

## Related

* [Regression Evals](https://docs.uptiq.ai/platform/console/agent-builder/test/regression-evals.md)

***

{% 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/eval-datasets.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.
