Nythrex

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

Default behaviour is fineNeeds specialised behaviour
Fine-tuning (behaviour, format, style)
Fine-tuning + RAG
Prompt engineering
RAG (retrieval-augmented generation)

Needs little new knowledgeNeeds lots of your knowledge

Two questions decide most cases: is the problem knowledge, behaviour, or both?

Three tools, three different problems

PromptingRAGFine-tuning
SolvesUnclear or incomplete instructionsMissing, private or changing knowledgeInconsistent behaviour, format or style
How it worksBetter instructions and examples in the promptSearch your data, put relevant passages in the promptFurther train the model on input → output examples
Updating knowledgeEdit the promptRe-index documents — minutesRetrain — and the knowledge is still fuzzy
Citations / auditNoYes — answers point to sourcesNo — knowledge is baked into weights
Data you needA handful of examplesThe documents you already haveHundreds to thousands of reviewed examples
Time to first resultHoursDays to weeksWeeks, including data preparation
Main riskPrompt gets long and brittlePoor retrieval → confident wrong answersPaying 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.
  1. 01

    Prompting

    Clear instructions + examples + test set

  2. 02

    Add RAG

    When knowledge is missing or changes

  3. 03

    Collect corrections

    Log real inputs and human-fixed outputs

  4. 04

    Fine-tune a step

    Only where volume and data justify it

The sensible order for most teams. Each step is justified by measurements from the previous one.

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

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.

Start a project