RAG is not training a model
This is the most common confusion.
Training modifies the model with your data, costs a lot and freezes the knowledge at training time. RAG leaves the model untouched and passes it the relevant documents with every question. That is why, with RAG, fixing an article today changes the answer today.
Why it matters
It is what lets an AI system talk about your product without making it up.
It is also what makes your documentation the ceiling. The model cannot answer better than what is written, and if the wrong passage is retrieved the answer will be flawless and wrong.
How it works, in four steps
The first two happen once, when the content is prepared.
The last two repeat on every question.
- The documentation is split into passages.
- Each passage becomes a vector that represents its meaning, the embedding.
- When a question arrives, the passages closest to it are retrieved.
- Those passages go to the model, which writes the answer from them.
Why it searches by meaning, not words
Because customers do not use your words.
If your article says "retention policy" and the customer writes "how long do you keep my data", exact matching finds nothing. Vector search does, because it compares meanings.
Where it fails
In retrieval, nearly always, not in the writing.
If the wrong passage comes back, the model writes a convincing answer based on it. That is why most of the work of improving one of these systems goes into what gets retrieved.
What RAG does not solve
Data that lives in no document.
Which plan this customer is on, how much quota is left, whether the last payment went through. That is not retrieved from documentation, it is looked up in your system. It is the difference between a documentation chatbot and an agent.
