The demo just ended and a product manager asks what everyone at the table is thinking: "Should we fine-tune the model?" The assistant answered in the wrong tone, skipped one line of the refund policy and invented a CRM field called customer_tier_v2 that doesn't exist. People start naming fixes before anyone names the problem. Someone says prompt. Someone says RAG. Someone says fine-tuning.
The catch is that the demo showed three different failures. The tone is an instruction problem. The skipped policy line and the made-up field are knowledge problems. Only if the tone stays wrong after you've fixed the instructions does it become a behavior problem. Each failure has its own fix, and picking the wrong one can cost you weeks.
What each lever actually changes
The clearest framing I know is in OpenAI's guide Optimizing LLM Accuracy. It splits the work along two axes. Context optimization is for when the model is missing information: it wasn't in the training data, it's out of date, or it's private to your company. LLM optimization is for when the model's behavior is off: the format drifts, the tone is wrong, the reasoning is shaky. The guide calls the first in-context memory, solved "by stuffing relevant information into the context window," and the second learned memory, solved "by showing examples of the prompt and the response you expect."
Mapped to the three tools:
- Prompting changes the instructions and context you send with each request. It's fast, cheap and easy to undo.
- RAG (retrieval-augmented generation) searches your own sources first and adds the relevant passages to the prompt, so the model answers from evidence it was handed.
- Fine-tuning keeps training the model on your examples, so a behavior ends up in the weights.
Most real failures show up as a symptom first. This table is a rough first guess at which lever to try:
| Symptom | Likely failure | Try first |
|---|---|---|
| Output ignores the format, audience or limits you had in mind | Unclear instructions | Prompt |
| Answer is out of date or misses an internal policy | Missing knowledge | RAG |
| Model makes up names, fields or numbers instead of using the real ones in your docs | Missing knowledge | RAG |
| Tone or structure drifts even with a clear prompt and the right context | Behavior | Fine-tuning, after you have evals |
| Results are fine but the prompt is huge and slow | Efficiency | Trim the prompt, or tune a smaller model |
Start with the prompt, and build an eval set while you're there
OpenAI's accuracy guide calls prompt engineering "typically the best place to start," and its model optimization docs go further: "The prompt engineering process may be all you need in order to get great results for your use case." A solid prompt names the task, the reader, the tone, the format, the limits and what to do when evidence is missing. If replies sound too casual, describe the tone you want and show two examples. If the JSON keeps breaking, give the schema and one valid sample. If answers wander outside policy, tell the model to use only the context provided and to say so when it can't find an answer.
The more valuable thing this stage leaves behind is an evaluation set: real questions paired with answers you know are right. OpenAI's guide treats that set as the baseline for every later change, and suggests waiting until you have "a set of 20+ questions and answers" and have looked closely at the failures before reaching for anything heavier. Later, that same set tells you whether RAG or fine-tuning actually helped.
When an answer in your eval set is wrong, tag it: instruction, retrieval or behavior. After a week you'll know which lever to pull, and the debate in the next meeting gets a lot shorter.
When the model is missing facts, reach for RAG
A prompt can remind the model to follow the refund policy. It can't know this month's refund policy unless you give it the text. A prompt can ask for real CRM field names, but if the schema changes every sprint, the field list has to come from somewhere current. That's retrieval's job.
The idea comes from the 2020 paper by Lewis et al. that coined the name RAG. It pairs the knowledge a model stores in its parameters with an external index it can search, and the authors note that updating a model's knowledge and showing where an answer came from are both open problems when everything lives in the weights. In a product, the system searches docs, tickets, runbooks, release notes or code first, then hands the relevant chunks to the model. The model still writes the answer, but the evidence comes from retrieval, which is why RAG fits so well with citations and freshness checks.
Could you fine-tune the facts in instead? A 2023 study tested that directly. In Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs, Ovadia and colleagues found that RAG "consistently outperforms" unsupervised fine-tuning, both for knowledge the model had seen during training and for entirely new knowledge. The models struggled to pick up new facts through fine-tuning, and the authors suggest it may take many variations of the same fact before one sticks.
RAG breaks in its own ways. It can pull the wrong chunk, miss the right document, return a stale version or bring back two sources that disagree. The model can also ignore part of what it was given. So improving RAG is mostly unglamorous work: who owns each document, how you chunk it, what metadata it carries, who's allowed to see it, and whether you can trace which chunks fed which answer. If the knowledge base is a mess, RAG mostly helps you find the mess faster. For the pipeline itself, RAG basics and Vector databases explained go step by step.
When a behavior won't stick, consider fine-tuning
Fine-tuning fits a narrow, repeated pattern the base model won't hold even with a clear prompt and the right context: a very specific set of classification labels, an extraction format that has to be exact, a house style for support replies across thousands of tickets. OpenAI's guide gives two reasons to do it: better accuracy on a specific task, and efficiency, meaning the same accuracy with fewer tokens or a smaller model. Its advice is to start small: "Start with 50+ examples, evaluate, and then dial your training set size up" only if the results call for it.
Two warnings. First, keep facts that change out of the weights. If your price list changes every month, a fine-tuned model is out of date by next month and you're paying for another training run that should have been a data update. Second, the dataset decides the quality. Weak examples teach the model your team's old mistakes, and it repeats them with total confidence. Plan for versioned datasets, a held-out test set the model never trains on, and a way to roll back.
Where you can fine-tune is changing fast. As of November 2026, OpenAI's model optimization guide says the company is winding down its fine-tuning platform: it's closed to new users, existing users can still create training jobs "for the coming months," and fine-tuned models stay available until their base models are deprecated. If you run an open-weight model yourself, lightweight methods such as LoRA are still an option. Either way, read your provider's current docs before you plan a quarter around fine-tuning.
A decision path that fits on a sticky note
- Write the prompt properly and build a small eval set: 20 or more real questions with answers you know are right.
- Label each failure as instruction, knowledge or behavior.
- Instruction failures: fix the prompt and rerun.
- Knowledge failures: add retrieval, then check that the right chunks come back before you blame the model.
- Behavior failures that survive a good prompt and good context: try fine-tuning with a small, clean dataset, if your provider still supports it.
- Rerun the same eval set after every change.
The three levers stack. OpenAI's guide says it plainly: "These techniques stack on top of each other" when your evals show both context and behavior problems. A real system might use a clear prompt, retrieved evidence and a tuned model for one narrow step. What you're after is the smallest change that makes the feature reliable.
Count the running costs too. Prompting costs experiment time and tokens on every call. RAG costs indexing, permissions, retrieval quality and the upkeep of the knowledge base. Fine-tuning costs dataset work, training runs, monitoring and model version management, plus the risk that the platform changes under you. The API call looks simple in every case. The operations behind it never are.
Try this week
- Collect 20 real questions your assistant got this month and write down the answer you wanted for each one.
- Run them, then tag every miss as instruction, knowledge or behavior.
- Fix the biggest bucket first and rerun the same 20.
- If someone proposes fine-tuning, ask which tagged failures it would fix and whether your provider still supports it.
Once a failure has a name, the fix tends to get less fashionable and a lot more useful.