Skip to main content
Datasets contain examples for training and evaluating models. Upload them as JSONL files.

Upload a dataset

Dataset formats

Each line in your JSONL file must follow one of these schemas:Prompts and completions (most common):
Prompts only (for evaluation with generated completions):
With feedback metrics (for training on ratings):
With preferences (for RLHF/DPO training):
With images (multimodal):
Use 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.
Datasets and the chat API use different image schemas:
Add optional labels or metadata fields to any format for filtering or custom graders.See SDK Reference for all dataset methods.