New Patterns
The organizational structure of Modular RAG is highly adapt-
able, allowing for the substitution or rearrangement of mod-
ules within the RAG process to suit specific problem contexts.
Naive RAG and Advanced RAG can both be considered as
being composed of some fixed modules. As illustrated in the
figure 3, Naive RAG primarily consists of the “Retrieve” and
“Read” modules. A typical pattern of Advanced RAG builds
upon the foundation of Naive RAG by adding “Rewrite” and
“Rerank” modules. However, on the whole, modular RAG
enjoys greater diversity and flexibility.

Current research primarily explores two organizational
paradigms. The first involves adding or replacing modules,
while the second focuses on adjusting the organizational flow
between modules. This flexibility enables tailoring the RAG
process to effectively address a wide array of tasks.
RAG forLargeLanguageModels-ASurvey