You’ve tried a large language model on a business problem. The results are promising but not quite right. Maybe it doesn’t know your products. Maybe its tone is off. Maybe it invents details.
There are three main ways to make it better: write better prompts, give it the right information at the right time (RAG), or train it further on your own examples (fine-tuning).
Teams often jump straight to fine-tuning because it sounds the most serious. Usually, it’s the last thing you should try. Here’s why, and how to choose.
A simple way to think about it
Imagine hiring a very smart new employee.
- Prompting is giving them clear instructions for a task.
- RAG is handing them the right files from your filing cabinet before they answer.
- Fine-tuning is sending them on a long training course so certain habits become second nature.
You wouldn’t send someone on a three-month course when what they actually needed was the customer’s file.
Option 1: Prompt engineering
This means improving the instructions you give the model:
- describe the role and the goal clearly
- give the rules (“answer in under 100 words”, “never promise delivery dates”)
- show a few examples of good outputs
- specify the output format, such as JSON with given fields
- ask it to reason step by step for complex tasks
Strengths: Fast, free to iterate, no infrastructure. You can test a change in minutes. Modern models follow detailed instructions very well.
Limits: The model still only knows what was in its training data plus whatever fits in your prompt. It can’t know your latest price list unless you tell it.
Good for: tone and style, output formatting, classification, summarisation, drafting, extraction from text you provide.
Option 2: Retrieval-augmented generation (RAG)
RAG adds a lookup step. When a question comes in:
- Search your documents, database or knowledge base for the most relevant pieces.
- Insert those pieces into the prompt.
- Ask the model to answer using that information.
Strengths: - The model works with your current information: policies, product specs, tickets, contracts. - Updating knowledge is as simple as updating the documents. No retraining. - Answers can cite sources, which makes them easier to verify and trust. - Access control is possible: only retrieve documents the user is allowed to see.
Limits: Quality depends heavily on retrieval. If the search step returns the wrong passages, the model answers from the wrong information. Building good chunking, search and ranking takes real engineering.
Good for: support assistants, internal knowledge bots, policy Q&A, document search, anything where facts change or must be traceable.
Option 3: Fine-tuning
Fine-tuning continues training a model on your own examples, typically hundreds to thousands of input-output pairs, so it learns a pattern.
Strengths: - Teaches consistent behaviour: a very specific format, style or classification scheme. - Can make a smaller, cheaper model perform a narrow task as well as a larger one. - Can shorten prompts, since the behaviour is built in, which lowers per-request cost and latency at scale.
Limits: - Needs a good, clean dataset, which is often the hardest part. - Costs time and money to train, evaluate and repeat when things change. - Not a good way to add facts. Fine-tuned models still hallucinate, and knowledge baked in at training time goes out of date. - You need to re-run it when the base model is upgraded.
Good for: high-volume narrow tasks (classifying millions of tickets, extracting fields from a fixed document type), strict output styles, domain-specific language patterns, and cost reduction at scale.
Side-by-side
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| Setup effort | Very low | Medium | High |
| Cost to start | Minimal | Moderate (search infrastructure) | Higher (data prep, training) |
| Adds new or private knowledge | Only what fits in the prompt | Yes, and stays current | Poorly, and goes stale |
| Changes style and behaviour | Yes, mostly | A little | Yes, strongly |
| Easy to update | Instantly | Update the documents | Retrain |
| Explainability | Medium | High (sources) | Low |
| Best for | Most tasks, first attempt | Knowledge-heavy Q&A | Narrow, high-volume, consistent tasks |
A practical order of operations
1. Start with prompting. Write clear instructions with examples. Test on 20 to 50 real cases and measure results. Many projects stop here because it’s good enough.
2. Add RAG when the problem is missing knowledge. If wrong answers are about facts the model couldn’t know, like your refund policy, latest prices, or a customer’s history, bring that knowledge in through retrieval.
3. Consider fine-tuning when the problem is behaviour at scale. If prompts are long and repetitive, outputs need very strict consistency, or you want a cheaper model for millions of requests, fine-tuning may pay off.
4. Combine them. Mature systems often use all three: a fine-tuned model for consistent style, RAG for current facts, and good prompts tying it together.
Real-world examples
Customer support assistant for an e-commerce site. RAG over help articles and order data, with a prompt that sets tone and rules. Fine-tuning rarely needed.
Extracting fields from 50,000 purchase orders a month in a fixed layout. Start with prompting and examples. If volume makes costs high, fine-tune a smaller model on verified extractions.
Internal HR policy bot. RAG, with access controls so employees only see policies relevant to them, and answers citing the policy section.
Writing product descriptions in a strict brand voice. Prompting with examples first. If it still drifts across thousands of products, consider fine-tuning on approved descriptions.
Legal or medical summaries. RAG for grounding in the actual documents, plus strong prompts requiring citations, plus human review. Fine-tuning won’t remove the need for verification.
Don’t skip evaluation
Whatever approach you choose, build a test set: real examples with the answers you’d consider correct. Run every change against it. Without measurement, you’re guessing whether the new prompt, retrieval tweak or fine-tuned model is actually better.
Track accuracy, but also cost per request, response time, and how often answers need human correction.
Choosing well
- Prompting is the fastest and cheapest lever. Always start there.
- RAG is the right fix when the model lacks your facts, and it keeps answers current and traceable.
- Fine-tuning shapes behaviour and can cut costs at scale, but it’s a poor way to teach facts.
- The best systems often combine all three, guided by a proper test set.
Pick the tool that matches the problem. If the AI doesn’t know something, give it the information. If it knows but behaves inconsistently, improve instructions first and train it only when you’ve outgrown that.
Leave a Comment