Glossary · RAG

What Is Retrieval-augmented generation (RAG)? Definition and Examples

Facts checked November 16, 2026 Last changed November 16, 2026

Definition

Retrieval-augmented generation (RAG) is a technique where an AI model first retrieves relevant passages from a trusted source, then writes its answer using those passages.

A large language model on its own answers from patterns learned during training, which does not include your return policy or your latest pricing. RAG fixes this: when a question arrives, the system searches your documents (help articles, web pages, PDFs), passes the best-matching passages to the model, and instructs it to answer from them.

For support bots, RAG is the standard way to keep answers specific to the business and current: update the article and the bot's answer changes, with no model retraining.

RAG reduces hallucinations but does not eliminate them. Retrieval can miss the right passage, or the model can misread it. Clear, well-structured source content and showing the source link with each answer both help.

Example

A customer asks "Do you ship to Norway?" The system retrieves the shipping-countries article, and the bot answers "Yes, delivery to Norway takes 4–6 business days," quoting that article.

How Yaplet helps

The Yaplet AI agent answers from your website content and knowledge base, so its answers are based on your own information rather than general web knowledge.

Questions

Frequently asked

Why do support chatbots use RAG instead of fine-tuning?

RAG is cheaper and faster to update: change a document and the answers change. Fine-tuning bakes knowledge into the model, which is slow to update and harder to trace back to a source.

Does RAG stop AI from making things up?

It reduces the risk significantly but does not remove it. Good source content, instructions to say "I don't know", and a human handoff are still needed.

Still have a question?

Let Yaplet answer your customers

Live chat, an AI agent that answers from your own website, and one inbox for every channel. Free plan, no card.

  • Free forever
  • No card needed

Not ready to sign up? Test the AI on your own website first →