Fill from production

Turn real traffic into dataset rows: tick runs, spans, conversations or verdicts and add them, or add a source, a saved filter on eval results that copies what matches once or keeps adding new matches every 15 minutes.

The rows worth keeping are already in your traces, and your evals have already said which ones went wrong. Add them by hand from any table, or save a filter as a source and let it fill the dataset.

Either way, each span, run or conversation becomes one row with its Input, Output, Evaluations and Links filled. Expected stays empty for you to label. A unit already in the dataset is skipped, so adding the same thing twice is safe.

Pick rows in a table

  1. Open Traces (its Conversations, Runs or Spans view), or an eval's Verdicts tab.
  2. Tick the rows you want. The bar at the bottom offers Add to dataset….
  3. Pick a dataset, or type a name and click New to make one.

On an eval's Verdicts, choose what the rows are: What it scored (the span, run or conversation each verdict graded) or The verdicts themselves (see Verdict rows).

For a single span, the Evaluate menu in its header has Add to dataset too.

A source

A source is a saved filter on a dataset. Open the dataset and choose + Add → Add source.

Add source on Runs: a filter chip for runs the Answers what was asked eval failed, the Keep adding new matches and Keep every span of each run boxes, and 269 runs match.
Rows fromFilterOne row is
SpansTraces and filters, eval conditions, a time window. LLM spans by default; tick Include non-LLM spans (or filter on the span kind) to add tool, retrieval and agent spans.One span: its messages or arguments, what it returned, its verdicts.
RunsAgents and filters, eval conditions, a time window. Tick Keep every span of each run to store the run's whole span tree on the row, so it survives trace retention and goes out with an export.One run: its input, its final output, its verdicts.
ConversationsAgents, eval conditions, a time window.One conversation: every turn as the Input, every reply as the Output. When the conversation grows, a live source brings the row up to date and leaves Expected alone.
VerdictsWhich evals, and verdicts that Failed, Passed, were Marked wrong or Marked right.One verdict: see Verdict rows.

The dialog counts the matches as you change the filter. The time window starts at the last 30 days; a relative window (last 7 days, last 30 days) is measured again at every run.

Then choose how it fills:

  • Keep adding new matches off: the source copies what matches now, once.
  • Keep adding new matches on: it also checks every 15 minutes and adds what has arrived since its last run.

Add source saves it and runs it right away.

By eval results

Eval conditions are what make a source useful: "runs where Answers what was asked failed", "spans where the judge scored under 0.4". In the filter, click + Add, open the Evals tab, pick an eval (or Any eval), then a condition.

The filter picker's Evals tab inside one eval: Failed, Passed, Did not fail, Marked wrong, Not marked wrong, Marked right, Score and Reason code.
ConditionMatches when
Failed / Passedthe eval's newest verdict on the unit has that outcome
Did not failthe newest verdict did not fail. With Any eval: no eval failed it
Marked wrong / Not marked wrong / Marked righta person gave that verdict a thumbs-down / did not / gave it a thumbs-up
Scorethe verdict's score compares to a number (<, ≤, ≥, >, =)
Reason codethe verdict ended with one of these reason codes
a stepwhat one step of the eval answered: yes or no, one of its options, or a number

Only each eval's newest verdict on a unit counts: a new eval version or a longer conversation scores it again, and the newest one replaces the old. Conditions combine with AND. Failed together with Marked wrong finds the eval's own mistakes. Traces, the CLI and Lucid take the same conditions.

Manage sources

The ⋯ menu in the dataset's header holds Sync, Sources, Versions, Export and Download.

A dataset's ⋯ menu: Sync, Sources, Open in Playground, Versions, Export, Download and Delete dataset.

Sources lists the dataset's sources: what each reads, its filter in words, its status and how many rows it has added.

The Sources dialog: two Verdicts sources, one Once and one Live, each with its filter, row count, and Edit, Run now and Remove.
StatusMeans
OnceIt ran and does not run again unless you run it.
LiveIt adds new matches every 15 minutes.
Queued / Running…A run is waiting or in progress; the table reloads when it ends.
Out of executionsThe run would have gone over your allowance and wrote nothing.
FailedThe run stopped with an error.
  • Edit changes the filter or turns Keep adding new matches on or off. A changed filter runs again.
  • Run now runs it again over its window.
  • Remove deletes the source. The rows it added stay.

⋯ → Sync runs every source at once. Sync and Run now add only what the dataset does not already hold; save any unsaved edits in the table first.

An agent with an Add rows to a dataset step shows up here as Agent · its name. It adds rows when the agent runs; its Edit opens the agent.

Verdict rows

A verdict row is one eval result as a dataset row. Input is what the eval saw, Output is what the eval said (passed or failed, the reason code, each step's answer), and Expected is the correction a person gave it with a thumbs-down, when there is one. When someone marks the verdict later, the row follows.

A dataset of verdict rows is the eval's own test set: the cases where it was wrong, and what it should have said. With a single eval picked, Each row is can be The whole verdict or one step of it, and Step corrected finds the verdicts where a person corrected that step.

On this page