Dataset files
A dataset file imports a dataset’s tasks, expected answers and criteria in one step. Import one from a dataset with Add tasks > Import from a file.
Import a dataset file
- On a dataset, click Add tasks > Import from a file and choose the file. To import while you create a dataset, add the file on New dataset instead.
- Pick what the file does to the dataset:
- Add to its tasks: the file’s tasks go after the dataset’s own, and its criteria for every task join the dataset’s.
- Replace its tasks: the current tasks are archived, so runs that graded them keep their results, and the file’s tasks and criteria for every task take their place.
- Click Import tasks. Once the file is checked, the button counts its tasks, for example Import 12 tasks. Imported tasks arrive as drafts.
- After an import into an existing dataset, check the tasks and save the dataset with Save as v2 (or whichever version is next). A run grades the dataset’s latest saved version.
The import dialog also offers four templates to start from: Rubric criteria, Expected answers, Files in and out and Blank.
File types
| File | What it holds |
|---|---|
.csv | One row per criterion, or one row per task when each task has one expected answer. Older prompt,name,goldenOutput files still import |
.json | The whole dataset: settings, criteria and tasks |
.jsonl | One task per line, with no settings and no criteria for every task. If any line is wrong, the whole file is refused and every bad line is named |
.zip | A .csv or .json plus the files its tasks attach |
A dataset task’s input files and expected files are paths inside the zip or https:// links. A .csv, .json or .jsonl on its own can only link files. A task can have up to 10 input files and 10 expected files, each up to 10 MiB, and one file can hold up to 1,000 tasks.
A file can give a task an expected answer, criteria or both. A task given both lands as a rubric, with “Matches the expected answer” as one of its criteria. How a task is graded covers both ways of grading.
Validation
The import dialog checks the file as soon as you choose it, before anything is written. A file that passes shows a preview: each task, whether it’s scored by an expected answer or criteria, how many criteria it has and their total weight. A file with problems lists every one, with the row or line it’s on. Fix them and choose the file again.
Expected answers template
Use this when each task has a right answer. When a task doesn’t say how to check it (no verifier), an agent judge compares the answer with the expected one and scores it from 0 to 1. The second task uses an exact match instead: the answer must equal the expected text, character for character.
Code
Rubric template
Use this when there’s no single right answer, only things a good answer must do. Each criterion has a weight; a blank weight counts as 1. Criteria in criteria at the top grade every task; criteria inside a task grade only that task. A criterion with no verifier of its own is checked the way defaultVerifier in settings says.
Code
The length criterion is a Python check: it counts words instead of asking a model. Python checks need your administrator to turn them on.
Next steps
- Criteria: write criteria that grade the same way every time.
- Benchmarks and monitors: create a benchmark that runs the dataset.
- Read results: find out what a finished run’s score means.