A dataset is a JSON Lines file: one JSON object per line. Upload it as .jsonl or gzipped as .jsonl.gz. The platform detects the format from the keys in each row.
| Format | Keys | Used for |
|---|---|---|
| Chat | messages |
Supervised fine-tuning (currently required for training) |
| Prompt and completion | prompt, completion |
Stored and validated |
| Text | text |
Stored and validated |
| Preference | prompt, chosen, rejected |
Stored and validated |
| RL prompt | prompt, optional answer, optional metadata |
Stored and validated |
Training jobs currently accept chat-format datasets only. The other formats can be uploaded and validated now, ready for training methods that are coming soon.
Chat format
Each row has a messages array, in the same shape as the OpenAI Chat Completions API:
{"messages": [{"role": "system", "content": "You are a concise assistant."}, {"role": "user", "content": "What is 2 + 2?"}, {"role": "assistant", "content": "4"}]}
Rules for each row:
roleis one ofsystem,user,assistantortool.- A
systemmessage is allowed only as the first message. - There must be at least one non-empty
assistantmessage. By default the model learns from assistant turns only. - A row has between 1 and 1,024 messages.
contentis a string, or an array of text parts.
Prompt and completion
{"prompt": "Translate to French: Good morning", "completion": "Bonjour"}
Text
{"text": "A plain passage of text."}
Preference pairs
{"prompt": "Summarise this ticket.", "chosen": "Customer reports a damaged item and wants a replacement.", "rejected": "The customer is unhappy."}
RL prompts
{"prompt": "What is 17 × 23?", "answer": "391", "metadata": {"topic": "arithmetic"}}
metadata is optional and can be up to 16 KiB.
Limits
| Limit | Default |
|---|---|
| Dataset size | 2 GiB |
| Rows per dataset | 1,000,000 |
| Storage per organisation | 50 GiB |
| Size of one line | 4 MiB |
| JSON nesting depth | 32 levels |
| Rows used by one training job | 100,000 |
If you need higher limits, contact us.
