GraphRAG
Graph-based RAG system from Microsoft that builds knowledge graphs and answers corpus-wide questions.
About
Microsoft Research built GraphRAG to answer questions that ordinary retrieval augmented generation cannot, the global ones like what are the main themes in this corpus, where no single passage contains the answer. An indexing pipeline uses an LLM to extract entities and relationships from raw text into a knowledge graph, clusters it into hierarchical communities with the Leiden algorithm, and pre-writes summaries for each community; at query time, global search reasons over those summaries while local search fans out from specific entities, and DRIFT search combines the two approaches. The Python package installs from PyPI with a CLI covering init, index, and query, with configuration in YAML. Indexing is LLM-intensive and typically points at OpenAI or Azure OpenAI endpoints, so costs scale with corpus size and offline use is not the default path. Released under MIT with an accompanying research paper, the roughly 35,000-star project effectively defined the graph RAG category in 2024, and it remains the reference implementation that researchers and enterprises benchmark against.
Should you use GraphRAG?
Pick it when
Use GraphRAG when you need answers to corpus-wide questions, like the main themes across thousands of documents, that no single passage holds, and you have budget for LLM-heavy indexing against OpenAI or Azure OpenAI endpoints.
Look elsewhere when
Skip it if indexing cost matters or your documents change often, since indexing is LLM intensive and offline use is not the default path. LightRAG positions itself as the lighter, cheaper option, with incremental updates and Ollama support.
Alternatives to GraphRAG
- LightRAG
Cheaper incremental indexing, five query modes, a web UI, and Ollama support, though GraphRAG remains the reference researchers benchmark against.
- Graphiti
A real-time incremental graph with temporal validity for agent memory, better for changing facts, not for global summaries of a fixed corpus.
- Cognee
Graph plus vector memory on pluggable backends with local model support, aimed at agent memory rather than community-summary global search.
- LlamaIndex
A general RAG data framework, simpler and cheaper for passage-level questions when you do not need graph communities or global search.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- AI Frameworks & Libraries
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Intermediate (3/5)
- License
- MIT
- Added
- Jul 29, 2026