Comparison · AI development
RAG vs fine-tuning vs prompt engineering: which does your AI need?
When an AI assistant gives wrong or generic answers, there are three ways to fix it: better prompts, retrieval-augmented generation (RAG) that feeds it your own documents, or fine-tuning the model on examples. The AI providers’ own guidance agrees on the order to try them, and 2026 has changed who even offers fine-tuning. This guide sets out what OpenAI, Anthropic and Google say, with sources.
- Checked 24 Nov 2026
- Vendor documentation
- We build RAG and agents
Quick answer
Should I use RAG, fine-tuning or prompt engineering?
Start with prompt engineering: OpenAI says it is “typically the best place to start”, and Google says to find the best prompt before tuning. Add RAG when the model lacks knowledge it needs, such as your policies, products or recent data, or when answers must cite sources. Consider fine-tuning only for consistent format, tone or a narrow task that prompting can’t fix, after you have evals and enough examples (Google suggests 100 or more). Fine-tuning is also harder to get in 2026: OpenAI is winding down its fine-tuning platform, and Anthropic’s API doesn’t offer it.
Start from: AI Opportunity Audit from $1,500
- Ahmedabad, India, since 2014
- 450+ projects in 15+ countries
- Fixed price, never hourly
- NDA and full code ownership
Start in three steps
- 1Send a short brief: what you need and by when (two minutes).
- 2Or book a free 20-minute call with a senior engineer.
- 3Get a written plan and fixed price within one business day.
Or WhatsApp +91 70161 48402
At a glance
Prompting, RAG and fine-tuning compared
| Prompt engineering | RAG (retrieval) | Fine-tuning | |
|---|---|---|---|
| What it changes | The instructions and examples you send | The information the model sees, retrieved from your data at question time | The model itself, trained on your examples |
| Fixes | Unclear instructions, wrong format, missing steps | Missing or out-of-date knowledge; answers that need citations | Consistent style, format or behaviour on a narrow task |
| Keeps up with new information | Only what you put in the prompt | Yes: update the documents, not the model | No: retrain to learn new facts |
| Cost to start | Lowest | Moderate: embeddings, a vector store and retrieval tuning | Highest: training data, evals and training runs |
| Running cost | Model usage | Model usage plus embeddings and search | Fine-tuned models can cost more per token (on OpenAI, 1.5–2× the base model) |
| Vendor advice | Start here (OpenAI, Google) | For knowledge the model lacks (OpenAI, Anthropic) | Only after evals and when prompting is not enough (OpenAI, Google) |
From OpenAI’s accuracy-optimisation and fine-tuning guides, Anthropic’s documentation and Google’s Vertex AI tuning guide, 24 November 2026.
Who offers fine-tuning
Fine-tuning availability in November 2026
Fine-tuning has become harder to buy. Check this before you plan a fine-tuned model.
| Platform | Fine-tuning status | Models |
|---|---|---|
| OpenAI API | Being wound down: closed to new users; eligible existing customers can create training jobs until 6 January 2027 | GPT-4.1 and GPT-4.1 mini; these base models and models tuned from them shut down on 14 January 2027 |
| Anthropic (Claude API) | Not offered; Anthropic says to ask your Anthropic contact | n/a |
| Claude on Amazon Bedrock | Available | Claude 3 Haiku only |
| Google Vertex AI | Available: supervised, preference and reinforcement tuning | Gemini 3.5 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite and 2.5 models (varies by method) |
| Google Gemini API and AI Studio | Not available; Google points to its enterprise platform | n/a |
| Amazon Bedrock reinforcement tuning | Available | Nova 2 Lite, gpt-oss-20B, Qwen3 32B |
From developers.openai.com, platform.claude.com, docs.cloud.google.com, aistudio.google.com and docs.aws.amazon.com, 24 November 2026. Availability changes often.
Costs to know
What RAG and long prompts cost to run
RAG adds embedding and search costs; long prompts add input tokens. Prompt caching cuts the cost of repeated context sharply.
| Item | Published price or discount | Source |
|---|---|---|
| OpenAI text-embedding-3-small | $0.02 per million tokens | OpenAI pricing |
| OpenAI text-embedding-3-large | $0.13 per million tokens | OpenAI pricing |
| Anthropic embeddings | No own embedding model; Anthropic points to Voyage AI | Anthropic embeddings guide |
| OpenAI prompt caching | On by default; cached input discounted up to 95% | OpenAI prompt caching guide |
| Anthropic prompt caching | Opt-in; cache reads cost 0.1× base input or less on current models; cache writes cost 1.25× (5 minutes) or 2× (1 hour) | Anthropic prompt caching guide |
| Google prompt caching | Implicit caching on by default for Gemini 2.5 and newer | Google caching guide |
| OpenAI fine-tuning (GPT-4.1) | $25 per million training tokens; tuned model input $3.00 and output $12.00 per million vs $2.00 and $8.00 for the base model | OpenAI pricing |
US dollars, standard tier, 24 November 2026. Flagship models from OpenAI, Anthropic and Google now accept about one million tokens of context, which makes “put it all in the prompt” viable for smaller document sets.
How to choose
Six questions that decide it
Is the problem missing knowledge?
If the model doesn’t know your products, policies or recent data, that is a retrieval problem: use RAG.
Is the problem behaviour or format?
If it knows enough but answers inconsistently, improve the prompt first; fine-tune only if that fails.
Must answers cite sources?
RAG can show which document an answer came from, which matters for support, legal and compliance use.
How often does the information change?
Frequent changes favour RAG: update the documents, not the model.
Do you have evals?
OpenAI says to invest in fine-tuning only after setting up evals. Measure before and after any change.
How much content is there?
Small document sets may fit in a long-context prompt with caching; large or changing libraries need retrieval.
How we build it
What a production AI assistant needs
RAG on your data
Retrieval over documents, databases and ticket history, with citations and access control.
Evals before launch
A test set of real questions, scored before and after every change, so improvements are measured, not guessed.
Guardrails and hand-off
Answers grounded in approved sources, refusal when unsure and hand-over to a person.
Model-agnostic design
We test OpenAI, Anthropic, Google and open models on your questions, and you can switch later.
Cost control
Caching, smaller models where they are good enough and usage limits from day one.
Fixed price, never hourly
A fixed-price AI Opportunity Audit from $1,500, then a proof of concept on your own content.
FAQ
RAG and fine-tuning questions, answered.
Ask an engineerLast updated by the Vibidsoft engineering team.
What is the difference between RAG and fine-tuning?
Is RAG better than fine-tuning?
Can I still fine-tune OpenAI models?
Can I fine-tune Claude?
Do I need RAG if models have a 1-million-token context window?
What does RAG cost to run?
How much does Vibidsoft charge to build an AI assistant?
Keep reading
Related services and guides
Not sure what your AI assistant needs?
Send us a few examples of questions it gets wrong. You get a written recommendation and a fixed price within one business day.
Sources (vendor documentation, read 24 November 2026) (13)
- OpenAI: optimizing LLM accuracy
- OpenAI: supervised fine-tuning (wind-down notice)
- OpenAI: pricing
- OpenAI: prompt caching
- Anthropic: glossary (RAG, fine-tuning)
- Anthropic: prompt engineering overview
- Anthropic: embeddings
- Anthropic: prompt caching
- Google Vertex AI: tune models
- Google AI Studio: model tuning
- Google AI Studio: caching
- Amazon Bedrock: supported models for customization
- Amazon Bedrock: reinforcement fine-tuning
