TL;DR

Modular RAG organises a RAG system as module types → modules → operators (6 types, 14 modules, 40+ operators), and a concrete pipeline is a RAG Flow built by combining them.

Summary

Naive and chain-style Advanced RAG no longer describe the field: RAG now covers structured data, fine-tuned retrievers, multi-round retrieval and LLM-decided retrieval. The article proposes a three-tier modular paradigm in which Advanced RAG is a modular form and Naive RAG a special case. Part I walks through the first module types, indexing, pre-retrieval and retrieval, listing the techniques for each. Part II (flows and industry cases) is a separate note.

Key takeaways

  1. Indexing: balance chunk size with sliding window, small-to-big (retrieve small, synthesise from the parent), summary indexes and metadata attachment; add hierarchical or knowledge-graph structure.
  2. Pre-retrieval query expansion: multi-query, sub-query (least-to-most decomposition) and Chain-of-Verification to reduce hallucination.
  3. Pre-retrieval query transformation: LLM rewrite, HyDE (embed a hypothetical answer instead of the query) and step-back prompting.
  4. Routing and construction: metadata or semantic routers pick the pipeline; text-to-SQL and text-to-Cypher reach structured sources.
  5. Retrieval: choose retrievers by efficiency, embedding quality and task alignment; consult the MTEB leaderboard, and keep sparse retrievers for stability.
  6. Keep the user’s intent: weight the original query more when using several queries.

Tools and concepts

ItemRole in the page
RAGSystem being decomposed
Knowledge GraphOrganises documents hierarchically and consistently
HyDE paperSource of the hypothetical-document idea
KGPKG-based multi-document QA
LlamaIndex, Neo4j, Semantic RouterImplementations referenced

When to use

  1. When you need a taxonomy of RAG techniques to pick the next improvement.
  2. When choosing between query rewriting, HyDE, step-back or sub-queries.
  3. When designing chunking and indexing (small-to-big, metadata, hierarchy).

Caveats


RAG LLM Knowledge Graph VDB LLM RAG Paradigms - Naive RAG, Advanced RAG & Modular RAG Retrieval-Augmented Generation for Large Language Models - A Survey Solving the out-of-context chunk problem for RAG Forget RAG, the Future is RAG-Fusion