Prompt vs RAG vs Fine-Tuning

You have three pathways to get useful work from an LLM. The big mental model:

Pick the lever that matches the bug.

Intuition

Method What changes Best when Main trade-off
Prompting Only the input instruction Fast experiments, low cost, simple tasks Can be inconsistent; wording-sensitive
RAG Model gets retrieved external knowledge at answer time Facts change often, or answers must come from private/current docs Quality depends on retrieval and chunking
Fine-tuning Model weights update on task data You want a stable style, format, or domain habit Training cost, data quality, forgetting risk

How it works

A practical decision checklist

  1. Does the knowledge change often? → Prefer RAG first.
  2. Do you need a stable, reusable behavior (tone, schema, domain phrasing)? → Fine-tuning becomes attractive.
  3. How much labeled data do you have? Small data usually favors prompting, RAG, or light PEFT before full fine-tuning.
  4. Is this one task or many related tasks? Related tasks can share one multi-task fine-tune later.
  5. Is the base model already almost right? If yes, train less (freeze more / lighter methods).

Split workflows are normal

One product can use both:

You do not have to force one tool for every workflow.

Where knowledge should live

A useful framing is “fine-tuning or retrieval?”:

What goes wrong

One-line summary

Prompt for control, RAG for fresh/private facts, fine-tune for stable reusable behavior — choose by what must change.

Key terms