§ 00 / apichatbot / rag or fine-tuning

RAG or fine-tuning? For answers from your documents, RAG.

There are two ways to make an AI model know your business. Fine-tuning retrains the model on examples. RAG leaves the model as it is and hands it the right excerpts from your documents at each question. For a chatbot that must answer from your price list and your policies, RAG is almost always the right choice. Here is why, and when it is not.

what it is
a comparison, in plain words
RAG
the model reads your documents at each question
fine-tuning
the model is retrained on your examples
APIchatbot
RAG, with sources
§ 01 / the difference

An open-book exam, or studying the night before.

01 /rag

RAG: the open book

Your documents are indexed. At each question, the few relevant excerpts are found and given to the model, which answers from them and can name the document.

02 /fine-tuning

Fine-tuning: learned by heart

The model is retrained on hundreds or thousands of examples. What it learned is blended into the model, so it cannot say which document an answer came from.

03 /both

The two can be combined

A fine-tuned model can still read documents through RAG. For most small businesses, RAG alone does the job.

§ 02 / side by side

What happens the day a price changes.

a price changes
RAG: replace the document, the next answer is right. Fine-tuning: retrain the model.
sources
RAG: each answer can name the document and the page. Fine-tuning: there is no source to show.
made-up answers
RAG: it can be told to refuse when the documents do not cover the question. Fine-tuning: the model answers from memory, right or wrong.
your data
RAG: the documents stay in your index and the model sees a few excerpts per question. Fine-tuning: your data is used to train a model.
to start
RAG: the documents you already have. Fine-tuning: a prepared set of example questions and answers.
best for
RAG: facts that change, such as prices, policies and procedures. Fine-tuning: a style, a format or one narrow task done the same way every time.
§ 03 / to be fair

When fine-tuning is the better tool.

§ 04 / questions

Before you write.

Is RAG cheaper than fine-tuning?

For a chatbot on your documents, usually yes, to start and to maintain. There is no training run, and an update is a document to replace.

Can a RAG chatbot still make mistakes?

Yes. It can pick the wrong excerpt or misread a dense table. That is why APIchatbot is tested on your own reference questions before it goes live.

Which one does APIchatbot use?

RAG. Your documents are indexed, and each answer comes from the excerpts found, with the source.

Do I have to choose myself?

No. You describe what the chatbot must answer; choosing the technique is my job.

§ 05 / related

Where to go from here.

§ 06 / next step

Your documents already have the answers.

A short call, free. You leave knowing what it would answer, what it would refuse, and what it would cost.

Every engagement is quoted after a short scoping call.