When should you fine-tune the model instead of iterating on the prompt?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
What an interviewer would ask next. Try answering before peeking at the approach.
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.