Guide · AI architecture
RAG vs fine-tuning vs prompting: stop paying for the wrong one.
“We need to train the model on our data” is one of the most expensive sentences in AI projects — because it’s usually the wrong fix. Fine-tuning, RAG and prompting solve different problems. Pick by the problem, not by the buzzword, and you’ll save months.
By Nythrex EngineeringUpdated 4 min read
Needs little new knowledge → Needs lots of your knowledge
Three tools, three different problems
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| Solves | Unclear or incomplete instructions | Missing, private or changing knowledge | Inconsistent behaviour, format or style |
| How it works | Better instructions and examples in the prompt | Search your data, put relevant passages in the prompt | Further train the model on input → output examples |
| Updating knowledge | Edit the prompt | Re-index documents — minutes | Retrain — and the knowledge is still fuzzy |
| Citations / audit | No | Yes — answers point to sources | No — knowledge is baked into weights |
| Data you need | A handful of examples | The documents you already have | Hundreds to thousands of reviewed examples |
| Time to first result | Hours | Days to weeks | Weeks, including data preparation |
| Main risk | Prompt gets long and brittle | Poor retrieval → confident wrong answers | Paying to learn the wrong thing; harder to update |
The myth: “fine-tune it on our documents”
Fine-tuning on a pile of company documents rarely produces a model that reliably knows facts from them. Fine-tuning is good at teaching patterns — how to respond, which format to use, which label to pick — and weak at teaching facts you can retrieve on demand. It also can’t tell you where an answer came from, and every document update means retraining. For knowledge, RAG is almost always the better tool. See how we build it on the RAG development page.
Decide in one minute
RAG, fine-tuning or prompting?
Does the model need knowledge it doesn’t have — private, recent or frequently changing information?
When prompting is enough
- The task is general (summarise, draft, extract, classify) and the model already knows the domain.
- The knowledge needed fits in a few pages you can include directly — with prompt caching to keep costs down.
- Your volume is moderate, so a slightly longer prompt doesn’t matter financially.
- You haven’t yet written a proper test set. (Do that before anything else — you can’t improve what you don’t measure.)
When you need RAG
- Answers depend on internal documents, tickets, product data or policies.
- The information changes weekly or daily.
- Users or auditors need to see where an answer came from.
- Different users may see different data — permissions must apply to answers.
When fine-tuning earns its cost
- A narrow task runs at high volume, and a smaller fine-tuned model can replace a larger, more expensive one.
- Output must follow a strict format or house style that prompting can’t hold consistently.
- You have (or can collect) hundreds to thousands of reviewed examples — ideally from people correcting AI output in production.
- You have a baseline: a well-prompted model measured on the same test set, so you can prove fine-tuning actually helped.
- 01
Prompting
Clear instructions + examples + test set
- 02
Add RAG
When knowledge is missing or changes
- 03
Collect corrections
Log real inputs and human-fixed outputs
- 04
Fine-tune a step
Only where volume and data justify it
Example: a support assistant
A SaaS company wants AI-drafted replies to support tickets. Replies must use current product documentation (RAG), follow tone and structure guidelines (prompting), and tag each ticket with one of 40 internal categories. The tagging step runs on every ticket and a smaller fine-tuned model could do it cheaper and more consistently than a large general one — once there are enough agent-corrected labels (fine-tuning, later). Three techniques, each where it fits. We walk through a similar scenario in Example: support copilot for a B2B SaaS.
Frequently asked questions
Keep reading
Want a second opinion on your project?
Tell us what you’re building and where you’re stuck. We’ll reply within one business day with the most practical next step — even if that step isn’t us.
