Prompting steers a frozen model with instructions and examples. RAG injects retrieved facts at inference. Fine-tuning changes weights to alter default behavior. The right lever depends on the gap you are closing.

Is the gap knowledge, behavior or specification?

Fine-tune vs RAG vs prompt (how to choose)Diagram with these labels, in reading order: if under-specified; if missing knowledge; if missing behavior; refine; Identify gap; in model output; Use Prompt; for under-specification; Use RAG; for missing knowledge; Use Fine-tune; for missing behavior; Iterate; and refine approach.if under-specifiedif missing knowledgeif missing behaviorrefinerefinerefineIdentify gapin model outputUse Promptfor under-specificationUse RAGfor missing knowledgeUse Fine-tunefor missing behaviorIterateand refine approach
Choosing between fine-tune, RAG, and prompt

Start with one question: what kind of gap are you closing? The answer picks the lever.

GapLeverSoftware analogue
Under-specified taskPromptingSetting configuration flags
Missing knowledge: facts, documents, fresh informationRAGA database query at runtime
Missing behavior: format, tone, styleFine-tuningRecompiling the program

A second axis is whether the answer changes per request and needs freshness or citations. If so, RAG retrieves the relevant data at query time. If you need stable output that is better demonstrated than described, fine-tuning fits. You can layer the three: fine-tune for style, use RAG to inject facts, and prompt to define the task.

Fine-tuning is a lossy recompile

The recompiling analogy breaks in one place. Software versions can be diffed to see exactly what changed. A fine-tuned model changes in a lossy, probabilistic way, and you cannot easily say what moved in its behavior.

Why fine-tuning for facts goes stale

The common mistake is fine-tuning to add knowledge. It is costly, and the knowledge goes stale the moment the facts change. The model may also hallucinate confidently in the new style. It cannot cite sources either. With RAG you update the knowledge by editing an index, with no retraining, and the model can reference where an answer came from, which matters for verifiable data.

Common misstep Fine-tuning to add knowledge risks stale information and hallucinations. For volatile facts, prefer RAG.

Order of escalation

  1. Start with prompting. It is the cheapest and fastest to iterate.
  2. Add RAG when answers depend on private or frequently changing data, or need citations.
  3. Reserve fine-tuning for last, mainly when you need stable style or format, or when large prompts make latency and cost significant at scale.

The three levers act on different things: instructions, retrieved context and model weights. That is why the choice depends on where the gap sits and why they combine well. For stable skills, RAG may be unnecessary. A decision made this way avoids paying for training when the problem is retrieval, and the reverse.

Example scenario: irrelevant answers, diagnose the gap first

Suppose 30% of responses to queries are irrelevant. The cause may be a poorly specified prompt, a RAG component that is not fetching the right context, or a fine-tuning dataset that lacks the domain.

Fine-tune vs RAG vs prompt (how to choose)Diagram with these labels, in reading order: Response Irrelevance Rate; Check Prompt Quality; Evaluate RAG Effectiveness; Assess Fine-Tuning Impact; Improve Prompt; Instructions; Enhance RAG Retrieval; Refine Fine-Tuning Dataset.Response Irrelevance RateCheck Prompt QualityEvaluate RAG EffectivenessAssess Fine-Tuning ImpactImprove PromptInstructionsEnhance RAG RetrievalRefine Fine-Tuning Dataset
Fine-tune vs RAG vs Prompting
  • Check the accuracy of recent queries and responses.
  • Review the prompt for under-specified instructions.
  • Evaluate the RAG configuration to confirm it retrieves relevant documents.
  • Review the fine-tuning dataset for coverage of the domain.

Match the repair to the gap found. Missing facts point to better retrieval. Track response accuracy after each change.

Back to the knowledge baseRequest an assessment