- SDK
- UI
Upload a dataset
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path | str | Yes | Path to JSONL file |
dataset_key | str | Yes | Unique identifier |
name | str | No | Display name (defaults to dataset_key) |
Dataset formats
Each line in your JSONL file must follow one of these schemas:Prompts and completions (most common):labels or metadata fields to any format for filtering or custom graders.Multimodal content
In any of the formats above,content can be either a plain string or a list of content fragments to interleave text and images:Dataset vs chat API image format
Dataset vs chat API image format
Datasets and the chat completions API use different image fragment schemas:

