🤖 AI Summary
This study addresses context overflow and retrieval-generation mismatch challenges in Retrieval-Augmented Generation (RAG) systems across diverse deployment scenarios. The authors introduce an evaluation framework tailored for semi-structured knowledge bases, encompassing nine standardized application settings ranging from basic document retrieval to integrated graph-agent workflows. They propose a novel context engineering approach that combines hybrid text-graph retrieval, domain-specific knowledge graph integration, multi-step agent planning, and an agent-graph collaborative architecture. This methodology significantly reduces token consumption in GraphRAG and Agentic RAG by 19%–53% and uncovers the “retrieval-generation gap” phenomenon—demonstrating that expanded retrieval does not necessarily improve generation quality. The findings offer data-driven guidance for selecting production-grade RAG system configurations.
📝 Abstract
As advanced RAG variants like GraphRAG and Agentic RAG emerge, one leading question is when and how to use them. Here, we introduce a framework for different RAG scenarios evaluation and comparison on semi-structured knowledge bases, including regular RAG, GraphRAG, Modular RAG and Agentic RAG. We provide implementation for 9 standardized RAG scenarios, and conduct experiments for a comprehensive comparison. These scenarios are designed for real use cases regarding data and domain restrictions, spanning from simple document-based retrieval to advanced features such as hybrid text-graph retrieval, integration with computed or pre-defined domain knowledge graphs, agentic multi-step planning, and agent-graph integration. Besides, we present a novel context engineering method for GraphRAG and Agentic RAG, addressing the context/memory overflow issues, efficiently managing text and graph retrievals with new representations and agentic loop design, leading to 19%-53% reduction on token usage. Moreover, further analysis identifies a retrieval-generation gap where expanded retrieval does not proportionally improve generation quality, suggesting retrieval-oriented metrics overstate advanced retrieval benefits. This work provides data-driven insights on when and how to use them for building production-ready intelligent RAG systems.