Updated 8 min read

RAG vs fine-tuning: how to choose for your company data

Vladyslav Sokolovskyi Co-founder & CTO

In short

Use RAG when a model has to answer from your own, changing data and show where each answer came from. Use fine-tuning only when you need a consistent behavior, such as a strict output format, a house style or high-volume classification, that a good prompt can't deliver. For most business assistants RAG is enough, and putting one RAG workflow into production is what our AI Production Launch does, at a fixed €20,000–35,000 and in up to six weeks.

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:

  1. Your documents and records are split into passages and indexed, typically with embeddings (numeric representations of meaning) alongside ordinary keyword search.
  2. When someone asks a question, the system retrieves the best passages, filtered by what that person is allowed to see.
  3. 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

RAGFine-tuning
What it changesWhat the model can see when it answersHow the model behaves
Data you needYour documents and records as they are, plus access rightsCurated input → ideal output examples, each checked by a domain expert
When your data changesRe-index the changed document, usually in minutesUpdate the dataset and retrain
Can it cite sources?Yes, every answer can link to the passages it usedNo
Removing one person’s data (GDPR)Delete it in the source system and the indexNot possible without retraining
Time to a first working versionDays to a couple of weeksWeeks, mostly spent producing examples
Main ongoing costModel calls and retrieval per question, index hostingDataset upkeep, retraining and evaluating each new version
Changing model providerSwap the model, keep the indexRebuild the fine-tune on the new base model
Best forQ&A over policies, contracts, product data and tickets; anything that changesStrict 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

  1. 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.
  2. Baseline with a good prompt. A strong model, clear instructions, a few examples, structured output. Measure accuracy, cost and latency.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Frequently asked questions

Is RAG better than fine-tuning?
For answering questions from your own data, yes. RAG stays current when documents change, can cite its sources and lets you delete data. Fine-tuning is better for changing how a model behaves (format, tone, labels), not for adding knowledge.
Can we fine-tune a model on our documents so it knows them?
You can, but it is an unreliable way to store facts. Research comparing the two (Ovadia et al., 2024) found that RAG consistently outperformed unsupervised fine-tuning on knowledge-heavy questions, and a fine-tuned model cannot tell you where an answer came from.
How many examples do you need to fine-tune a model?
OpenAI's fine-tuning guide reports improvements from 50–100 examples and recommends starting with 50 well-crafted ones. Production tasks often need more, and someone who knows the domain has to check every example.
How much does a RAG system cost?
A simple RAG assistant over a document set typically costs €20,000–30,000 as a project. Taking one RAG workflow into production, connected to your systems, is our fixed-price AI Production Launch: €20,000–35,000 depending on scope, up to six weeks, after a €3,500 audit that is credited in full if the launch starts within 60 days.
Is RAG easier to make GDPR-compliant than fine-tuning?
Usually, yes. With RAG, personal data stays in your systems and index, where you control access and can delete it. Personal data used for fine-tuning becomes part of the model and cannot be removed without retraining.
Can you combine RAG and fine-tuning?
Yes. A common pattern is RAG for the facts and a small fine-tuned model for one narrow step, such as outputting an account code in the exact format an ERP expects. Build the RAG part first: it is useful on its own and produces the corrected outputs you would later train on.
Vladyslav Sokolovskyi
Written by Vladyslav Sokolovskyi Co-founder & CTO

Vladyslav co-founded Smoother Development and leads architecture and the engineering team in Ukraine. He holds a PhD in computer science and is a senior university lecturer.

Connect on LinkedIn

Want an AI feature in production, not just a demo?

Our AI Production Launch puts AI features into production in up to 6 weeks at a fixed price of €20,000–35,000, with evaluations, data isolation, cost limits and monitoring included. It starts with a 5-day audit for €3,500.

See the AI Production Launch

Let's talk about what you want to build

Tell us briefly what you want to build, fix or put into production. You'll talk to a founder, not a salesperson.

Book a 30-minute call

Pick a time in Daniel's calendar. You'll get an invite with a video link, and we'll come prepared with questions about your goal.

Pick a time
  1. 1 A founder reads your message and usually replies within one business day.
  2. 2 We agree a time for a 30-minute call to understand your goal, systems and constraints.
  3. 3 You get a written next step: a fixed-price proposal, a paid audit, or an honest "we're not the right fit".

Prefer e-mail? [email protected]

Or send us a message

Privacy policy *