# Retriever (RAG)

> The part of a RAG system that finds the best chunks for a question.

**Field:** Artificial Intelligence  
**Category:** Retrieval & Search  
**Also known as:** Retriever, Retrieval Step, Retrieval Component

## Think of it like

It is like a helper who gets the right books. Then the expert reads them.

## Definition

The retriever is the part of a RAG system that finds the chunks to show the model. It takes the question and searches the knowledge base. It can use meaning search, keyword search or both. It hands back a short, ranked list of the best chunks. The model then writes its answer from those. If the retriever misses, the model never sees the fact.

## Example

A user asks about refund rules. The retriever searches 8,000 chunks and passes the top 5 to the model, all from the refund policy.

## Why it matters

Most wrong RAG answers start with a bad search. Better search often helps more than a bigger model.

## Common mistake

Blaming the model for a wrong answer without checking what the retriever found. Look at the chunks first.

## Three principles

- **Question in.** Searches the knowledge base.
- **Chunks out.** A short, ranked list.
- **Check it first.** Misses here cause wrong answers.

## Related terms

- [Retrieval-Augmented Generation (RAG)](https://learn.benibix.com/term/ai/retrieval-augmented-generation)
- [Top-k Retrieval](https://learn.benibix.com/term/ai/top-k-retrieval)
- [Semantic Search](https://learn.benibix.com/term/ai/semantic-search)
- [Hybrid Search](https://learn.benibix.com/term/ai/hybrid-search)
- [Reranking](https://learn.benibix.com/term/ai/reranking)
- [Query Rewriting](https://learn.benibix.com/term/ai/query-rewriting)

![Left, the knowledge base is prepared ahead: files are parsed to clean text, cut into chunks and indexed. Right, a question is rewritten, then the retriever searches the index and passes the top k chunks to the model, which writes the answer.](https://learn.benibix.com/diagrams/ai3-rag-pipeline.svg)

---

Source: https://learn.benibix.com/term/ai/retriever
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
