Retrieval & Agents

Retrieval-Augmented Generation

RAG

A technique that looks up relevant documents and feeds them to a model so its answers are grounded in real sources.

RAG pairs a language model with a search step: before answering, the system retrieves relevant passages from your own documents or database and hands them to the model as context. This grounds the response in specific, up-to-date, verifiable material instead of relying only on what the model memorized during training. It is the most common way to build AI that can answer questions over a company’s private knowledge, and it reduces hallucination.

Reference: Wikipedia: Retrieval-Augmented Generation