RAG vs fine-tuning: which one your SaaS actually needs
When retrieval beats fine-tuning, when it doesn't, and why most SaaS AI features need neither for their first version.
Samed Škulj
· 3 min read
"Should we fine-tune a model on our data?" is one of the most common questions I hear from SaaS teams starting with AI. Usually the honest answer is: not yet, and maybe never. Here is how to decide.
The short version
- Your feature needs facts the model doesn't know (your customers' documents, your product's help centre, today's data): use retrieval (RAG).
- Your feature needs a behaviour or format the model can't follow from instructions and examples: consider fine-tuning, after you have tried prompting properly.
- Neither: most first features. A good prompt with a few examples, the right context from your database, and structured output gets you most of the way.
What retrieval does
Retrieval-augmented generation means: before calling the model, find the pieces of information relevant to this request and put them in the prompt. The model then answers from that context.
It fits when:
- The knowledge changes often (documents get uploaded, policies change).
- Each customer has their own data, and must only see their own.
- Users need to see where the answer came from.
It does not change how the model writes or reasons. It only changes what it knows for this one call.
Retrieval is a search problem first
Most RAG features that give poor answers have a retrieval problem, not a model problem. The model was never shown the right paragraph. Before tuning prompts, check:
- Chunking: are documents split at sensible boundaries (sections, clauses), with headings kept?
- Search: are you combining keyword search with embeddings? Pure vector search misses exact terms like product codes and names.
- Filtering: are results filtered by workspace and permissions before ranking?
- Evaluation: for a set of questions, is the right chunk in the top five results?
Measure retrieval on its own. If the right chunk isn't found, no prompt will save the answer.
You may not need a vector database
If your content fits in Postgres, start with Postgres. Full-text search plus the pgvector extension covers most SaaS use cases, keeps permissions in one place, and avoids another system to run.
What fine-tuning does
Fine-tuning trains a model further on your examples, so it learns a pattern: a tone, a format, a classification scheme. It's useful when:
- You have hundreds or thousands of high-quality input and output examples.
- Prompting with examples still fails on format or style consistency.
- You want a smaller, cheaper model to match a larger one on a narrow task.
It is not a good way to teach facts. The model may blend them, misremember them, and it can't cite them. Facts change; retraining every time is slow and costly.
A decision table
| Situation | Approach |
|---|---|
| Answer questions about the customer's own documents | Retrieval |
| Help-centre assistant | Retrieval |
| Draft replies in your house style | Prompt with examples; fine-tune only if that fails |
| Classify tickets into 40 categories at high volume | Prompt first; fine-tune a small model for cost |
| Extract fields from invoices | Prompt with structured output |
| Make the model "know our product" | Retrieval over docs, not fine-tuning |
The order I recommend
- Prompt plus examples plus structured output. Measure with evals.
- Add retrieval if the model lacks facts. Measure retrieval separately.
- Consider fine-tuning only for style, format or cost, and only with a solid eval set to prove it helped.
This keeps your first version simple, which is what lets you ship it in weeks. If you're unsure which approach your feature needs, that's a good question for a call before an AI feature build.

Written by Samed Škulj
Senior Full-Stack Engineer since 2021. I have shipped with teams at Deel, HTEC Group (for Zoox), Ministry of Programming, and now help SaaS teams add AI features and get AI-built apps ready for production. LinkedIn