# Retriever

- **Canonical URL:** https://getaimath.com/dictionary/retriever/
- **Topics:** [Retrieval-Augmented Generation (RAG)](https://getaimath.com/dictionary/category/retrieval-augmented-generation-rag/)
- **Last updated:** 2026-11-25

## What is Retriever?

**In one sentence:** A retriever is the component that takes a question and returns the most relevant pieces of information.

It may use keyword search, vector search or both. Its quality strongly affects the final answer, because the model can only use what the retriever finds.

![RAG (Retrieval-Augmented Generation): The Open-Book Exam — Simple cartoon comparing an AI guessing from memory and making things up versus RAG: 1. Search your real documents, 2. Hand the exact page to the AI, 3. Get a factual answer with a page citation.](https://getaimath.com/diagrams/retrieval-augmented-generation-rag.png)
*Napkin Diagram (Retrieval-Augmented Generation (RAG)): Without RAG, AI answers from blurry memory; with RAG, it opens your real documents to the right page before answering.*

## What is an example of Retriever?

A retriever returning the 5 best paragraphs about refund rules for a customer question.

## Why does Retriever matter?

If retrieval misses the right information, even the best model cannot answer well.

## Related Concepts

- [Vector Database](https://getaimath.com/dictionary/vector-database/): A vector database is a database built to store embeddings and quickly find the ones most similar to a query.
- [Query Transformation](https://getaimath.com/dictionary/query-transformation/): Query transformation is rewriting a user's question to make it easier to search for.
- [Vector Index](https://getaimath.com/dictionary/vector-index/): A vector index is a special data structure that organizes embeddings so similar ones can be found quickly.
- [Query Expansion](https://getaimath.com/dictionary/query-expansion/): Query expansion adds related words or alternative phrasings to a search query to find more relevant results.
- [Embedding Generation](https://getaimath.com/dictionary/embedding-generation/): Embedding generation is turning chunks of text into embeddings using an embedding model.
- [Hybrid Search](https://getaimath.com/dictionary/hybrid-search/): Hybrid search combines keyword search and semantic vector search to get better results than either alone.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/retriever/)
