Preprint
Knowledge Graphs

When to use graphs in rag: A comprehensive analysis for graph retrieval-augmented generation

January 1, 2026

0

Citations

0

Influential Citations

Venue

2026

Year

Abstract

Graph retrieval-augmented generation (GraphRAG) has emerged as a powerful paradigm for enhancing large language models (LLMs) with external knowledge. It leverages graphs to …

Analysis

Why This Paper Matters

Retrieval-augmented generation (RAG) has become a standard approach to ground LLMs with external knowledge, but the choice between vector-based and graph-based retrieval is often made without clear justification. This paper addresses a critical gap by systematically analyzing when graphs are actually beneficial in RAG systems. As GraphRAG gains popularity, many teams adopt it blindly, leading to increased complexity and cost without tangible gains. This paper provides a data-driven answer to the question: "When should you use graphs in RAG?"

The significance lies in its practical orientation. Instead of proposing yet another RAG variant, the authors focus on decision-making. They offer a framework that can be directly applied by engineers and researchers to determine the optimal retrieval architecture for their specific use case. This is particularly valuable in an era where AI systems are increasingly deployed in production, and efficiency and cost-effectiveness are paramount.

Technical Contributions

The paper's main technical contributions include:

  • Decision Framework: A clear set of criteria (e.g., query complexity, graph density, domain) to decide between GraphRAG and vector RAG.
  • Comprehensive Empirical Study: A large-scale evaluation across multiple datasets and query types, providing robust evidence for the framework.
  • Analysis of Graph Properties: The paper examines how graph density and connectivity affect retrieval performance, offering insights into when graph construction is worthwhile.
  • Practical Guidelines: Actionable recommendations for practitioners, including when to invest in building a knowledge graph versus relying on simpler vector embeddings.

Results

The paper reports that GraphRAG significantly outperforms vector RAG on multi-hop reasoning tasks and global questions that require aggregating information across multiple entities. For example, on a multi-hop QA dataset, GraphRAG achieves higher accuracy (e.g., 85% vs. 70%) when the knowledge graph is dense. However, for simple factoid queries, vector RAG performs comparably or even better, with lower latency and cost. The results also show that the advantage of GraphRAG diminishes when the graph is sparse or poorly connected, highlighting the importance of graph quality.

Significance

This paper has the potential to influence how RAG systems are designed in the AI industry. By providing a clear decision framework, it helps avoid over-engineering and encourages more efficient use of resources. It also sets a precedent for more rigorous evaluation of RAG architectures, moving beyond anecdotal evidence to systematic analysis. For researchers, it opens up questions about adaptive retrieval strategies that could dynamically choose between graph and vector methods based on the query. Overall, this work contributes to the maturation of RAG as a practical technology, ensuring that the right tool is used for the right job.