Guide
RAG vs fine-tuning
RAG gives an AI your documents at the moment it answers. Fine-tuning changes the model itself by training it on examples. Use RAG when the facts change or you need to point at the passage behind an answer, because you edit a document instead of retraining. Fine-tuning suits teaching a style or a task, not keeping a set of facts current.
See it run on a real handbook
The question, asked twice: "Can I work remotely?"
Today the search returns page 9:
handbook.pdf, page 9 Section 3.2 Remote work. You may work remotely up to two days a week. Tell your team which days in the shared calendar.
Then the policy changes. One edit to the handbook, and nothing is retrained. The same question now returns:
handbook.pdf, page 9 Section 3.2 Remote work. You may work remotely up to four days a week. Tell your team which days in the shared calendar.
The new passage is the answer the AI is handed, with its page beside it. A model fine-tuned on the old handbook would have to be trained again to know.
The sample is the free X-ray's handbook, 5 short pages. Nothing here is typed in by hand: the page runs the X-ray's own search and the free text splitter's own cuts.
They are not rivals
You can fine-tune a model to write in your voice and still use RAG to hand it the facts. The question is where the facts live: in the model, or in documents you can open.
The test that decides it
Change one fact in your documents and ask the question again. If the right answer needs no retraining and you can show the passage it came from, you want RAG.
Sources
- Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (2020)
- Fine-tuning (deep learning), Wikipedia
Keep going
Build the whole pipeline on your documents
Works with the AI you already use: Claude, ChatGPT, any. We do not make the model smarter. We make your pipeline visible.