What is retrieval-augmented generation

What is retrieval-augmented generation (RAG)?

· Glossary

Short answer

Retrieval-augmented generation (RAG) is a technique where an AI model fetches relevant documents from an external knowledge source at query time and uses them to generate a grounded answer. Instead of relying solely on what the model learned during training, RAG retrieves fresh, specific context and conditions its response on it.

A typical RAG pipeline turns a query into a vector, searches a knowledge base for the closest matching passages, and passes those passages to the model as context. The benefit is current, citable, source-anchored answers. The limit is that RAG is only as good as the knowledge base behind it.

That limit is worth naming plainly. A RAG agent bound to a knowledge base hits a ceiling on the questions a KB never documented, the long-tail intents that make up much of real support volume. Retrieving a passage is not the same as knowing whether the AI should act on this specific intent at all.

Aide, the AI-first customer service platform, uses retrieval where it fits, but leads with intent-first architecture: classification of every message against the team's own topics decides what gets automated, intent by intent, before any answer is generated. Each intent is test-gated on real historical conversations in the Agent Simulator, so retrieval errors are caught before deploy, not after. Grounded by intent, not bound by a knowledge base.

Frequently asked questions

RAG fetches external knowledge at query time and leaves the model unchanged, which makes it easy to update and audit. Fine-tuning bakes knowledge into the model's weights through additional training. RAG is generally preferred when facts change often or must be citable.

RAG retrieves answers but does not decide which customer intents should be automated, or verify that automation is safe before it ships. Intent-first architecture adds that governance layer: classify the intent, test it, then deploy only what passes.

About Aide

Aide is the AI-first customer service platform. Its self-improving AI agents resolve customer conversations and take action across orders, accounts and customer records, inside Zendesk, Gorgias or Front, or on their own with Aide Helpdesk and Aide Chat. They learn from your team's replies every night, and your team controls how far they go. What is Aide (aide.app)?

The AI-first customer service platform

Self-improving AI agents that resolve customer conversations and take action, under your full control. Every plan starts with a 7-day free trial.

Not ready yet? Get product updates by email