Datasets
PlatformCurate test cases for your prompts: CSV, manual rows, production traces, optional JSON Schema, and graded runs from Prompt Playground.
A dataset is a collection of test cases. Each item has an input (the variables you feed a prompt) and an optional expected output (ground truth used by scorers). You reuse the same dataset while prompt wording and models change.
Where To Open It
Create A Dataset
- Click New Dataset and give it a name. A short ID appears under the name in the list so duplicate names stay distinguishable.
- Optionally add a short description.
- Optionally turn on Input Schema or Expected Output Schema (JSON Schema) to lock the shape of new items.
Edit Name And Description
Schema Toggles
Add Items
- Upload CSV with an
inputcolumn (JSON object). Optional columns:expected_output,metadata. - Add Manually for a single row (JSON input and optional expected output).
- Select From Traces — pick a recent production trace, multi-select spans that have prompt or completion content, optionally redact PII, and add them as items.
- From a span in Traces, use Add To Dataset to send that span into an existing dataset (same extraction and optional redact).
- Edit any row from the Items table (pencil) to adjust input or expected output after import.
What Gets Extracted
input field from the last user message when present). If the span has a model completion, that becomes the optional expected output. You can edit items later or leave expected blank and score with LLM-as-judge or custom code.From Traces
Turning real traffic into eval cases closes the loop between Observe and Evaluate. Use Select From Traces on a dataset (empty state or Items toolbar), or Add To Dataset on a span detail panel. Optional Redact PII before save applies best-effort email, phone, and ID patterns before the row is stored. Review the item afterward.
Source Column
On the Items table, Source shows where a row came from:
- Manual / CSV — you typed the row or uploaded a file.
- A span ID — the row was added from a production span (Select From Traces or Add To Dataset).
Expected Output And Scorers
Expected output lives on the dataset item, not in a separate grader object. When you run on a dataset in Prompt Playground you choose scorers:
- Contains Expected Text — pass if the expected string appears in the model reply (best default for chat).
- Exact Match To Expected — pass only if the reply equals the expected output.
- Output Is Valid JSON — pass if the reply is a JSON object or array (does not use expected output).
- LLM As Judge and Custom Code — create these in Scorers, then attach them in Run On A Dataset.
Run Against A Prompt
Open Prompt Playground, expand Run On A Dataset, pick the dataset and scorers, then Run And Save Experiment. Results save as an experiment you can attach when promoting.
Next Steps
© 2026 Traccia.