# Training data

> Training data is the set of examples a machine learning model learns from, such as labelled images, past transactions or question-and-answer pairs, and its quality, coverage and rights largely decide how well the finished model performs.

Also called: training set, training dataset, labelled data, fine-tuning data. Category: Data and retrieval. Source: https://aibuildindex.com/glossary/training-data

## In the index

- LLM fine-tuning: median $3,500, middle half $420 to $13,700, 78 priced briefs (https://aibuildindex.com/cost/llm-fine-tuning)
- Model training: median $4,720, middle half $850 to $14,400, 448 priced briefs (https://aibuildindex.com/skills/model-training)

Training data is what a model learns from. For a fraud model it is past transactions marked as fraud or not; for a defect detector it is photos with defects outlined; for a fine-tuned language model it is examples of the inputs and ideal outputs. For a business buyer this is often the deciding factor in an AI project, because a model can only be as good as the examples it saw, and those examples usually come from the buyer.

## How it works

A dataset is typically split three ways. The **training set** is what the model adjusts itself on. The **validation set** is used during development to compare versions and tune settings. The **test set** is held back until the end to give an honest measure of performance. Mixing these, for example by letting near-duplicate examples appear in both training and test, makes results look better than they will be in real use.

Good training data has a few properties. It **covers** the situations the model will meet, including rare but important ones. Its labels are **consistent**, ideally following a written guide. It is **representative** of current conditions rather than an old process. And the business has the **right to use** it for training, which matters for customer data, scraped content and licensed material.

As an example, a team [fine-tuning](https://aibuildindex.com/glossary/fine-tuning) a language model to draft support replies might export past tickets with the replies agents actually sent, remove personal details, discard poor replies, and keep a held-out set to compare the tuned model against the original.

## What it means for cost

Data work is often the largest line in a model-building quote:

- **Collection and cleaning.** Pulling records from several systems and fixing gaps and duplicates takes time. See [data cleaning](https://aibuildindex.com/glossary/data-cleaning).
- **Labelling.** If examples do not already have answers, someone has to add them. See [data labelling](https://aibuildindex.com/glossary/data-labelling).
- **Privacy.** Personal data must be removed or handled lawfully before training.
- **Refreshing.** Models trained on old data degrade, so new data has to be gathered over time.

Ask a builder how much data they need, in what form, who prepares it, and how they will keep a clean test set apart. Live figures for model adaptation builds are on the [LLM fine-tuning cost page](https://aibuildindex.com/cost/llm-fine-tuning).

## Common questions

### Is training data the same as the data a RAG system searches?

No. Training data changes the model itself. Documents used for retrieval-augmented generation are looked up at question time and leave the model unchanged. Many business assistants need the second, not the first.

### Can I use customer data to train a model?

Sometimes, but it depends on your terms, consent and the law where you operate. Remove what is not needed, check data protection rules, and confirm whether your model provider retains or learns from the data you send.

### What if I do not have enough training data?

Options include starting from a pre-trained model, labelling more examples, generating [synthetic data](https://aibuildindex.com/glossary/synthetic-data) to fill gaps, or choosing an approach such as prompting that needs far fewer examples.

## Related terms

- [Data labelling](https://aibuildindex.com/glossary/data-labelling): Data labelling is the work of adding correct answers to raw examples, such as tagging images, marking entities in text or rating model outputs, so that a machine learning model can be trained or evaluated on them.
- [Synthetic data](https://aibuildindex.com/glossary/synthetic-data): Synthetic data is artificially generated data that mimics the patterns of real data, used to train or test AI systems when real examples are scarce, sensitive or missing rare cases.
- [Fine-tuning](https://aibuildindex.com/glossary/fine-tuning): Fine-tuning is the process of further training an existing AI model on a smaller set of task-specific examples so that it reliably adopts a particular behaviour, format, tone or specialised skill.
- [Golden dataset](https://aibuildindex.com/glossary/golden-dataset): A golden dataset is a carefully checked set of real example inputs paired with their correct outputs, kept fixed and used as the reference for measuring whether an AI system gives the right answers.
- [Data cleaning](https://aibuildindex.com/glossary/data-cleaning): Data cleaning is the work of finding and fixing errors, duplicates, gaps and inconsistencies in a dataset, such as mismatched formats or misspelt names, so that reports, automations and AI models built on it give reliable results.
- [Machine learning](https://aibuildindex.com/glossary/machine-learning): Machine learning is a branch of AI in which software learns patterns from examples rather than following hand-written rules, then uses those patterns to make predictions or decisions about new data.
