Skip to content
Glossary

Retrieval-augmented generation (RAG)

An AI method that first searches trusted sources for passages relevant to a question, then gives them to a language model so its answer is based on those facts.

By Syed Ali · Updated

What RAG means

Retrieval-augmented generation (RAG) is the standard way to make a large language model answer from your facts instead of its general training. The name describes the steps: retrieve relevant information, augment the prompt with it, then generate the answer.

In support, the sources are usually help center articles, resolved past tickets, internal docs and product data. When a customer asks how to export their invoices, the system finds the export article and two past tickets on the same question, then writes the reply from them.

RAG is the most common way to achieve AI grounding.

How RAG works, step by step

  1. Prepare the sources. Articles and tickets are split into passages and indexed, often as embeddings in a vector database.
  2. Search. The customer's question is used to find the most relevant passages, usually by semantic search that matches meaning, not just keywords.
  3. Rank and filter. The best passages are kept. Good systems prefer recent, trusted sources and skip duplicates.
  4. Build the prompt. Instructions, the ticket and the retrieved passages go to the model together.
  5. Generate. The model writes the answer from those passages.
  6. Check or hand off. If the passages did not cover the question, the system should say so and escalate.

Where RAG goes wrong

  • Bad retrieval. The right article exists but is not found, so the model answers from the wrong one.
  • Stale sources. An outdated article produces a confidently outdated answer.
  • Conflicting sources. Two articles disagree and the model picks one.
  • Gaps. Nothing relevant exists, and the model fills in. This is the root of most AI hallucinations.

Most RAG quality problems are content problems. Fixing the article fixes every future answer.

How to evaluate a RAG system

  • Ask questions you know the answer to and check which sources it cited.
  • Ask questions your sources do not cover and see whether it admits it.
  • Update an article and test how quickly the answer changes.

RAG in practice

For a support team, RAG means your help center and past tickets become the AI's memory. Keeping them current matters more than the model choice.

Pluno's Deflection AI searches the ticket's knowledge hub, follows any research order you write in a workflow, prefers recent past tickets and skips merged ones, and escalates when it cannot find enough. The knowledge overview docs show which module reads which source.

Frequently asked questions

It is a way of building AI answers in two steps. First the system retrieves relevant passages from your own sources, such as help center articles. Then a language model writes the answer using those passages.

A language model alone does not know your product, prices or policies, and it may invent them. RAG gives it your current facts at the moment it answers, so replies match what your team would say.

Fine-tuning changes the model by training it on examples. RAG leaves the model unchanged and feeds it the right documents per question. RAG is easier to keep current, since updating an article updates the answers.

No. It reduces them a lot, but the model can still misread a passage, or the search can return the wrong one. Instructions to answer only from the sources, and to escalate when they are missing, close most of the gap.