Build a dataset

Save real runs, single steps, or whole conversations as versioned test cases for Evals and Experiments.

A dataset is a frozen collection of test cases copied from your production traces or imported from existing fixtures. Each case keeps the recorded input, output, and surrounding context so you can re-grade the exact same examples after changing your prompts, models, or code.

Build datasets under improve → datasets, directly from any trace with Add to dataset, or programmatically with the CLI (neatlogs datasets). Experiments can also capture and link cases automatically.

Creating and inspecting a dataset in neatlogs

Case sourceWhat one case storesWhen to use it
TraceOne complete end-to-end runVerifying full agent behavior from request to final answer
SpanOne individual model, tool, or retrieval stepTesting a single prompt, tool call, or extractor on its own
SessionOne multi-turn conversation in turn orderMulti-turn support or task agents
ImportCases uploaded from JSON/CSV or pasted JSONMigrating suites or adding synthetic fixtures

Each case can optionally include an expected Outcome describing what a passing answer looks like.

Create a dataset in the dashboard

  1. Open the capture wizard. Go to improve → datasets and select Create dataset, or select Add to dataset at the top of any trace.
  2. Choose a source. Select Trace, Span, Session, or Import, then click Continue. Capturing copies recorded telemetry into cases without re-running your agent.
  3. Choose the destination. Select New dataset to start a fresh collection, or Existing dataset to append cases into a new immutable version while leaving prior versions unchanged.
  4. Select the records. Filter by date range, span type, workflow, detections, or span name (up to 2,000 cases per capture). Widen the date window if no matching records appear.
  5. Name and start capture. Enter a Dataset name (and optional description) and select Start capture. The capture job continues running in the background if you leave the page.

Cases, outcomes, and versions

Open any dataset to inspect captured cases, filter by source, search inputs, or switch versions (v1, latest).

  • Selecting a case opens its input, steps, recorded output, and source metadata beside an editable Outcome panel.
  • Select Draft with AI to generate a candidate expected outcome from the recorded trace, refine it if needed, and click Save case.
  • Editing or removing cases publishes a new immutable version. Any Eval or Experiment pinned to an earlier version keeps running against that exact snapshot.

Use datasets with humans and coding agents

  • Evaluate in UI: Select Use in eval from a dataset to pre-fill a new evaluation in Create an Eval.
  • Capture via CLI: Agents and CI pipelines can list datasets (neatlogs datasets list), create datasets (neatlogs datasets create), build from traces (neatlogs datasets from-traces), or wrap live test suites using neatlogs datasets captures start, captures complete, and captures abort. See the neatlogs datasets CLI reference.
  • Ownership boundary: Project Members and Admins create and edit datasets; Project Viewers have read-only access.

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.