LLM training data looks like text files and JSON records, and the shape changes with the training stage. Pretraining data is raw documents, one per record. Fine-tuning data is a list of chat turns with roles. Preference data pairs a chosen and a rejected answer to the same prompt. Agent data records each step, tool call and result, often with a score.
GuidePart of: Datasets
What Does LLM Training Data Look Like? Real Record Examples
Published 5 min read

On this page
This guide shows one short, fictional record for each stage. None of them comes from a real company or person. For the full field lists per data type, see our enterprise dataset catalogue.
What does LLM training data look like at each stage?
Each stage wants a different record. The table sums them up before the examples.
| Stage | One record holds | Key fields | Typical size |
|---|---|---|---|
| Pretraining | A whole document | text |
Trillions of tokens |
| Supervised fine-tuning | A prompt and a good answer | messages or prompt + completion |
Thousands to millions of records |
| Preference tuning | One prompt, two answers, a verdict | prompt, chosen, rejected |
Tens of thousands of pairs |
| Agent and RL training | A task, the steps taken, an outcome | turns, tool calls, reward | Varies by task |
A record is one training example: one line in a JSONL file or one row in a table. A dataset format is how the record is written. A dataset type is the job it does. The Hugging Face TRL guide to dataset formats uses exactly this split, and most open tooling follows it.
What does pretraining data look like?
It looks like plain text. Each record is a web page, a book chapter, a code file or a document, with little structure beyond the text itself.
{"text": "Returns policy\nYou can return any unused item within 30 days. Keep the receipt...", "source": "web", "lang": "en"}
The scale is the hard part, not the shape. Common Crawl, the open web archive behind many corpora, holds over 300 billion pages. Meta says it pretrained Llama 3 on over 15T tokens. A token is the unit a model reads, usually a word or part of one.
Most of the work here is filtering. Teams remove duplicates, spam, boilerplate and pages in the wrong language. What's left is still just text with a few labels.
What does a fine-tuning example look like?
A fine-tuning example is a conversation with roles. Supervised fine-tuning (SFT) trains a model on examples of good answers, so each record shows a prompt and the answer you want.
{"messages": [
{"role": "system", "content": "You are a support agent for a booking app."},
{"role": "user", "content": "I was charged twice for one booking."},
{"role": "assistant", "content": "Sorry about that. I can see two charges. One is a hold that drops off in 3 to 5 days. Want me to confirm by email?"}
]}
Conversation or prompt-completion?
Both work. The conversational format stores a list of messages, each with a role and content. The prompt-completion type splits the record into the input and the answer to learn. Pick the one your training code expects, and keep it the same across the file. Our guide to the SFT dataset format goes deeper into roles, loss masking and pre-training checks.
How many examples is enough?
Fewer than most people expect. In the InstructGPT paper from OpenAI, the supervised set had about 13k training prompts, written partly by labelers. The lesson holds up: a few thousand strong, varied examples beat a pile of weak ones.
Our JSONL schema for conversation and ticket data shows how to wrap these turns with source, language and de-identification fields.
What does preference data look like?
Preference data holds one prompt and two answers, plus which one is better. A model learns to favour the chosen answer over the rejected one.
{"prompt": [{"role": "user", "content": "Can I cancel my plan mid-month?"}],
"chosen": [{"role": "assistant", "content": "Yes. You keep access until the end of the paid month, and you won't be charged again."}],
"rejected": [{"role": "assistant", "content": "Plans can't be changed."}]}
The verdict usually comes from a person. In InstructGPT, labelers ranked model outputs, and the reward model trained on 33k prompts. The ranking is the data. So the reviewers' instructions belong in the documentation too.

One variant drops the pair. An unpaired preference record holds a single answer and a true or false label. It's easier to collect, because a reviewer judges one answer at a time.
What do agent and RL training records look like?
They look like a log. An agent trajectory is the full sequence of steps a model or person takes to finish a task: messages, tool calls, tool results and the final state.
{"task": "Refund the duplicate charge on booking B-1042",
"steps": [
{"role": "assistant", "tool_call": {"name": "find_payments", "arguments": {"booking": "B-1042"}}},
{"role": "tool", "name": "find_payments", "content": "[{\"id\": \"p1\", \"amount\": 89}, {\"id\": \"p2\", \"amount\": 89}]"},
{"role": "assistant", "tool_call": {"name": "refund", "arguments": {"payment": "p2"}}},
{"role": "tool", "name": "refund", "content": "ok"}
],
"outcome": {"resolved": true, "reward": 1.0}}
For reinforcement learning, the record often holds only the task and a way to score the result. The model generates its own steps during training. So the hard part is the environment and the grader, not the text. Our guide to RL environments from enterprise workflows covers which records make a good task, and how to build RL environments walks through the build order.
What does enterprise data look like as training data?
It starts messy and ends as one of the shapes above. A support ticket, an email thread or a Slack thread becomes a conversation record. People become tokens, and context fields are added.
What gets added
A raw export is not a training record yet. These fields turn it into one:
- Source and kind. Which system it came from and what the record is, such as a ticket or a chat thread.
- Language. One code per record, so mixed-language sets can be filtered.
- Outcome. For tickets, whether the issue was solved and how.
- De-identification. Which method replaced names, emails and ids, and which version ran.
- Provenance. Where the record came from and under which licence.
What gets removed
Signatures, quoted email history, bot posts, attachments and anything that names a real person. Our de-identification checklist lists what to ask a supplier to prove. The Slack thread dataset schema guide walks through one source field by field, and the support ticket dataset spec does the same for helpdesk data.
How do you check a training data sample?
Ask for 50 to 100 records before anything else. Then run five checks:
- Parse it. Every line should load as valid JSON with the same fields.
- Read 20 records in full. You'll spot broken threads, cut-off answers and leftover names fast.
- Count the shape. Turns per record, characters per turn, language mix. Outliers often mean a grouping bug.
- Search for identifiers. Emails, phone numbers, IBANs and URLs that should be gone.
- Match the paperwork. The datasheet for the dataset should describe what you see in the sample.
Disclosure rules make the paperwork matter more each year. Our guide to the California AB 2013 disclosure law explains what developers must publish about their training data.