> ## Documentation Index
> Fetch the complete documentation index at: https://docs.latitude.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Datasets

> Curate collections of inputs, outputs, and expected outputs from real traces to test and improve your agent.

> [!NOTE]
>
> **Where this fits:** Datasets are part of **Refine**, after [Signals](https://docs.latitude.so/signals/overview.md). They turn real traces into reusable test cases for [local simulations](https://docs.latitude.so/test-and-fix/simulations.md) and [regression testing](https://docs.latitude.so/test-and-fix/regression-testing.md).

A **dataset** is a collection of rows you curate for testing and improving your agent. Each row holds an **input**, the agent's **output**, an optional **expected output**, and arbitrary **metadata**. Teams use them as golden datasets: stable, known-good test sets that a fix has to keep passing.

![The Datasets page listing golden datasets with name, description, and last updated](https://mintcdn.com/latitude-monitoring/9O40jWPK25W0XUhc/images/datasets/datasets-list.png?fit=max\&auto=format\&n=9O40jWPK25W0XUhc\&q=85\&s=c2ab3e71b728d3a608afce7ca3f0826e)

The Datasets page lists each dataset with its description and when it was last updated.

## What a dataset row contains

| Column | Description |
| - | - |
| **Input** | The input your agent received, for example the user message. |
| **Output** | What your agent actually returned. |
| **Expected output** | The correct or desired answer, used to check the agent. Optional, see [Add expected output](https://docs.latitude.so/datasets/expected-output.md). |
| **Metadata** | Arbitrary fields carried alongside the row. |

Beyond these built-ins you can add your own [custom columns](https://docs.latitude.so/datasets/custom-columns.md), and rename, reorder, or remove any column.

![A dataset detail view showing rows with input, output, and expected output columns](https://mintcdn.com/latitude-monitoring/9O40jWPK25W0XUhc/images/datasets/dataset-detail.png?fit=max\&auto=format\&n=9O40jWPK25W0XUhc\&q=85\&s=2c9cc54603fd139fb718bf5ca04e3a34)

A dataset's rows, each with an input, the agent's output, and an optional expected output. Import, export, or add rows from the top bar.

## Create a dataset

You can build a dataset three ways:

> [card] [From real traces](https://docs.latitude.so/datasets/add-traces.md)
>
> Select traces from the trace list, search results, or a signal, and add them to a dataset. The most realistic test cases come straight from production.

> [card] Manually
>
> Open **Datasets** in your project, create a new dataset, then **Import** a CSV or **Add row** to enter cases by hand.

> [card] [From your coding agent](https://docs.latitude.so/getting-started/mcp.md)
>
> Through the [MCP server](https://docs.latitude.so/getting-started/mcp.md), an agent like Claude or Cursor can create datasets and pull in the traces behind a signal for you.

## How datasets are used

* **Local simulations**: pull the rows with the SDK and run your agent against them in TypeScript or Python, including multi-turn conversations. See [Simulate agents locally](https://docs.latitude.so/test-and-fix/simulations.md).
* **Regression testing**: replay a dataset's inputs against your agent and compare results to the expected outputs and your evaluations. See [Regression testing](https://docs.latitude.so/test-and-fix/regression-testing.md).
* **Curating test sets**: collect representative traces from [Search](https://docs.latitude.so/search/overview.md) and [Signals](https://docs.latitude.so/signals/overview.md) into a stable, reusable set.
* **Sharing with your harness**: export a dataset as CSV to drive tests in your own pipeline.

## Next step

* [Add traces to a dataset](https://docs.latitude.so/datasets/add-traces.md): build a test set from real production traces.
* [Custom columns](https://docs.latitude.so/datasets/custom-columns.md): add, rename, reorder, or remove columns.
* [Simulate agents locally](https://docs.latitude.so/test-and-fix/simulations.md): run the dataset against your agent in TypeScript or Python.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.