Most companies that ask us to “train an AI on our data” need retrieval-augmented generation (RAG), not fine-tuning. RAG looks up the relevant passages in your documents or systems when a question is asked and hands them to the model, so answers stay current and can cite a source. Fine-tuning changes the model itself with examples. That is useful for a consistent format, tone or classification, and a poor way to teach facts. If you want an assistant or a workflow that works on your own documents, ERP or CRM data, start with RAG. Putting one such workflow into production is what our AI Production Launch does in up to six weeks, at a fixed price of €20,000 to €35,000 set after the audit.
What is RAG?
Retrieval-augmented generation (RAG) is a pattern where a search step finds relevant content in your own data and passes it to a language model as context, so the model answers from that content instead of from memory. The term comes from a 2020 paper by Lewis et al. (arXiv 2005.11401). In a business system it usually works like this:
- Your documents and records are split into passages and indexed, typically with embeddings (numeric representations of meaning) alongside ordinary keyword search.
- When someone asks a question, the system retrieves the best passages, filtered by what that person is allowed to see.
- The model writes an answer from those passages and links to them.
The model never changes. Edit a document, re-index it, and the next answer uses the new version.
What is fine-tuning?
Fine-tuning is further training of an existing model on your own input and output examples, so that it reliably behaves the way the examples show. You are changing the model’s weights, not giving it a library. The variants you will meet:
- Supervised fine-tuning (SFT): the model learns to imitate curated example answers. Good for format and style.
- Preference tuning (for example DPO): the model learns which of two answers people prefer. Used for tone and safety trade-offs.
- LoRA and QLoRA: parameter-efficient methods that train a small adapter instead of the whole model. Runs are cheaper, and you can keep several adapters for one base model.
- Distillation: training a small model to copy a large one on a narrow task, to cut latency and cost per call.
What fine-tuning does badly is store facts. Ovadia et al. compared the two approaches on knowledge-heavy questions and found that RAG consistently outperformed unsupervised fine-tuning, both for knowledge the model had seen before and for entirely new knowledge (arXiv 2312.05934). A fine-tuned model can still state a “learned” fact wrongly and with confidence, and it cannot show where the fact came from.
RAG vs fine-tuning: side-by-side
| RAG | Fine-tuning | |
|---|---|---|
| What it changes | What the model can see when it answers | How the model behaves |
| Data you need | Your documents and records as they are, plus access rights | Curated input → ideal output examples, each checked by a domain expert |
| When your data changes | Re-index the changed document, usually in minutes | Update the dataset and retrain |
| Can it cite sources? | Yes, every answer can link to the passages it used | No |
| Removing one person’s data (GDPR) | Delete it in the source system and the index | Not possible without retraining |
| Time to a first working version | Days to a couple of weeks | Weeks, mostly spent producing examples |
| Main ongoing cost | Model calls and retrieval per question, index hosting | Dataset upkeep, retraining and evaluating each new version |
| Changing model provider | Swap the model, keep the index | Rebuild the fine-tune on the new base model |
| Best for | Q&A over policies, contracts, product data and tickets; anything that changes | Strict output formats, house style, high-volume classification or extraction, smaller and cheaper models |
When should you choose RAG?
Choose RAG when at least one of these is true:
- The answer depends on facts that change: prices, stock, policies, contract terms, ticket history.
- People need to check the answer against a source before they act on it.
- Different users may see different data, so retrieval has to respect permissions from SharePoint, the ERP or the CRM.
- The data contains personal data that you must be able to correct or delete.
- You want to be able to change model provider without redoing the work.
That covers most of what Nordic companies ask us for: an assistant over policies and project documents, answers to customer and supplier questions from product data, search across contracts. It is also the pattern behind UpliftIQ, where role-adapted agents answer from the customer’s own data through RAG-grounded search rather than from what the model happens to remember.
When should you choose fine-tuning?
Fine-tuning earns its cost in narrower cases:
- A strict output format at volume. The model has to produce the same JSON structure thousands of times a day, and prompting with examples still fails often enough to matter.
- Classification or extraction at high volume. Routing tickets into dozens of categories or pulling fields from invoices, where a small tuned model can be faster and cheaper per call than a large general one.
- A house style that prompting can’t hold. Legal phrasing or brand voice across long outputs.
- Latency or cost limits. Distilling a large model’s behavior into a small one you can host yourself, for example in your own EU environment.
Notice what is missing from that list: “so it knows our products” or “so it knows our policies”. Those are retrieval problems.
Before either, try the cheapest option. Current models follow instructions and in-prompt examples well, support structured output that matches a JSON schema, and accept long context, so a small and stable document set can sometimes go straight into the prompt. Many “we need fine-tuning” problems go away with a clear prompt, five good examples and a schema.
How do you decide? A seven-step checklist
- Build an evaluation set first. Collect at least 50, ideally a few hundred, real questions or inputs with the answer you expect. Every later decision is measured against this set.
- Baseline with a good prompt. A strong model, clear instructions, a few examples, structured output. Measure accuracy, cost and latency.
- Add retrieval if answers lack facts. If the model is wrong because it doesn’t know your data, build RAG and measure again. Most projects stop here.
- Sort what still fails. Wrong or missing facts: improve retrieval (chunking, hybrid search, reranking, permissions). Consistently wrong format, tone or labels: a candidate for fine-tuning.
- Check that you can produce training data. You need examples a domain expert has checked, legal approval to use that data for training, and an owner who will retrain when things change. If any of the three is missing, stop.
- Pilot one LoRA adapter on one narrow task. Compare it with the baseline on the same evaluation set, on cost and latency as well as quality.
- Release to a small share of traffic first, such as 5–10%, compare with the baseline, and keep a switch to roll back within minutes.
Can you combine RAG and fine-tuning?
Yes, and in high-volume products it is a common end state: RAG supplies the facts, a fine-tuned model handles one narrow formatting or classification step. Take an invoice workflow as an example. RAG retrieves the supplier’s earlier invoices and your coding rules, and a small tuned model outputs the account code in exactly the format the ERP expects.
Build the RAG part first. It is useful on its own, and running it in production gives you the logs and human-corrected outputs that you would need as training data anyway.
What do RAG and fine-tuning cost?
The two differ less in the first build than in what happens afterward.
For RAG, a simple assistant over a document set typically costs €20,000–30,000 as a project (see our AI development page). Taking one workflow into production, connected to your systems and with evaluation, monitoring and access control, is our AI Production Launch, fixed at €20,000–35,000 after the audit. Running costs are model calls and retrieval per question, hosting the index, and re-indexing when documents change, which can be automated. For a full breakdown, read what AI integration really costs.
For fine-tuning, compute for a LoRA run on a small model is usually the smallest line. The real cost is people: domain experts who write and check examples, an engineer who builds the training and evaluation pipeline, and a repeat of both every time the data, the task or the base model changes.
There is also a lifecycle cost that is easy to miss. A fine-tuned model is tied to one base model version. OpenAI’s fine-tuning guide, for example, says the company is winding down its fine-tuning platform: it is closed to new users, existing customers can start training jobs until 6 January 2027, and fine-tuned models stop working when their base model is retired (OpenAI, checked November 2026). An index of your documents survives a change of model; a fine-tune has to be rebuilt, possibly with another provider. If you do fine-tune, open-weight models with LoRA adapters hosted in your own EU environment give you the most control over that lifecycle.
What about GDPR and the EU?
- RAG keeps personal data where you can manage it. It stays in your systems and in the index, where access rules, retention and deletion apply.
- Fine-tuning puts it inside the model. The European Data Protection Board’s Opinion 28/2024 says a model trained on personal data cannot automatically be treated as anonymous. You need a legal basis for the training itself, and you cannot erase one person’s data without retraining. Remove or anonymize personal data in training sets.
- Check your contracts. Customer agreements may forbid training on their data, which rules out building a dataset from their support tickets or emails.
- Keep lineage records: base model version, dataset snapshot, evaluation results and who approved each release.
In our projects data stays in an EU region, preferably in your own cloud account, and we use model APIs that don’t train on your data. Smoother Development AB is a Swedish company and our engineering team works from Ukraine, so we sign a data processing agreement with the EU Standard Contractual Clauses before anyone on the team touches personal data.
What to do next
If you have a use case and aren’t sure which approach fits, the five-day AI Production Audit (€3,500, credited in full against the launch if it starts within 60 days) answers the question on your own data: we check data quality and access, set a baseline, and write down the architecture and acceptance criteria. If RAG is enough, the AI Production Launch puts that workflow into production in up to six weeks, at the fixed price the audit sets.