Modular RAG: Transforming RAG Systems into LEGO-like Reconfigurable Frameworks
Yunfan Gao, Yun Xiong, Meng Wang, Haofen Wang
Tongji University · Fudan University
Key points
From the paper's conclusion- We formalize over 40 specialized operators within eight L1 modules and further summarize typical RAG design patterns, including linear, conditional, branching, and loop, to model the orchestration of retrieval and generation processes.
Abstract
Retrieval-Augmented Generation (RAG) has substantially improved the performance of Large Language Models (LLMs) on knowledge-intensive tasks. While recent advances have introduced sophisticated retrievers, orchestration mechanisms, and optimization strategies that move beyond the naive retrieve-then-generate approach, a unified paradigm for systematically designing and optimizing RAG systems across diverse tasks remains lacking. This paper introduces Modular RAG, a unified paradigm that organizes RAG systems into a three-layer structure of modules, submodules, and operators. We formalize over 40 specialized operators within eight L1 modules and further summarize typical RAG design patterns, including linear, conditional, branching, and loop, to model the orchestration of retrieval and generation processes. Through extensive experiments, we demonstrate the adaptability of different RAG workflows to typical tasks. We further introduce node-level diagnostics to identify performance bottlenecks and quantify the trade-offs between efficiency and effectiveness. By establishing a unified paradigm and empirically supported mapping guidelines, Modular RAG provides researchers and practitioners with a systematic framework for designing, implementing, and optimizing RAG systems across diverse application scenarios.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and ReasoningarXiv · 2026
- Retrieval-augmented generation for natural language processing: a surveyArtificial Intelligence Review · 2026
- From knowledge retrieval to generation: a comprehensive study of RAG's architectures, evolution, and applicationsArtificial Intelligence Review · 2026
- Retrieval-Augmented Generation in the Agentic Era: Tradition, Present, and ProspectarXiv · 2026
- RAG-NIMBF: A Non-Invasive, Modular Benchmarking Framework for Automated RAG Configuration AnalysisarXiv · 2026
- Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation SystemsACM Transactions on Software Engineering and Methodology · 2026