AI & LLM
Fine-Tuning Dataset Example (JSONL) JSON Example
A JSON / JSONL example of an LLM fine-tuning training record — the chat messages format with system, user, and assistant turns. Copy-ready for OpenAI and open-model fine-tuning.
Field Reference
messagesrequiredarray<object>One full conversation per training line; the model learns to produce the assistant turn(s)messages[].rolerequiredstringsystem, user, or assistant — assistant turns are the learning targetmessages[].contentrequiredstringTurn text; keep it representative of real production promptsVariants
JSONL file (multiple examples)A fine-tuning file is JSON Lines — one independent JSON object per line, not a JSON array.
With tool callsFine-tuning the model to call a tool by including the tool call in the assistant turn.
Common Use Cases
- →Preparing a training set to fine-tune a chat model on your domain
- →Teaching a model a consistent tone, format, or policy
- →Distilling a large model's behaviour into a smaller, cheaper one
fine-tuningjsonltraining dataopenaidatasetllm
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
AI & LLMChat Conversation HistoryOrdered messages array with system, user, and assistant roles for LLM chats.AI & LLMOpenAI Chat Completion ResponseOpenAI Chat Completions API response with choices, message, finish_reason, and usage.AI & LLMLLM Tool / Function CallFunction-calling JSON: a tool definition plus the model's tool_call with arguments.