GraphRAG is a data pipeline that structures unstructured text with LLMs, builds knowledge graphs and community summaries, and supports graph-aware question answering over private corpora.
Overview
GraphRAG is a structured approach to retrieval-augmented generation that extracts knowledge graphs from raw text instead of relying only on vector similarity over snippets. Microsoft Research positions it to improve reasoning on complex private data where baseline RAG struggles to connect related facts or summarize large collections holistically.
The indexing stage splits a corpus into analyzable text units, extracts entities, relationships, and claims, clusters the graph hierarchically, and generates community summaries bottom-up. At query time those structures feed an LLM context window through modes such as global search on community summaries, local search around entities, DRIFT search with added community context, or basic vector search when that fits.
The project ships as a demonstration methodology and pipeline suite with a command-line quickstart. Documentation warns that indexing can be costly and recommends starting small, reading costs guidance, and tuning prompts for your data.
The effort is largely in maintenance mode: it accepts bug fixes and dependency updates including security work, but not new features or pull requests for major additions.
Key features
- LLM extraction from unstructured text
- Knowledge graph construction
- Hierarchical community clustering
- Community summary generation
- Global, local, and DRIFT query modes
- Basic vector RAG fallback
- Command-line workflow
- Prompt tuning guidance
Use cases
- Private corpus question answering
- Holistic corpus summarization
- Graph-augmented enterprise RAG
- Research-style knowledge indexing