What is retrieval-augmented generation (RAG)?

Retrieval-augmented generation (RAG) is a technique in which an AI system first retrieves relevant information from trusted sources, such as documents, knowledge bases or databases, and then gives it to a language model to generate an answer. This grounds responses in current, company-specific facts and allows sources to be cited.

How RAG works

  1. User asks a question.
  2. The system searches sources (often with vector embeddings).
  3. Top passages are added to the prompt.
  4. The model writes an answer using them.
  5. Sources are cited.

Strengths and limits

StrengthsLimits
Uses current dataOnly as good as retrieval
Cites sourcesMisses relationships across records
No retrainingContext window limits

Beyond basic RAG

GraphRAG and knowledge-graph approaches add relationships; agentic RAG lets the agent decide what to retrieve next.

Frequently Asked Questions

Language

Certified Secure

secure