RAG vs Fine-Tuning for AI Chatbots: How to Choose
Retrieval keeps chatbot answers tied to documents you can edit; fine-tuning changes model behavior. Compare cost drivers, upkeep and fit for support.
- Updated
- Reading time
- 16 min read
11 sections
RAG
vs
Fine-Tuning
For a support chatbot, start with Retrieval-Augmented Generation (RAG): it answers from documents you can edit today and lets you check each answer against its source. Fine-tuning changes how a model behaves (tone, format, labels), not what it knows this week, and the largest hosted platform for it is closing: OpenAI stops new fine-tuning jobs for existing customers on January 6, 2027.
The choice matters more than most teams realize. It affects how quickly you can launch, how much you'll spend on infrastructure, how easy updates are, and ultimately how accurate your chatbot's answers will be. Pick the wrong approach and you end up with a system that's expensive to maintain, slow to update, or prone to hallucinating answers that sound confident but are flat-out wrong.
This guide breaks down both approaches in depth, how they work under the hood, what they cost, when each one shines, and when a hybrid of the two is worth the extra work.
How this guide was put together: desk research of public documentation (OpenAI's fine-tuning guide, the LangChain and LlamaIndex docs, and retrieval research), checked November 12, 2026, plus Chatsy's product knowledge. Chatsy publishes this guide and sells a retrieval-based support agent. We did not run a benchmark for this article, so it compares cost drivers and trade-offs rather than measured accuracy.
What is RAG?
RAG (Retrieval-Augmented Generation) combines a retrieval system with a large language model. Instead of relying solely on what the model "knows" from its pre-training data, RAG gives the model access to an external knowledge base at query time. When a user asks a question:
- The system searches your knowledge base for relevant content
- Retrieved content is added to the prompt as context
- The LLM generates an answer using that context
Think of it as giving the AI a "cheat sheet" for every question.
User Question → Search Knowledge Base → Add Context → Generate AnswerHow retrieval works under the hood
The retrieval step is where most of the engineering effort goes. Here's what actually happens:
Embedding and indexing. Before your chatbot can retrieve anything, your documents need to be converted into numerical representations called embeddings. An embedding model (like OpenAI's text-embedding-3 or open-source alternatives like E5 or BGE) converts text into high-dimensional vectors that capture semantic meaning. These vectors are stored in a vector database optimized for similarity search.
Chunking. You can't embed an entire 50-page PDF as a single vector: the meaning gets diluted. Instead, documents are split into smaller chunks, typically 200–1,000 tokens each. Chunking strategy matters: split too aggressively and you lose context; keep chunks too large and retrieval precision drops. Overlapping chunks (where each chunk shares some text with its neighbors) help preserve context across boundaries.
Query and search. When a user sends a message, that query is also embedded into the same vector space. The system then performs a similarity search, typically cosine similarity or dot product, to find the chunks most semantically related to the question. The best systems use hybrid search, combining vector similarity with traditional keyword matching (BM25) to catch both semantic meaning and exact terms like product names or error codes.
Reranking. The initial retrieval might return 20–50 candidate chunks. A reranking model (a cross-encoder) then scores each chunk against the original query more carefully, selecting the top 3–5 most relevant results. This two-stage approach: fast retrieval followed by precise reranking, balances speed with accuracy.
The retrieved chunks are then injected into the LLM's prompt alongside the user's question, and the model generates a grounded response.
What is Fine-Tuning?
Fine-tuning modifies the language model itself by training it on your specific data. The model "learns" your content, tone, and patterns and can recall them without external retrieval.
Your Data → Training Process → Custom Model → Generate AnswerWhat fine-tuning actually involves
Fine-tuning isn't just "uploading your docs." It's a training process where you adjust the weights of an existing pre-trained model using your own dataset. Here's what that looks like in practice:
Training data preparation. You need structured examples, typically prompt-completion pairs or multi-turn conversations formatted in a specific schema. For a customer support chatbot, that might mean thousands of real support conversations cleaned and formatted as input-output pairs. Quality matters enormously: noisy, inconsistent, or contradictory examples lead to a model that behaves unpredictably.
Data volume requirements. OpenAI's supervised fine-tuning guide sets a minimum of 10 examples and recommends "starting with 50 well-crafted demonstrations and evaluating the results," noting that the right number "varies greatly." Covering the range of real support questions usually takes far more. Collecting, cleaning and formatting this data is often the slowest part of the work.
Provider availability. Check that your provider still offers fine-tuning before you plan around it. As of November 12, 2026, OpenAI's guide says it "is winding down the fine-tuning platform," that it "is no longer accessible to new users," and that eligible existing customers can create training jobs until January 6, 2027. Fine-tuned models stay available for inference only until their base model shuts down, and OpenAI's deprecations page lists GPT-4.1 and GPT-4.1 mini, the base models in its fine-tuning guide, for shutdown on January 14, 2027. Open-weight models can still be fine-tuned on your own or rented hardware.
Training costs and time. With a hosted provider you pay per training token, and running the custom model may carry its own per-token price. With an open-weight model you pay for GPU time, storage and the engineering to serve the model. Training runs take hours to days depending on model size and dataset. Price both against your provider's current rate card before you commit.
Updates and retraining. Here's the critical trade-off: when your knowledge changes, the fine-tuned model doesn't automatically know. You need to prepare new training data, run another training cycle, validate the results, and deploy the updated model. For businesses where information changes weekly, pricing, product features, policies, this cycle becomes a significant operational burden.
Head-to-Head Comparison
| Factor | RAG | Fine-Tuning |
|---|---|---|
| Setup Time | Days for a first version | Weeks, mostly data preparation |
| Cost | Retrieval index + model calls | Training runs + custom-model usage or hosting |
| Updates | Instant (update docs) | Requires retraining |
| Accuracy | Depends on retrieval finding the right passage | Good on trained patterns, weak on facts that changed |
| Hallucination Risk | Lower when the right passage is retrieved | Higher for facts (no source to check) |
| Scalability | Easy to add content | Retraining needed per update |
| Transparency | Can cite sources | Black box |
| Latency | Adds a search step | No search step |
| Maintenance | Update knowledge base | Retrain periodically |
| Tone Control | Prompt-based | Deeply embedded |
When to Use RAG
RAG is the right choice when:
1. Your content changes frequently
Product documentation, pricing, policies, and FAQs change regularly. RAG lets you update the knowledge base without retraining, upload the new document and the chatbot uses it once it is processed. For most businesses, this alone makes RAG the default starting point.
2. You need source attribution
When customers ask about policies or technical details, citing the specific document builds trust. RAG systems can point to the exact paragraph or page where the answer came from, which is invaluable for compliance-sensitive industries and for reducing hallucination risk. Fine-tuned models can't do this, they generate from internalized knowledge with no paper trail.
3. You're starting out
RAG is faster to implement and iterate on. You can go from uploading your documentation to a testable chatbot without collecting a training set. Start here, then consider fine-tuning for specific gaps once you have real usage data showing where the chatbot underperforms.
4. You have diverse content types
RAG handles different document types, help articles, FAQs, support tickets, product specs, PDF manuals, without special training for each. The retrieval system treats them all as searchable content.
5. Your knowledge base is large or growing
Organizations with hundreds or thousands of documents benefit from RAG's ability to scale without proportional cost increases. Adding a new product line's documentation is as simple as indexing new files.
When to Use Fine-Tuning
Fine-tuning makes sense when:
1. You need specific behaviors
Training on conversation examples can teach the model your brand voice, escalation triggers, or specific response formats. If your support team always follows a particular greeting structure, acknowledgment pattern, or sign-off style, fine-tuning bakes those behaviors in more reliably than prompt instructions alone.
2. Domain expertise is critical
Medical, legal, financial, or highly technical domains benefit from fine-tuning on domain-specific data. A model fine-tuned on radiology reports will understand specialized terminology and abbreviations more naturally than a general model prompted with context. The key is that the domain knowledge is stable, medical terminology doesn't change week to week.
3. Speed is paramount
A fine-tuned model skips the retrieval step. For applications where every fraction of a second matters, removing the search and reranking step can help. In most chat, though, the model's own generation time dominates, so measure before you assume a gain.
4. You have stable, core knowledge
Information that rarely changes is a good candidate for fine-tuning. Industry regulations, foundational domain concepts, or standardized procedures that remain consistent for months or years can be safely embedded into the model's weights.
5. You need consistent output formatting
If your chatbot needs to return structured data: JSON responses, specific template formats, or standardized classification labels, fine-tuning is often more reliable than prompt engineering for getting consistent output structure.
The Best Approach: Hybrid
In practice, the RAG vs. fine-tuning decision isn't always binary. Some teams use both, each for what it does best.
A common split:
- RAG for knowledge: docs, FAQs and product info are retrieved per question, so answers follow the current content
- Fine-tuning for behavior: response style, format and escalation phrasing are trained into the model
- Base model for reasoning: the underlying model handles general understanding and language
Chatsy does not fine-tune models. Its agents use retrieval for knowledge, and you shape behavior with the tone you pick during setup (Friendly, Professional or Concise), the Response instructions field in the agent's AI settings, and the model you choose. For most support teams, that prompt-level control covers what fine-tuning would add.
How a hybrid system works in practice
Consider a customer support chatbot for a SaaS company. When a customer asks "How do I export my invoices?", the system:
- Retrieves the current invoice export documentation via RAG (which might have been updated last week when you added a new export format)
- Generates the response using a model that's been fine-tuned to follow your brand voice, use the right level of technical detail for support context, and format steps clearly
- The base model's reasoning ability handles follow-up questions, edge cases, and connecting information across multiple retrieved documents
No single approach could do all three well on its own. RAG alone might give accurate but robotic answers. Fine-tuning alone would describe the old export options. The hybrid aims for both, at the cost of maintaining a training pipeline as well as an index.
Implementation Tips
For RAG:
- Chunk wisely: 500–1,000 tokens per chunk works best for most use cases. Experiment with overlap (50–100 tokens) to preserve context at boundaries
- Use hybrid search: Combine semantic vector search with keyword search (BM25). Semantic search catches meaning; keyword search catches exact terms like product names or error codes
- Rerank results: Use a cross-encoder reranking model to improve relevance. The initial retrieval casts a wide net; reranking narrows it down
- Include metadata: Attach document titles, categories, and dates to chunks. This helps the model understand context and helps you filter results (e.g., only retrieve from the latest version of a document)
- Test retrieval independently: Before blaming the LLM for bad answers, check whether the retrieval step is returning the right chunks. Poor retrieval is the most common source of poor RAG performance
For Fine-Tuning:
- Quality over quantity: 1,000 great examples beats 10,000 mediocre ones. Each example should represent the exact behavior you want
- Diverse examples: Cover edge cases, different phrasings of similar questions, and various levels of complexity
- Validate before training: Clean data = better model. Remove contradictory examples, fix formatting inconsistencies, and ensure labels are accurate
- Version control: Track training data and model versions so you can reproduce results and roll back if needed
- Evaluate systematically: Use held-out test sets and automated evaluation metrics, don't just rely on vibes
Practical Considerations
Cost Comparison
We don't publish dollar ranges here, because they depend on your provider, model and volume. These are the cost lines to price:
| Cost line | RAG | Fine-tuning |
|---|---|---|
| Setup | Indexing your content, building retrieval | Collecting, cleaning and formatting training examples; training runs |
| Monthly running | Search index plus model calls (prompts are longer because of retrieved passages) | Model calls on the custom model, or GPU hosting for an open-weight model |
| Each content update | Re-index the changed documents | New training data, a new training run, evaluation and redeploy |
The update line is where RAG pulls ahead. Updating a retrieval index means re-indexing the changed documents. Updating a fine-tuned model means preparing new examples, running another training job, validating the output and redeploying. For teams that change their documentation often, that difference adds up.
Latency
RAG adds a retrieval step before the model generates a response. Fine-tuned models skip it. In practice, total response time is usually dominated by the model writing the answer, so the retrieval step is often a small share. Measure it on your own stack. Streaming responses further minimize the perceived latency difference.
Maintenance burden
RAG systems require maintaining a vector database, keeping your document pipeline running, and monitoring retrieval quality. Fine-tuned models require managing training pipelines, storing model versions, and scheduling periodic retraining cycles. For most teams, RAG maintenance is lighter, particularly when using a managed platform like Chatsy that handles the infrastructure.
Our Recommendation
Start with RAG. It's faster to implement, easier to debug, and more flexible. You can launch a testable chatbot quickly, see which questions it struggles with, and iterate from there. Add fine-tuning later for specific behaviors or performance optimization once you have enough real-world conversation data to train on.
For most customer support, knowledge base and documentation use cases, RAG alone, done well, is enough. Fine-tuning becomes valuable when you need deep behavioral customization or operate in a highly specialized domain with stable knowledge.
Chatsy is a retrieval-based option you don't have to build. You add knowledge as web pages (one page, a list of links, or a whole-site crawl on Hobby and above), uploaded files (TXT, HTML, PDF, DOC, DOCX, MD or CSV, up to 25 MB each), written question-and-answer pairs, or articles from your Chatsy help center. Agents answer from those sources with the model you choose, and the Knowledge page lists the questions an agent struggled with so you can fill the gaps. Refreshing a source is manual: you re-read the page or replace the file. There is no fine-tuning.
See how to train an agent for the steps and pricing for plan limits.
Want to dive deeper? Read our guides on vector search, hybrid search, training your chatbot on documentation, and preventing AI hallucinations.
When this approach is wrong
RAG vs fine-tuning is the right framing for most support and knowledge bots. Here is when the framing breaks:
- You actually need a different shape entirely: agentic tool-use, function calling, or workflow automation, not knowledge retrieval
- You are building a creative or generative product (writing, code completion) where retrieval adds little value
- Your data changes once a year, where prompt engineering plus a static doc would beat both RAG and fine-tuning
- Your data is so small (under 50 documents) that the system prompt itself can carry the full corpus
- Your data is purely structured (SQL tables, customer records), where text-to-SQL or function calls outperform RAG
- You have no eval pipeline, in which case picking either approach is guessing rather than engineering
- You are choosing between RAG and fine-tuning because the title sounds important: many production support systems use retrieval alone, and fine-tuning only where tests show prompts fall short
If you cannot articulate what you would measure to know if RAG is "working," step back and define quality before architecture.
Frequently Asked Questions
Is RAG or fine-tuning better for customer support?
For most support use cases, RAG is the better start: it needs no training set, it is cheaper to maintain, it updates as soon as you re-index changed docs, and its answers can be checked against the retrieved source. Fine-tuning makes sense when you need deeply embedded brand voice, stable domain expertise (e.g., medical, legal), or consistent structured output formats.
How do RAG and fine-tuning costs compare?
It depends on your provider and volume, so price the lines yourself. RAG costs a search index plus model calls, and updates only need re-indexing. Fine-tuning adds data preparation and training runs, possibly a separate per-token price for the custom model, and another training run each time knowledge changes. Also check that your provider still offers fine-tuning: OpenAI is winding its platform down.
Can you combine RAG and fine-tuning?
Yes. A common split is to use RAG for knowledge (docs, FAQs, product info) so answers stay grounded and current, and fine-tuning for behavior (brand voice, escalation rules, response style). The base LLM handles reasoning and fluency. Add fine-tuning only if tests show that prompt instructions cannot get the behavior you need.
When should I fine-tune instead of using RAG?
Fine-tune when you need specific behaviors (brand voice, escalation triggers), domain expertise with stable knowledge (medical, legal, financial), speed-critical inference (no retrieval step), or consistent output formatting (JSON, templates). If your content changes frequently (pricing, policies, product features), RAG is the better choice because updates only need re-indexing.
What is RAG (Retrieval-Augmented Generation)?
RAG combines a retrieval system with a large language model. Instead of relying on the model's pre-trained knowledge, RAG searches your knowledge base at query time, adds relevant content to the prompt, and the LLM generates answers from that context. Think of it as giving the AI a "cheat sheet" for every question, answers are grounded in your actual docs, not the model's memory.