Fine-tuning, prompting, or RAG: choosing how to use your own data
There are three main ways to make an LLM work with your own data: prompting (better instructions and context), RAG (retrieval-augmented generation), and fine-tuning (additional training). The short answer is that these are not a ranking of “best to worst.” They solve different problems. Prompting fixes how you communicate the task, RAG supplies knowledge the model lacks, and fine-tuning makes a behavior consistent. Pick the wrong one and you either spend six figures on a problem a better prompt would solve, or skip an investment you actually need.
This article covers the three definitions, a decision framework, the most common misconception about fine-tuning, and a staged approach. For the broader architecture question (including API-only use and self-hosted models), see architecture decision axes for embedding LLMs in a product. Here we focus narrowly on how to use your own data. It is written as a technical literacy primer for non-engineers who still need to make the call.
The three options and the problem each one solves
| Option | What you do | Model changes? | Problem it solves |
|---|---|---|---|
| Prompting | Put instructions, examples, and reference text in the input | No | Ambiguous instructions, inconsistent output format |
| RAG | Search internal documents per question and attach the results to the input | No | Missing or outdated knowledge |
| Fine-tuning | Train further on your own examples, adjusting model weights | Yes | Consistency of tone, format, and judgment |
Prompting means designing the input text: role, instructions, output examples, and constraints. Because the model is untouched, you can iterate in minutes.
RAG (retrieval-augmented generation) retrieves relevant passages from internal documents or databases before answering and hands them to the model with the question. Knowledge lives outside the model, so replacing a document updates the answers.
Fine-tuning trains the model on hundreds to tens of thousands of input-and-desired-output pairs, changing the weights themselves. The effect persists, but updating it means retraining.
Prompting and RAG change the input side; fine-tuning changes the model side. A useful rule: solve knowledge problems on the input side and behavior problems on the model side.
Decision axes: data volume, update frequency, desired behavior, cost
| Axis | Prompting | RAG | Fine-tuning |
|---|---|---|---|
| What you need | Clearer instructions | Current or internal knowledge | Tone, format, judgment patterns |
| Data required | Almost none (a few examples) | A meaningful body of documents, cleaned up | Hundreds or more high-quality pairs |
| Handles frequent updates | Instantly editable | Replace documents; changes flow through | Requires retraining; slow |
| Upfront cost and effort | Low | Medium (search infrastructure, document cleanup) | High (data creation, training, evaluation) |
| Source citation | Hard | Can point to source passages | Hard |
| Main risk | Prompt bloat | Weak retrieval quality | Overfitting; keeping pace with new base models |
The order of questions
- Would better prompts fix it? If format, tone, or step-by-step instructions resolve it, stop here.
- Is the cause information the model doesn’t have? Internal policies, product specs, and customer history point to RAG.
- Does behavior stay unstable even when the knowledge is supplied? Inconsistent use of domain terms, judgment criteria, or house style are cases where fine-tuning is worth considering.
The principle: try options in order of increasing cost and decreasing reversibility. Fine-tuning is the last option to consider, not the first move.
The misconception: “fine-tune it and it will know our business”
A common expectation in boardrooms and investment discussions is that training on company data produces an AI that knows the company. Three realities usually disappoint.
Accurate recall is not guaranteed
Fine-tuning does not make a model memorize documents verbatim. Even afterward, there is no guarantee it will quote your policy or price list correctly, and plausible but wrong answers (hallucinations) persist. For knowledge that must be exact, supplying the source document each time through RAG is more reliable.
Every update means retraining
Policies and specs change. A fine-tuned model needs its training data rebuilt, retrained, and re-evaluated after each change. When the underlying base model moves to a new generation, the fine-tuning may need to be redone. It is a poor fit for fast-changing knowledge.
Training data is the largest cost
The main expense is rarely compute. It is the human labor of building high-quality input-output pairs. Hundreds of examples written and reviewed by staff is a line item that AI project estimates often miss. For more on data preparation, see where small and midsize businesses should start with AI.
Fine-tuning does have strong use cases: matching response tone to a brand, applying classification rules consistently, producing a specific JSON format reliably, or training a smaller model on a narrow task to cut inference cost. These are all about reproducing behavior, not storing facts.
Combination patterns and a staged rollout
In practice the three are layered, not exclusive.
| Pattern | Composition | Typical use |
|---|---|---|
| A: Prompting only | Instructions plus a few examples | Summaries, drafting, routine task assistance |
| B: Prompting + RAG | Instructions plus retrieved internal documents | Policy Q&A, product support, knowledge search |
| C: Prompting + RAG + fine-tuning | Knowledge via RAG, behavior via training | High-volume routine work needing consistent quality |
A staged approach
- Stage 1 (1-2 weeks): Test 20-30 representative tasks with prompting alone, recording accuracy and the types of failure.
- Stage 2 (1-2 months): If failures stem from missing knowledge, introduce RAG. The main work is document cleanup and retrieval-quality evaluation.
- Stage 3 (only if needed): If output format or judgment remains unstable even with RAG, begin building fine-tuning data.
At each stage, measure results on the same evaluation set, tracking how many cases met expectations. Without a fixed evaluation set, you cannot tell whether a change helped or hurt.
For investors and acquirers
When assessing an AI startup, “we fine-tune on proprietary data” is not enough to establish a moat. Ask three questions: what problem is it solving (knowledge or behavior)? Who creates and maintains the training data? Can the result be reproduced when the base model changes? For how to read sources of advantage, see where competitive advantage comes from in AI startups.
Decision flowchart
Frequently asked questions
Where should a small or midsize company start?
Start with prompt refinement. Try 10-20 routine tasks and log the failure types. If you want the AI to reference internal documents, RAG is the next step. Consider fine-tuning only once consistent quality across high-volume routine processing becomes a business problem. For approaches when in-house AI expertise is thin, see the structure of the “no one here understands AI” problem.
What does combining all three cost?
Prompting costs mostly staff time. RAG adds search infrastructure and document cleanup. Fine-tuning carries the largest effort in data creation and evaluation. Combining them increases operational complexity, so add the next layer only after the evaluation set shows it is needed.
How should confidential information be handled?
For every approach, handling of input data depends on the contract terms of the service you use. For RAG the issue is access control over referenced documents; for fine-tuning it is selecting what goes into training data. For a minimum baseline, see how to write a generative AI usage policy for a small business.
Summary
- Prompting, RAG, and fine-tuning are a division of labor, not a ranking. Missing knowledge calls for RAG, behavior consistency for fine-tuning, and ambiguous instructions for prompting.
- “Fine-tune it and it will know our business” is a misconception. If accuracy and freshness matter, consider RAG first.
- Proceed in order of increasing cost and decreasing reversibility, confirming results on the same evaluation set before moving on.
Which approach fits your operations is best judged by looking at the actual work and data.