RAG vs fine-tuning: when should your AI read your documents, and when should it be trained?
What each approach changes in the model
Retrieval-augmented generation, usually called RAG, leaves the model itself unchanged. When a user asks a question, the system searches your documents, picks the passages most relevant to that question and places them in the prompt. The model then writes an answer based on that text. The knowledge lives in your files, not inside the model.
Fine-tuning works the other way round. You prepare example inputs with the ideal outputs for each, and run a training job that adjusts the model so it answers that way more reliably. The change lives inside the model. Fine-tuning is good at teaching habits such as tone, structure or a classification scheme. It is a poor place to store a large body of facts that will be updated.
The core test: is it a knowledge problem or a behaviour problem?
Start by asking what is missing when the model gets a question wrong. If it lacks facts, such as your refund policy, the current price list or what a contract says, the fix is usually retrieval. If it knows the facts but writes in the wrong shape, uses the wrong tone or misreads a category your staff always get right, the fix may be fine-tuning.
- Use RAG for product details, policies, contracts, manuals, meeting notes and anything a staff member would look up.
- Use fine-tuning for a fixed output format, a house writing style, or a classification task where you already have many correctly labelled examples.
- Use both when a task needs current facts presented in a fixed way.
Freshness: why retrieval is easier to keep current
Documents change every week. With RAG, you replace a file, re-index it, and the next answer uses the new text. Nothing is retrained. You can also remove a document that should no longer be used, which matters for withdrawn policies and expired contracts.
With fine-tuning, a changed fact means preparing new examples, running another training job and testing the result again. Older habits can linger in the model after an update. That cycle suits stable behaviour. It is slow for information that moves.
Cost drivers and the data each approach needs
RAG costs come from storing and searching your documents, running the model on the passages it receives, and maintaining the pipeline that splits and indexes files. The data you need is the documents themselves, plus a set of real questions to test retrieval. Permissions matter as well. A search should never return a passage the asking user is not allowed to read.
Fine-tuning costs come from preparing training examples, the training run, evaluating each version and hosting a custom model where the provider allows it. The data you need is a curated set of input and output pairs, usually built by reviewing real cases. Check current pricing and fine-tuning terms on each provider's official pricing page, because they change.
Why most companies start with RAG
RAG is quicker to test. Connect a modest document set, ask the questions your staff actually receive, and look at where answers fail. Many failures are retrieval problems, such as long files split badly or missing titles and dates, and they are fixed without training anything.
Start with RAG, measure it, and consider fine-tuning only when you can name a specific behaviour that better instructions and better retrieval cannot fix. Writing down that behaviour, with examples, is the cheapest decision you can make before spending money on training.
How Hundred Seas helps
Hundred Seas is a product studio in Taipei. We build AI agents and AI CRM systems on Claude and on OpenAI models. For each task we choose the model on cost, speed, quality and where the client's data has to stay, and we decide whether that task needs retrieval, further training or neither. We are a registered partner in Anthropic's Claude Partner Network and an OpenAI partner.
Our work starts with a scope step of about one week at a fixed price, ending in a written plan and a firm quote. The build follows in weekly releases of working software, and a monthly run plan keeps the system current as your documents change.
Questions
- Is RAG cheaper than fine-tuning?
- It is often cheaper to start with, because you avoid training runs and can change documents without a model change. Running costs depend on how much text each answer uses and how often the system runs. Compare both approaches on a sample of your real questions, using current prices from each provider, before you decide.
- Can fine-tuning teach the model my company's facts?
- It can reinforce facts that appear in the training examples, but it is a weak way to store a large or changing body of information. The model may still answer from memory with confidence. For facts that must be accurate and current, retrieval with citations gives you a source a person can check.
- Do I need both RAG and fine-tuning?
- Usually not. Many business assistants run on retrieval and careful instructions alone. Some teams add fine-tuning later for a narrow, stable task such as a fixed output format. Add it only after tests show that retrieval and prompting cannot reach the quality you need.
- How much training data does fine-tuning need?
- The quality and variety of examples matter more than the raw count. Fine-tuning needs curated input and output pairs that show the behaviour you want. If you cannot yet write those examples clearly, you are not ready to fine-tune, and retrieval is the better place to start.
- Which option keeps my data safest?
- Neither is safe by default. In both cases your text is sent to the model provider that runs the system. Read the provider's current data use terms, limit each task to the records it needs, enforce document permissions at search time, and ask your vendor where data is processed.