Skip to content

AI basics

What is fine-tuning?

Fine-tuning is the targeted further training of a pre-trained language model on your own example data so that it handles a specific task, style or format more reliably.

Also: Model fine-tuning · Retraining

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.

Glossary

Related terms

Terms that often come up together.

Related pages

Next step

From definition to practice.

Search, chat, agents and tasks in one platform. Hosted in Frankfurt, every model processed in the EU.

No per-seat fee · From €399 a month · Cancel monthly