Skip to content

What RAG is, and when your chatbot needs it

A language model knows a lot, but not your refund policy. Retrieval-augmented generation is how an assistant answers from your own documents, and shows where the answer came from.

By ArtificialZeal · · 2 min read

A language model has read a great deal of public text, but it has never seen your price list, your policies or last month's contract. Ask it about them and it will still answer, fluently and sometimes wrongly. Retrieval-augmented generation, or RAG, is the common way to fix that.

How it works, in two steps

First, the system searches your own content for the passages most relevant to the question. Then it gives those passages to the model and asks it to write an answer from them. The model does the wording; your documents supply the facts.

Because the answer is built from specific passages, the assistant can show them. A reader can click through and check, which matters far more than a confident tone.

When you need it

You need retrieval when the right answer lives in your content rather than in general knowledge: support questions, internal policies, product manuals, contracts. You also need it when content changes often, because updating a document is much cheaper than retraining a model.

You may not need it for work that uses no private facts at all, such as rewriting a paragraph or sorting messages by topic.

What decides the quality

Most weak assistants fail at the search step, not the writing step. If the right passage is not found, no model can answer well. So the work is mostly unglamorous: clean source documents, sensible splitting of long files, access rules so people only see what they are allowed to, and a clear instruction to say “I don't know” when nothing relevant turns up.

How to tell if it works

Collect real questions your customers or staff ask, with the answers you would accept. Run the assistant against them before launch and after every change. A plain list of what it gets right and wrong tells you more than any demo, and it shows you which documents need fixing.

No assistant is right every time. A good one is grounded in your content, shows its sources, and hands over to a person when it isn't sure.

Working on something similar?

Tell us about it. We reply within one business day.

Book a free call

Keep reading

  • AI

    What a voice AI assistant can and can't do on your phone line

    A voice assistant can answer routine calls at any hour. It should not pretend to handle everything. Where it helps, where it should hand over, and what to test before it takes a real call.

    ArtificialZeal · · 1 min read

  • AI

    AI agent or simple automation? How to choose

    Not every repetitive task needs an AI agent. A short way to decide between a rule, a script and an agent, and how to keep a person in control of the parts that matter.

    ArtificialZeal · · 2 min read