# What is Modular RAG? Definition and meaning

Treats retrieval, routing, memory and generation as modules that can be recombined for each use case.

## Definition

**Modular RAG**: Treats retrieval, routing, memory and generation as modules that can be recombined for each use case.

In short: RAG assembled from swappable components.

## When it is used

Building retrieval systems that adapt across data types and tasks.

## Learn more

The full guide to **[Modular RAG](/tools/modular-rag)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [Model monitoring](/glossary/model-monitoring) · Next term: [MongoDB](/glossary/mongodb)
