AI Compare Ninja AI Compare Ninja

Compare AI tools. Use prompts and skills.

Pricing market
Automatic
Language
EN

What is RAG (retrieval-augmented generation)?

Also called: Retrieval-augmented generation

With RAG, the AI first looks up matching passages in your documents and answers based on them. It relies on your facts rather than only its training.

The AI looks up matching documents and answers with reference to sources
Illustration: AI-generated · AI Compare Ninja · CC BY 4.0

Example

A company assistant answers questions about the holiday policy and shows the passage in the handbook.

For pros

Documents are split into chunks, stored as embeddings and retrieved by similarity search for each question. Quality depends heavily on chunking, retrieval and citations.

Related prompts, skills, agents and tools

Sources: arXiv 2005.11401, Wikipedia · Checked on 19 October 2026

Written by AI Compare Ninja with AI assistance and edited by us. Every explanation is our own text.