Microsoft GraphRAG
Microsoft GraphRAG is an MIT-licensed Python pipeline that extracts a knowledge graph from text, builds community summaries and uses them for retrieval; it is now largely in maintenance mode.
This profile covers Microsoft's open-source project, microsoft/graphrag. The term GraphRAG is also used loosely for any graph-based retrieval method; LightRAG, for example, describes itself as an alternative to Microsoft GraphRAG.
Best for: teams that want to answer whole-corpus questions over a fixed set of documents and can run a batch indexing job
Microsoft GraphRAG official site
What is Microsoft GraphRAG?
Microsoft GraphRAG is an open-source data pipeline from Microsoft Research that uses LLMs to extract a knowledge graph from unstructured text. It groups the graph into communities, writes summaries for them, and uses that structure to answer questions.
Its docs describe it as a structured, hierarchical approach to retrieval augmented generation, set against plain semantic search over text snippets. The project is MIT licensed but now largely in maintenance mode, and Microsoft calls the code a demonstration rather than a supported product.
How does Microsoft GraphRAG work?
- You install the Python package and point it at input files such as plain text, CSV, JSON or Parquet.
- GraphRAG slices the corpus into TextUnits, the units it analyses and references in its outputs.
- An LLM extracts entities, relationships and key claims from each TextUnit.
- It clusters the graph into a community hierarchy and generates a summary for each community. The tables are written as parquet files on disk by default.
- At query time you pick a mode: Global Search over community summaries for questions about the whole corpus, Local or DRIFT search around entities, or basic top-k vector search.
How much does Microsoft GraphRAG cost?
As of 30 October 2026, GraphRAG is free under the MIT licence. Your costs are the LLM calls and compute it runs on, and the README warns that indexing can be an expensive operation and advises starting small.
Who is Microsoft GraphRAG for, and who is it not for?
GraphRAG suits a data or research team that has a fixed body of documents, wants answers to questions that span the whole collection, and is comfortable running and tuning a Python indexing job.
It fits poorly as live agent memory: it can update an index with new data, but we found no per-document deletion, server or MCP endpoint, and it gets no new features. Teams that need vendor support, a hosted service or compliance statements will find none.
What does Microsoft GraphRAG do well?
- Community summaries let Global Search answer holistic questions about a whole corpus
- Four query modes in one package: global, local, DRIFT and basic vector search
- MIT licence, from Microsoft Research, with a published arXiv paper behind the method
- Calls models through LiteLLM, so it can use models other than its default OpenAI set
- TextUnits give fine-grained references from outputs back to the input text
Microsoft GraphRAG on our criteria
| Criterion | What we found |
|---|---|
| Pricing | Free MIT library that uses LLMs to extract data; the README warns that indexing can be an expensive operation and says to read the docs on the costs involved Verified |
| Free plan | The whole project is free: the MIT licence grants use free of charge Verified |
| Open source | MIT (microsoft/graphrag) Verified |
| Human approval | Not publicly documented |
| Cites sources | Input is split into TextUnits, which the docs say provide fine-grained references in outputs Verified |
| Versioning and history | Not publicly documented |
| Shared across agents | Not publicly documented |
| Context graph | Yes: entities, relationships and key claims extracted from text, with a community hierarchy and community summaries Verified |
| Enterprise sources | Not publicly documented |
| Deployment | Self-run Python library and CLI; we found no hosted service Verified |
| Compliance | Not publicly documented |
| Interface | Python package (pip install graphrag) and the graphrag CLI; outputs written as parquet files Verified |
What are Microsoft GraphRAG's limits?
- The README says the project is largely in maintenance mode and won't accept new PRs or implement new features; only bug fixes and dependency updates continue
- Microsoft says the code is a demonstration and not an officially supported Microsoft offering, and we found no hosted service, price or SLA
- The README warns indexing can be an expensive operation, and the docs say results out of the box may not be the strongest without prompt tuning
- It indexes files in batches; the `graphrag update` command updates an existing index incrementally, but we found no mention of per-document deletion, a server or an MCP endpoint on the pages checked
- Inputs are files (plain text, CSV, JSON, JSON Lines, Parquet, MarkItDown) or a DataFrame; we found no connectors to company sources, and no approval step for extracted entities
Mentioned in
FAQ
Is Microsoft GraphRAG still maintained?
Only for fixes. The README says the project is largely in maintenance mode and won't accept new PRs or implement new features, though bug fixes and dependency updates continue, particularly for CVEs. The repository was still being pushed to on 29 October 2026.
Is GraphRAG expensive to run?
It can be. The software is free, but indexing calls an LLM across the whole corpus, and the README warns that indexing can be an expensive operation and says to start small. The docs also recommend prompt tuning, since out-of-the-box results may fall short on your data.
GraphRAG vs LightRAG?
Both are MIT-licensed and build a knowledge graph from documents. LightRAG calls itself a lightweight alternative to Microsoft GraphRAG. Both can update an existing index incrementally, and both trace outputs back to source text. LightRAG adds document deletion with graph regeneration and a server with a web UI and REST API. GraphRAG's community summaries are built for whole-corpus questions, and the project is in maintenance mode.
Sources checked
Show 9 sources
- github.com/microsoft/graphrag/blob/HEAD/README.md, checked and
- github.com/microsoft/graphrag/blob/HEAD/LICENSE, checked
- api.github.com/repos/microsoft/graphrag, checked
- microsoft.github.io/graphrag, checked
- microsoft.github.io/graphrag/index/outputs, checked
- microsoft.github.io/graphrag/index/inputs, checked
- microsoft.github.io/graphrag/get_started, checked and
- microsoft.github.io/graphrag/config/models, checked
- microsoft.github.io/graphrag/cli, checked