Skip to content
Free 20-minute strategy call with a senior engineer: AI, payments, eLearning or custom software

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

  1. 1Send a short brief: what you need and by when (two minutes).
  2. 2Or book a free 20-minute call with a senior engineer.
  3. 3Get a written plan and fixed price within one business day.
Send your enquiry

Or WhatsApp +91 70161 48402

At a glance

Prompting, RAG and fine-tuning compared

Prompt engineeringRAG (retrieval)Fine-tuning
What it changesThe instructions and examples you sendThe information the model sees, retrieved from your data at question timeThe model itself, trained on your examples
FixesUnclear instructions, wrong format, missing stepsMissing or out-of-date knowledge; answers that need citationsConsistent style, format or behaviour on a narrow task
Keeps up with new informationOnly what you put in the promptYes: update the documents, not the modelNo: retrain to learn new facts
Cost to startLowestModerate: embeddings, a vector store and retrieval tuningHighest: training data, evals and training runs
Running costModel usageModel usage plus embeddings and searchFine-tuned models can cost more per token (on OpenAI, 1.5–2× the base model)
Vendor adviceStart 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.

PlatformFine-tuning statusModels
OpenAI APIBeing wound down: closed to new users; eligible existing customers can create training jobs until 6 January 2027GPT-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 contactn/a
Claude on Amazon BedrockAvailableClaude 3 Haiku only
Google Vertex AIAvailable: supervised, preference and reinforcement tuningGemini 3.5 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite and 2.5 models (varies by method)
Google Gemini API and AI StudioNot available; Google points to its enterprise platformn/a
Amazon Bedrock reinforcement tuningAvailableNova 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.

ItemPublished price or discountSource
OpenAI text-embedding-3-small$0.02 per million tokensOpenAI pricing
OpenAI text-embedding-3-large$0.13 per million tokensOpenAI pricing
Anthropic embeddingsNo own embedding model; Anthropic points to Voyage AIAnthropic embeddings guide
OpenAI prompt cachingOn by default; cached input discounted up to 95%OpenAI prompt caching guide
Anthropic prompt cachingOpt-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 cachingImplicit caching on by default for Gemini 2.5 and newerGoogle 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 modelOpenAI 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 engineer

Last updated by the Vibidsoft engineering team.

What is the difference between RAG and fine-tuning?
RAG retrieves relevant passages from your own documents or data at question time and gives them to the model, so answers use current information and can cite sources. Fine-tuning retrains the model on examples, which changes its style or behaviour but doesn’t keep it up to date with new facts.
Is RAG better than fine-tuning?
For most business assistants, yes: RAG handles knowledge that changes, supports citations and doesn’t need training runs. Fine-tuning is better for consistent format or behaviour on a narrow task once prompting has been tried. Many teams never need fine-tuning.
Can I still fine-tune OpenAI models?
Only if you are an eligible existing customer. OpenAI’s documentation says it is winding down its fine-tuning platform, that it is no longer available to new users, and that eligible customers can create training jobs until 6 January 2027. GPT-4.1 and GPT-4.1 mini, and models fine-tuned from them, shut down on 14 January 2027.
Can I fine-tune Claude?
Not through Anthropic’s own API, which doesn’t currently offer fine-tuning. On Amazon Bedrock, fine-tuning is available for Claude 3 Haiku only.
Do I need RAG if models have a 1-million-token context window?
Not always. Small document sets can go straight into the prompt, and prompt caching makes repeated context much cheaper. RAG is still the better choice for large or frequently changing libraries, per-user access control and answers that must cite the exact source.
What does RAG cost to run?
Embeddings are cheap: OpenAI’s text-embedding-3-small costs $0.02 per million tokens. The main costs are model usage for answering, the vector store or search service, and the engineering to tune retrieval and evaluate answers.
How much does Vibidsoft charge to build an AI assistant?
We start with a fixed-price AI Opportunity Audit from $1,500, followed by a fixed-price proof of concept on your own content. The production build is then priced as fixed-price milestones, never by the hour.

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.

Book a callWhatsApp