Start by naming the gap
"The model is not good enough" is not a diagnosis. Before choosing a technique, write down which of four gaps you actually have, because each points to a different fix.
The order matters too. Prompting is the cheapest change and the fastest to test; retrieval adds a data pipeline; fine-tuning adds a training pipeline and a model to maintain. Climb only as far as the evidence requires.
Step 1: exhaust the prompt, honestly
A surprising share of "we need fine-tuning" problems are prompt problems: vague instructions, no examples, no output schema. Write a clear task description, add a handful of worked examples covering the hard cases, and constrain the output with a schema. Then measure on an evaluation set built from real inputs. If quality climbs and then plateaus, you have learned where the ceiling is, which is the evidence you need for the next step. See structured outputs and evaluation sets that predict production.
Step 2: retrieve when the gap is knowledge
Retrieval-augmented generation combines a model with a search step over your own documents, so answers draw on current, specific facts that can be cited1. It is the right tool when knowledge changes often, must be attributable, or is too large or sensitive to train into weights. It is the wrong tool for teaching style or format: retrieving more examples of a format is a weak substitute for a model that has learned it.
The hard work in retrieval is not the model; it is chunking, metadata, access control and evaluation of what gets retrieved. Most retrieval failures are search failures. See RAG to production, choosing embedding models and long context versus RAG.
Step 3: fine-tune when the gap is behaviour
Fine-tuning changes how the model behaves: following a house format every time, using domain terms correctly, making a narrow classification reliably, or using retrieved passages the way you want. Parameter-efficient methods have made it far cheaper. LoRA trains small low-rank matrices alongside frozen weights, cutting the number of trainable parameters dramatically2, and QLoRA showed fine-tuning on a quantised base model can preserve quality while fitting large models on far less hardware3.
The cost that remains is operational: a training dataset to curate and refresh, an evaluation gate for every new version, and a model whose behaviour you now own. Fine-tuning on facts is the classic mistake; facts change, and the model will state outdated ones confidently.
Combine them, and serve them efficiently
The strongest systems often combine all three: a fine-tuned model that has learned the task's format and how to use evidence, fed by retrieval for current facts, guided by a short, stable prompt. LoRA also changes the serving picture. Serving engines such as vLLM can load multiple LoRA adapters on one base model and choose the adapter per request4, and Kubernetes' Gateway API inference extension can route requests to servers that already have the right adapter loaded5.

That makes many small task-specific variants practical: one base model, many adapters, routed per request. See LLM inference serving and Kubernetes inference gateways.
The decision, side by side
| Question | Prompt | Retrieve | Fine-tune |
|---|---|---|---|
| Fixes | Unclear instructions | Missing or changing facts | Inconsistent behaviour or format |
| Time to first result | Hours | Days to weeks | Weeks |
| Ongoing work | Prompt versions and evals | Index freshness, access control | Datasets, retraining, eval gates |
| Citations | No | Yes | No |
| Provider portability | High | High | Lower: tied to a base model |
| Common mistake | Stopping before adding examples | Ignoring search quality | Training on facts |
- NameWhich gap: instruction, knowledge, behaviour or capability?
- MeasureBuild an evaluation set from real inputs first
- PromptInstructions, examples, schema; record the ceiling
- Retrieve or tuneRetrieval for knowledge, fine-tuning for behaviour
- CombineFine-tuned behaviour plus retrieved facts where both gaps exist
- OperateVersion prompts, indexes and adapters; gate each change on the eval set
If you cannot say what score on your evaluation set would justify fine-tuning, you are not ready to fine-tune.
The CTO's take
The adaptation choice is a product and operations decision as much as a technical one. Prompting keeps you portable across providers; retrieval makes answers current and auditable; fine-tuning buys consistency at the price of owning a model. Decide based on the gap you measured, not the technique in the news. If you are about to commit budget to fine-tuning, a week spent on an evaluation set and better prompts is the cheapest insurance you can buy.
If you want a second opinion on how to adapt models for your product, I am a fractional CTO and AI architect based in India, the United States and the UAE, working globally. You can analyse your challenge and bring the result to a call.
- 1Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksarXiv (Lewis et al.) · 2020
- 2LoRA: Low-Rank Adaptation of Large Language ModelsarXiv (Hu et al.) · 2021
- 3QLoRA: Efficient Finetuning of Quantized LLMsarXiv (Dettmers et al.) · 2023
- 4LoRA AdaptersvLLM documentation
- 5Introducing Gateway API Inference ExtensionKubernetes blog · 5 Jun 2025