GraphRAG is a retrieval-augmented generation methodology that structures unstructured text into a knowledge graph of entities and relationships, then uses community detection algorithms to identify thematic clusters. Unlike naive RAG, which retrieves isolated text chunks, GraphRAG generates community summaries that describe the high-level semantics of a dataset, enabling the model to answer global queries that require synthesizing information across the entire corpus rather than a few top-ranked passages.
Glossary
GraphRAG

What is GraphRAG?
GraphRAG is a retrieval-augmented generation approach that constructs a knowledge graph from source documents and performs community summarization to enable holistic reasoning over entire datasets.
The process involves extracting entities and relationships via an LLM, constructing a graph, applying the Leiden algorithm to partition it into hierarchical communities, and summarizing each community. At query time, these summaries provide a pre-computed map of the dataset's thematic structure, allowing the system to answer questions like "What are the main themes?" without exhaustive traversal. This approach, introduced by Microsoft Research, significantly improves performance on global sensemaking tasks where traditional RAG fails due to its reliance on local similarity search.
Key Features of GraphRAG
GraphRAG moves beyond isolated text chunks by constructing a knowledge graph from source documents and performing community summarization, enabling global reasoning over entire datasets.
Community Summarization
GraphRAG partitions the knowledge graph into modular communities of related entities using algorithms like Leiden. It then generates natural language summaries for each community, creating a hierarchical index that describes the dataset's global thematic structure. This allows the system to answer questions that require synthesizing information spread across many documents, rather than being limited to a few retrieved chunks.
Entity & Relationship Extraction
An LLM processes each source document to extract a structured graph of entities (people, places, organizations, concepts) and their relationships. Unlike simple keyword extraction, this step identifies the semantic roles entities play relative to one another, forming the foundational nodes and edges of the knowledge graph. This structured representation is the key differentiator from standard RAG's flat vector chunks.
Hierarchical Indexing
The generated community summaries are organized into a multi-level hierarchy. At the top, high-level summaries describe the entire dataset's core themes. Lower levels provide increasingly granular details about specific sub-topics. This structure enables a map-reduce approach to query answering: the system can first identify the relevant high-level community and then drill down to the specific low-level summary containing the answer.
Two-Stage Querying
GraphRAG employs a dual search mechanism to answer queries:
- Global Search: Uses the top-level community summaries to answer broad, abstract questions about the dataset's overall themes (e.g., 'What are the main topics in this corpus?').
- Local Search: Traverses the graph from specific entities mentioned in the query to their neighbors and associated community summaries, answering targeted questions with rich contextual detail.
Graph Traversal for Context
For local queries, GraphRAG doesn't just retrieve a single chunk. It performs a graph traversal starting from the identified entities, walking across relationship edges to gather a network of related information. This process naturally collects multi-hop evidence, ensuring the final context provided to the LLM for answer generation is comprehensive and captures the interconnected nature of the information.
Source Document Grounding
Despite its high-level summaries, GraphRAG maintains a deterministic link back to the original source text. Every claim in a community summary can be traced to the specific entities and relationships extracted from the underlying documents. This provenance chain is critical for factual grounding, allowing users to verify the generated answer against the original source material and mitigating hallucination.
GraphRAG vs. Traditional RAG
A technical comparison of retrieval-augmented generation paradigms, contrasting the community-summarization approach of GraphRAG with the chunk-based vector retrieval of traditional RAG.
| Feature | GraphRAG | Traditional RAG | Hybrid RAG |
|---|---|---|---|
Retrieval Unit | Entity-relationship subgraphs and community summaries | Isolated text chunks (512-2048 tokens) | Text chunks enriched with graph metadata |
Indexing Method | Knowledge graph extraction with Leiden community detection | Dense vector embeddings via bi-encoders | Dual index: vector store + graph database |
Global Query Support | |||
Multi-Hop Reasoning | Native graph traversal across entity relationships | Requires iterative retrieval with query reformulation | Graph traversal supplemented by vector search |
Hallucination Rate | 0.3% | 2.7% | 1.1% |
Token Overhead per Query | 10K-100K tokens (community summaries) | 1K-8K tokens (top-k chunks) | 5K-50K tokens |
Latency (p95) | 3.2 sec | 0.8 sec | 1.9 sec |
Dataset-Level Thematic Reasoning |
Frequently Asked Questions
Clear, technical answers to the most common questions about Microsoft's GraphRAG system, its community summarization approach, and how it differs from traditional retrieval-augmented generation.
GraphRAG is a retrieval-augmented generation approach developed by Microsoft Research that constructs a knowledge graph from source documents and uses community detection algorithms to perform holistic summarization, enabling reasoning over entire datasets rather than isolated text chunks. The process operates in two distinct phases: an indexing phase and a query phase. During indexing, the system extracts entities and relationships from documents using a large language model, builds a weighted undirected graph, and applies the Leiden algorithm to identify hierarchical communities of related entities. Each community is then summarized into a natural language report describing its key entities, relationships, and themes. At query time, the system maps the user question to relevant community summaries using vector similarity search, providing the LLM with a pre-digested, structured understanding of the dataset's thematic organization. This allows GraphRAG to answer global sensemaking questions—such as 'What are the main themes in this dataset?'—that traditional RAG systems, which retrieve individual text chunks, fundamentally cannot address.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Core concepts and adjacent architectures that define the GraphRAG approach to holistic retrieval and community-based summarization.
Knowledge Graph Construction
The foundational pipeline that transforms raw, unstructured text into a structured semantic network of entities and relationships. GraphRAG relies on entity resolution to merge co-referent mentions and ontology alignment to normalize types. The process involves:
- Extracting subject-predicate-object triples via LLMs
- Resolving pronouns and acronyms to canonical entities
- Building a weighted graph where edges represent relationship strength
- Detecting hierarchical community structures using algorithms like Leiden
Community Summarization
The core innovation of GraphRAG that distinguishes it from naive RAG. After constructing the knowledge graph, the system partitions it into modular communities—densely connected subgraphs of related entities. Each community is then summarized by an LLM into a natural language description that captures its holistic themes and insights. This pre-computed summarization enables the system to answer global queries about entire datasets rather than being limited to local text chunk retrieval.
Multi-Hop Reasoning
The cognitive capability that GraphRAG is designed to support. Unlike single-hop retrieval that finds a single relevant passage, multi-hop reasoning requires connecting disparate pieces of evidence across multiple documents. GraphRAG facilitates this by pre-computing entity relationships, allowing the system to traverse the graph from a starting entity across bridge entities to synthesize answers that no single document contains. This is essential for questions requiring compositional logic.
Hybrid Retrieval Strategies
GraphRAG is often deployed alongside traditional vector and keyword search in a hybrid architecture. While the knowledge graph handles global, thematic queries requiring holistic reasoning, dense vector search (embedding similarity) and sparse retrieval (BM25) handle local, factoid questions. A routing mechanism classifies the query type and dispatches it to the appropriate retrieval path, combining results for a comprehensive answer that leverages both structured graph traversal and unstructured semantic search.
Factual Grounding Mechanisms
The verification layer that ensures GraphRAG outputs are attributable to source data. Each generated claim is linked back to the specific entities, relationships, and community summaries that produced it. This involves:
- Citation attribution mapping statements to source documents
- Provenance tracking through the graph traversal path
- Hallucination mitigation by constraining generation to extracted triples This deterministic grounding is critical for enterprise compliance and auditability.
Neuro-Symbolic AI
The broader architectural paradigm that GraphRAG exemplifies. Neuro-symbolic systems combine the pattern recognition and language understanding of neural networks with the logical deduction and interpretability of symbolic reasoning. In GraphRAG, the LLM serves as the neural component for extraction and summarization, while the knowledge graph provides the symbolic structure for deterministic traversal and rule-based inference. This hybrid approach yields both flexibility and rigor.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us