- 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):content as a list of parts to interleave text and images. Each image must be a base64 data URI (JPEG, PNG, WebP, or GIF, up to 10 MB each). External URLs are not supported.Dataset vs chat image format
Dataset vs chat image format
Datasets and the chat API use different image schemas:
labels or metadata fields to any format for filtering or custom graders.See SDK Reference for all dataset methods.
