What is fine-tuning for?
A general-purpose language model can do a great deal, but not always exactly the way you need. Fine-tuning means continuing its training on selected examples (requests with expected answers, annotated documents) to teach it a behaviour: an output format, a tone, a classification task.
It is used to change how the model responds rather than to add knowledge. To give access to information that changes, such as your prices or procedures, RAG is generally better suited and easier to maintain.
How fine-tuning works
- 1 Step 1 The objective Define precisely what the model should do better, and how progress will be measured.
- 2 Step 2 The dataset Gather examples of inputs and expected outputs, reviewed and representative of real cases.
- 3 Step 3 Training The base model is retrained on these examples, often with lightweight methods such as LoRA, which train only a few parameters.
- 4 Step 4 Evaluation The tuned model is compared with the original on test cases before anything goes live.
Business use cases
- Classification Sort emails, tickets or documents into your own categories.
- Extraction Produce structured data in a strict format from recurring documents.
- Writing Follow a style or editorial guidelines more consistently than with instructions alone.
- Cost control Enable a smaller, cheaper model to reach the required quality on a targeted task.
Fine-tuning or RAG?
| Fine-tuning | RAG | |
|---|---|---|
| What changes | The model’s behaviour | The information given to the model |
| Updating | New training required | Simply update the documents |
| Data needed | High-quality annotated examples | Your existing documents |
| Ideal for | Format, tone, a very specific repetitive task | Up-to-date knowledge, sourced answers |
The two can be combined: a model tuned for format can answer from documents supplied through RAG.
Frequently asked questions
-
Partly, and unreliably: the model does not learn to cite its sources or to recognise outdated information. To make use of a document base, RAG is the standard method.
-
No. Some vendors offer fine-tuning for certain models via their API, and open-weight models can be tuned and then hosted by you. Others do not allow it.
-
It depends on the task and the model. The quality and representativeness of the examples matter more than their number: a small but carefully built set often gives better results than a large volume of rough examples.
