LangChain
Agent engineering platform for building LLM applications from composable parts
Microsoft's research pipeline that extracts a knowledge graph from text to give LLMs better context.
Made graphrag? Claim it to edit the listing and see how many people view it. Sign in to claim
graphrag is a Microsoft Research data pipeline that uses LLMs to extract structured knowledge graphs from unstructured text, so question answering can draw on a richer context. It is for developers who work with private document collections.
It is written in Python, uses the MIT license, and has about 37,000 stars. The README labels it a research project, and the code is a demonstration, not an officially supported Microsoft product.
Table of contents
Standard RAG finds text chunks that look similar to a question. GraphRAG instead builds a graph from your documents first, with entities, relationships and groupings the language model extracts, and uses that structure to build context for answers. The idea is that questions about a whole dataset, such as its main themes, are hard to answer from a handful of similar chunks, and a graph gives the model a broader view.
The repo calls itself a data pipeline and transformation suite. You point it at a folder of text, it runs an indexing process that calls an LLM many times, and it stores the resulting structure for later querying. The README links a Microsoft Research blog post and an arXiv paper for the method, and a documentation site with a command-line quickstart.
graphrag init --root [path] --force.The part of the README reviewed here does not list specific query modes or supported model providers, so read the docs for those.
The README recommends the command-line quickstart in the documentation at microsoft.github.io/graphrag. It does not give install commands in the README body, so follow the Get Started page. Two cautions from the README matter before you run anything.
First, indexing can be expensive because it makes many model calls, so read the documentation on process and cost and start small, with a short sample of your data. Second, run graphrag init --root [path] --force between minor version bumps to pick up the latest config format, and use the migration notebook between major versions if you want to avoid re-indexing.
graphrag fits researchers and developers exploring graph-based retrieval over document sets where relationships and themes matter, such as reports, transcripts or case files. It is a good way to learn the approach from a reference implementation.
Skip it if you need a supported production product, because the maintainers say the code is a demonstration, or if you want an actively developed feature set. Skip it if your questions are simple lookups that ordinary vector search handles cheaply, since graph indexing costs more in tokens and time. The README warning at the top says the project is largely in maintenance mode: no new pull requests or features, only bug fixes and dependency updates, especially for CVEs. Expect stability but not new capabilities.
Alternatives include plain vector-store RAG built with a framework such as LlamaIndex or LangChain, which is cheaper and simpler to start. Other graph-flavored projects exist, such as LightRAG and Neo4j-based knowledge graph tooling, which differ in how they build and store the graph. Compare indexing cost and query quality on your own data. See graphrag alternatives and the AI repos directory.
The code is MIT licensed and free. The cost that matters is LLM usage during indexing and querying, billed by whichever model provider you configure. The README warns that indexing can be expensive.
It is a pipeline from Microsoft Research that uses LLMs to build a knowledge graph from text and uses that graph to improve question answering over private data.
No. The README says it is a demonstration and not an officially supported Microsoft offering.
It is largely in maintenance mode, per the README. The maintainers say they will not accept new PRs or add features, and will do bug fixes and dependency updates.
Indexing can be, because it makes many LLM calls. The README advises reading the cost documentation and starting with a small dataset.
Run graphrag init --root [path] --force between minor versions, and use the migration notebook between major versions to avoid re-indexing.
Agent engineering platform for building LLM applications from composable parts
Agent harness optimisation for Claude Code, Codex, OpenCode and Cursor
Self-improving agent from Nous Research that learns across sessions
Small, composable agent skills from Matt Pocock's daily .agents directory