Overview

A dataset is a table of rows: what your agent was asked, what it said, what your evals thought of it, and what it should have said. Fill it from production, label it, export it for a fine-tune or a test set.

A dataset is a table of examples: what your agent was asked, what it said, what your evals said about it and, once someone has decided, what it should have said. It is how production traffic becomes a test set or fine-tuning data.

It sits at the fixing end of the loop. Your evals score every trace and flag what went wrong; a dataset keeps those cases, so you can label the right answer, try a fix against them in the Playground or with a labeling agent, and train on them.

Open Develop → Datasets. New dataset asks for a name and opens the empty table.

Develop → Datasets: one row per dataset with its description, row count and last update, and the New dataset button.

What a row is

ColumnWhat it holds
InputWhat the agent was given. A row from production holds the conversation, every message with its role, plus the prompt variables when the call used a managed prompt. A row you type or import holds your own columns, one per variable.
OutputWhat the agent said, for rows from production: the whole assistant message, tool calls included.
ExpectedWhat it should have said. Empty until someone sets it; see Label.
EvaluationsThe verdicts your evals gave the run, span or conversation the row came from, with any thumbs a person gave them.
MetadataFree-form JSON for slicing, such as {"channel": "email"}.
LinksThe run, span, conversation or verdict the row came from. Click one to open it. When it has aged out of trace retention it shows expired, and the row keeps its own copy.

Columns hides or shows Links, Output, Expected, Evaluations, Metadata, Created and Updated. Filter narrows the rows by a column's value, and the search box looks through every column.

A dataset of runs: each row links its run and conversation, shows the question as Input, the agent's answer as Output and the verdicts of each eval; Add, Columns, Label and the ⋯ menu are marked.

Every row has an id that never changes. Edits keep it, and removing a row archives it rather than deleting it, so a script or agent that read a row can always write back to it.

Expected can be a string, a message or an object, such as a rubric a judge grades against:

{ "sample_reply": "Refunds are accepted within 30 days.", "must_mention": ["30 days"] }

Where rows come from

FromHow
ProductionTick runs, spans, conversations or eval results in a table and choose Add to dataset…, or add a source: a saved filter that copies what matches, once or every 15 minutes. See Fill from production.
You+ Add → Import a CSV, spreadsheet or JSON file, Add row to type one, or append rows from code with the SDK or CLI. See Add your own rows.
LucidAsk it to build a dataset or add a source; it shows an approval card first.

A row from production starts with Input, Output, Evaluations and Links filled, and Expected empty.

Versions

Every change to the rows saves a numbered version on its own: a source run, an import, a save in the table, a labeling agent's run, a script's update. ⋯ → Versions lists them, newest first, with what made each one and how many rows it holds. Restore brings an older version back as a new version, so nothing is lost, and rows keep their ids.

The Versions dialog: v32 is current, each older version shows what made it (a live source run adding rows), its row count and time, with a Restore button.

An export can name a version, so a training set stays reproducible.

What it costs

Adding rows costs one Execution per 1,000 new rows, rounded up, counted for each add on its own: a source run, an import, Add to dataset, a save with new rows, an SDK or CLI append, or an agent's Add rows to a dataset step. So 1 to 1,000 rows is 1 Execution and 2,500 rows is 3. Rows the dataset already holds cost nothing.

Editing, setting Expected, archiving, restoring a version and exporting are free. When an add would go over your organization's allowance, nothing is written: the source shows Out of executions, and an import or Add to dataset says so. See Plans & billing.

On this page