What do you need the model to learn?
A support assistant needs current help articles and account policies to answer customer questions. It may also need a consistent format and tone. Access to facts and consistency of behavior are separate requirements.
Retrieval-augmented generation supplies relevant material when a question is asked. Fine-tuning changes the model using examples. Understanding that distinction helps you choose what to test first.
What each one changes
RAG changes what the model sees
With RAG, the model stays as it is. When a question comes in, the system first searches your own content: documents, tickets, product data, policies. It then passes the most relevant passages to the model along with the question, and the model writes its answer from that material.
Think of it as an open-book exam. The model does not need to remember your refund policy. It needs to find the right page and read it carefully.
Fine-tuning changes how the model behaves
Fine-tuning continues training a model on your own examples, usually pairs of input and ideal output. The model's weights change. After training, it tends to produce outputs that look like your examples: a certain format, a certain tone, a certain way of handling a narrow task.
This is closer to building a habit than to memorizing facts. Models do pick up some facts from fine-tuning, but unreliably, and they cannot tell you where a fact came from or notice when it went out of date.
Why knowledge problems belong to RAG
Freshness
Your prices change, your product ships new features, your policies get rewritten. With RAG, updating knowledge means updating the documents and re-indexing them, which can happen within minutes. With fine-tuning, new knowledge means a new training run, a new evaluation and a new deployment. Most teams do not retrain weekly, so a fine-tuned model drifts out of date quietly. Keeping a RAG index current is its own discipline, covered in keeping a RAG knowledge base up to date: document versions, deletions and permission changes all need to reach the index.
Citations
A RAG system knows which passages it used, so every answer can link to its source. Users can check the claim. Your team can trace a wrong answer back to an outdated document or a bad search result and fix the right thing. A fine-tuned model cannot point to where it learned something, because that information no longer exists as a separate piece.
Permissions
In most companies not everyone may read everything. HR documents, customer contracts and board materials have access rules. RAG can respect those rules at search time, only retrieving what the current user is allowed to see. Knowledge baked into model weights has no access control at all. If a fine-tuned model learned something, anyone who asks the right question can get it out.
Debugging
When a RAG answer is wrong, the failure is usually visible: the search returned the wrong passage, the document was outdated, or the passage was right and the model misread it. Each has a clear fix. When a fine-tuned model is wrong, investigating may require a review of the training data, which can take longer.
When fine-tuning does make sense
Fine-tuning is useful when examples can teach a consistent behavior that prompting alone has not achieved.
Consistent output formats
If every response must follow a strict structure, such as a particular JSON shape, a house report format or a fixed set of labels, fine-tuning can make a model far more reliable at it than prompting alone.
Narrow, repetitive tasks
Classifying support tickets into your categories, extracting the same fields from the same type of text, routing requests. When the task is narrow and you have many labeled examples, a fine-tuned smaller model can match a large general model on that one job.
Cost and latency at scale
A smaller fine-tuned model is cheaper and faster to run than a large general one. At low volume the difference rarely matters. At millions of calls a month, it can decide whether a feature pays for itself.
Tone and domain language
If a model keeps sounding generic, or stumbles over the vocabulary of your field, a modest amount of fine-tuning can fix the style. Prompting with good examples often gets most of the way there first, so it is worth trying before training anything.
How the costs differ
RAG costs are spread out. You build and maintain an ingestion pipeline and a search index, and each request carries extra input text, which means more tokens per call. The work is ongoing but predictable, and most of it is ordinary engineering.
Fine-tuning costs come in bursts. You need a dataset of good examples, which is usually the expensive part, because someone has to write or curate them. Then training runs, evaluations, and the same again every time the base model improves or your requirements change. Hosting a custom model can also cost more than calling a standard one, depending on the provider.
Neither is cheap if done properly. The question is which cost buys you the thing you need.
What data each one needs
RAG needs the documents you already have, cleaned up. That is often the hidden work: duplicate pages, outdated versions, PDFs exported from slides, wikis where half the pages contradict each other. A RAG system is only as good as the content it searches.
Fine-tuning needs examples of the behavior you want, typically hundreds to thousands of input and output pairs for a narrow task. If you do not already have them, creating them is a project of its own.
Combining them
The two approaches are not rivals. A common production setup uses retrieval to supply facts and a fine-tuned or carefully prompted model to shape the answer. For example, a support assistant might retrieve the relevant help articles and past resolved tickets, then pass them to a model tuned to answer in your support team's voice and format, always with links to the sources.
The order matters. Get retrieval right first, because most quality problems in knowledge-heavy products are retrieval problems. Add fine-tuning later, if evaluation shows the remaining errors are about behavior rather than missing information.
A checklist for deciding
Answer these about your use case:
- Does the model need facts specific to your company? If yes, you need RAG.
- Do those facts change more often than you would retrain a model? If yes, RAG again.
- Must users see where an answer came from? RAG.
- Do different users have access to different information? RAG with permission-aware search.
- Is the problem mainly format, tone or a narrow repetitive task? Fine-tuning is worth a look, after trying better prompts.
- Do you have hundreds of good input and output examples? Without them, fine-tuning is premature.
- Is cost per call or latency a real constraint at your volume? A smaller fine-tuned model may help.
If most of your answers point to RAG, start there. If you are adding an AI feature to an existing product rather than building a knowledge assistant, our LLM integration page covers model choice and integration.
Test with questions and source documents
Before choosing either approach, write down twenty real questions your users ask, along with the correct answers and where those answers live today. Then try them against a general model with the relevant documents pasted into the prompt. If the answers become good once the model has the right material, you have a retrieval problem, and RAG is the path. If the answers are factually right but in the wrong shape every time, you have a behavior problem, and fine-tuning may be worth it.
The next step is that twenty-question test. If it points to retrieval, our RAG development page describes how we build and evaluate these systems in production.


