RAG

RAG lets an agent look things up in your documents before it answers, so it quotes instead of guesses.

What is RAG?

Retrieval-augmented generation (RAG) means the agent searches your own documents first and answers from what it finds. A search step picks the most relevant passages, and the model writes its answer from those passages, with the source attached.

It is the difference between an open-book and a closed-book exam. Same brain, but one can check the page.

Why it matters

A language model on its own answers from memory, and that memory knows nothing about your prices, policies or contracts. It will still answer confidently. RAG turns a confident guess into a quote you can check.

How I work with it

I connect agents to your own documents, show the source for every answer, and let them say “I do not know” when nothing matches.

Rules of thumb

  1. Always show the source
  2. Keep documents up to date
  3. Allow “I do not know”

An example

A support agent gets the question “How long can customers return an item?”. It searches the returns policy, finds section 2 and answers “14 days after delivery”, with the section linked. If nothing matches, it says so and hands over to a person.

Try it yourself

Ask a question, then switch on the document search.

Want this in your team?

Get in touch