When should you fine-tune the model instead of iterating on the prompt?
Fine-tune for stable behavior at scale; prompt for fast iteration and changing tasks; use RAG for fresh or private knowledge.
Imagine you are training a new hire. You can write them a detailed instruction sheet (a prompt) that they read fresh every morning, or you can send them to a two-week bootcamp (fine-tuning) so the instructions become muscle memory. The sheet is flexible because you can rewrite it tonight, but the new hire has to re-read it every single day, which is slow at scale. The bootcamp is fast at runtime because they just know what to do, but updating their training means another bootcamp. And if the question is about facts they have not learned, neither helps. You hand them a reference book to look things up, which is the RAG pattern.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: three fine-tune triggers + behavior vs knowledge split + RAG routing + LoRA cost shift + prompt structural variants to try first.
| Concern | Prompt engineering | Fine-tuning |
|---|---|---|
| Iteration speed | Minutes; live edits and reverts | Hours to days; a training run per change |
| Cost per change | Near zero | $50-$500 with LoRA; more for full fine-tune |
| Best for | Task-level behavior, format guidance, reasoning scaffolds | Stable tone, strict schema, long stable instructions |
| Knowledge updates | RAG via retrieved context | Poor fit; weights do not reliably install facts |
| Production discipline | Versioned prompts + eval CI | Versioned adapters + golden-set evals pre/post |
Real products, models, and research that use this idea.
- Cursor ships hand-tuned system prompts against Claude Opus 4.7 and GPT-5.5, with no per-model fine-tune.
- Anthropic and OpenAI both offer LoRA fine-tuning on their flagship models, used mostly for strict output schemas and brand-tone consistency.
- Perplexity uses RAG over the live web rather than fine-tuning, because freshness is the constraint, not behavior.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does LoRA change the prompt vs fine-tune calculus in 2026?
QWhen does prompt caching make a long prompt cheaper than a fine-tune?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reaching for fine-tuning when the gap is actually missing knowledge; that is a RAG problem, and weight updates will not reliably add facts.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.