Microsoft's graph-based retrieval augmented generation for complex document understanding and multi-hop reasoning.
Microsoft's approach to AI-powered document search using knowledge graphs — understands relationships between concepts for deeper answers.
GraphRAG is Microsoft Research's open-source, modular graph-based Retrieval-Augmented Generation system, designed to solve a fundamental weakness of traditional vector-based RAG: the inability to answer global, holistic, or multi-hop questions that require reasoning across an entire corpus rather than retrieving isolated passages. Released under the MIT license on GitHub at microsoft/graphrag, the project introduces a structured pipeline that uses an LLM to extract entities, relationships, and claims from unstructured source documents, builds a knowledge graph from those extractions, and then runs hierarchical community detection (using the Leiden algorithm) to partition that graph into clusters of semantically related entities. For each community, GraphRAG pre-generates summaries at multiple levels of abstraction, producing a 'community hierarchy' that the system can query at retrieval time.
At query time, GraphRAG offers two primary search modes that target different question types. Local Search answers entity-centric questions by traversing the neighborhood of relevant entities in the graph, pulling in related entities, relationships, and source text chunks. Global Search answers corpus-wide, thematic, or summarization-style questions ('What are the major themes across these reports?') by performing a map-reduce over the community summaries — something pure vector search cannot do well because no single chunk contains the answer. A more recent DRIFT search mode blends local and global approaches for better performance on mixed questions.
The pipeline is implemented in Python and exposed as a CLI plus a configurable indexing engine (graphrag init, graphrag index, graphrag query). It supports OpenAI, Azure OpenAI, and other LLM backends via configuration, and stores artifacts as Parquet files that integrate with downstream analytics, vector stores like LanceDB, or visualization tools. The project is research-driven: it is positioned as a data pipeline and reference implementation for building on top of, not a turnkey production service. Microsoft also maintains a managed Azure offering, Azure AI Search with GraphRAG patterns, for teams that want a hosted version. GraphRAG is best understood as the canonical example of 'graph-augmented RAG' — a category that has rapidly become a standard pattern for enterprise knowledge work where context, provenance, and global reasoning matter more than raw retrieval latency.
Was this helpful?
Uses LLMs to extract entities, relationships, and claims from documents, building a structured knowledge graph that captures semantic connections traditional chunking misses.
Use Case:
Analyzing a corpus of research papers to understand how different concepts and findings relate across publications.
Synthesizes answers from community summaries across the entire dataset, enabling holistic questions that vanilla RAG cannot handle.
Use Case:
Asking 'What are the key regulatory trends?' across thousands of policy documents.
Combines graph neighborhood traversal with vector similarity for precise, context-rich answers to specific questions.
Use Case:
Finding detailed information about a specific entity and all its relationships within the knowledge base.
Applies the Leiden algorithm to identify clusters of related entities, generating hierarchical summaries at multiple abstraction levels.
Use Case:
Automatically organizing a large knowledge base into thematic groups for exploration.
Entity and relationship extraction prompts can be tuned for specific domains, improving accuracy for specialized corpora.
Use Case:
Configuring extraction for medical literature to focus on drug interactions, symptoms, and treatment protocols.
Produces inspectable Parquet files containing entities, relationships, communities, and summaries for debugging and analysis.
Use Case:
Auditing the knowledge graph to verify extraction quality before deploying to production.
Free
Azure consumption-based
Ready to get started with GraphRAG?
View Pricing Options →We believe in transparent reviews. Here's what GraphRAG doesn't handle well:
Weekly insights on the latest AI tools, features, and trends delivered to your inbox.
Through late 2025 and into 2026, the GraphRAG project has matured beyond its initial research drop: DRIFT Search is now a first-class retrieval mode alongside Local and Global; the indexing engine has been refactored for better incremental updates via graphrag update; configuration moved to a cleaner YAML schema with explicit LLM and embedding provider blocks; and the project added official support for additional vector stores and Azure-native artifact storage. The Azure GraphRAG Solution Accelerator has been kept in step, providing a deployable reference architecture. Community adoption has accelerated, with GraphRAG-style patterns (entities + communities + hierarchical summaries) becoming a standard option in frameworks like LlamaIndex and emerging as the dominant approach for explainable, multi-hop enterprise RAG.
AI Agent Builders
LlamaIndex: Build and optimize RAG pipelines with advanced indexing and agent retrieval for LLM applications.
AI Agent Builders
The industry-standard framework for building production-ready LLM applications with comprehensive tool integration, agent orchestration, and enterprise observability through LangSmith.
Document AI
Document ETL engine that converts messy PDFs, Word files, and images into AI-ready structured data with intelligent chunking.
AI Memory & Search
Open-source framework that builds knowledge graphs from your data so AI systems can analyze and reason over connected information rather than isolated text chunks.
No reviews yet. Be the first to share your experience!
Get started with GraphRAG and see if it's the right fit for your needs.
Get Started →Take our 60-second quiz to get personalized tool recommendations
Find Your Perfect AI Stack →Explore 20 ready-to-deploy AI agent templates for sales, support, dev, research, and operations.
Browse Agent Templates →