Before you touch a single line of training code, you need to answer a deceptively simple question: does your problem actually require fine-tuning at all? A large share of "we need a custom model" requests are solved faster, cheaper, and with less operational risk by better prompting or by retrieval-augmented generation (RAG). Fine-tuning is powerful, but it is also the option with the highest ongoing cost in engineering time, data curation, and maintenance. This lesson gives you a decision framework so you deploy the right tool for the right job.
The three techniques, precisely defined
Prompting (including few-shot examples and structured system prompts) changes model behavior purely through the input context. You do not modify any weights. You steer the model with instructions, examples, output-format specifications, and role framing. It is instant to iterate on and requires zero training infrastructure.
RAG (retrieval-augmented generation) adds an external knowledge source at inference time. You embed your documents into a vector store, retrieve the most relevant chunks for a given query, and inject them into the prompt. The model reasons over facts it was never trained on. RAG is the standard answer to "the model does not know my private or fresh data."
Fine-tuning updates the model weights (fully, or with parameter-efficient adapters such as LoRA) on your own examples. It changes the model's behavior and style durably: tone, formatting conventions, a domain-specific reasoning pattern, a niche output schema, or a language/register the base model handles poorly. It does not, by itself, reliably teach new facts.
The mental model that resolves most debates
Use this heuristic:
- Prompting changes how you ask.
- RAG changes what the model can see.
- Fine-tuning changes how the model behaves by default.
A frequent and expensive mistake is trying to fine-tune facts into a model. If your requirement is "the assistant must answer questions about our 4,000-page internal policy handbook and stay current as it changes weekly," that is a RAG problem, not a fine-tuning problem. Fine-tuning on those documents will produce a model that confidently paraphrases and hallucinates, and every handbook update would force a retrain. RAG lets you update the knowledge base by re-indexing, with no training at all.
Conversely, if your requirement is "every response must follow our strict clinical-note format, in a terse professional register, even under adversarial input," prompting may get you 90% of the way but drift on edge cases. Fine-tuning bakes the behavior in so you no longer spend hundreds of tokens per request re-teaching format, which also cuts latency and cost per call.
Comparison table
| Dimension | Prompting | RAG | Fine-tuning |
|---|---|---|---|
| Changes weights? | No | No | Yes |
| Teaches new/fresh facts | Weakly | Strongly | Poorly |
| Teaches style/format/behavior | Moderately | Weakly | Strongly |
| Time to first result | Minutes | Hours to days | Days to weeks |
| Upfront cost | Very low | Medium | High |
| Per-request token cost | High (long prompts) | High (retrieved context) | Low (behavior is internal) |
| Inference latency | Higher (long context) | Higher (retrieval + context) | Lower |
| Freshness / update speed | Instant | Fast (re-index) | Slow (retrain) |
| Data needed | A few examples | A document corpus | Curated example pairs |
| Best at | Quick steering, prototyping | Grounded factual answers | Consistent behavior, niche tasks |
Cost, latency, and freshness trade-offs
The token economics matter more than people expect. If you rely on a 1,500-token system prompt with ten few-shot examples on every call, you pay for those tokens on every request forever, and they inflate latency. Fine-tuning can move that behavior into the weights, shrinking prompts dramatically. Over millions of requests, the training cost amortizes quickly. This is a classic reason to fine-tune even when prompting "works."