A large language model is first pre-trained on huge amounts of text. Fine-tuning then trains it further on a much smaller, curated set of examples. This changes the model’s weights, or with methods such as LoRA a small set of additional weights. The model learns to respond in a particular pattern.
Fine-tuning or RAG?
The two are often confused, but they solve different problems:
- Fine-tuning changes behaviour: tone, format, domain language, classification.
- RAG supplies knowledge: the model stays unchanged and receives the relevant passages from your documents with every question.
For company knowledge that changes constantly, RAG is usually the better choice. New documents are usable right away, answers can cite sources and visibility stays under control. Fine-tuning pays off for very uniform tasks with thousands of good examples.
Effort and data protection
Fine-tuning needs carefully prepared training data, compute time and a repeat whenever you switch models. If the training data contains personal data, you need a legal basis and a plan for deletion requests, because a single record is hard to remove from a trained model. Clear prompts with a few examples in the context often achieve a similar result.
Example
A heating equipment manufacturer wants to sort incoming service requests into twelve fixed categories, from “burner fault” to “spare parts order”. It fine-tunes a model on 8,000 requests that are already categorised. Questions about error codes, on the other hand, are answered via RAG from the current service manuals, because those change with every product generation.