graphrag

Repo

Microsoft's research pipeline that extracts a knowledge graph from text to give LLMs better context.

36.7k3.9kPythonMIT

Claim this listing

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

  1. What graphrag does
  2. Key features
  3. How to get started
  4. Who should use it, and when to skip it
  5. graphrag alternatives
  6. License and cost
  7. FAQs

What graphrag does

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.

Key features

  • An indexing pipeline that turns unstructured text into structured data using LLMs.
  • A knowledge graph memory structure meant to improve how LLMs reason over private data.
  • A command-line interface, with a quickstart in the docs. The README mentions graphrag init --root [path] --force.
  • A Prompt Tuning Guide, because the README says default prompts may not give the best results on your data.
  • A breaking-changes document and a migration notebook for major version upgrades.
  • A Responsible AI FAQ in the repo covering intended uses, evaluation and limitations.

The part of the README reviewed here does not list specific query modes or supported model providers, so read the docs for those.

How to get started

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.

Who should use it, and when to skip it

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.

graphrag alternatives

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.

License and cost

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.

FAQs

What is GraphRAG?

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.

Is graphrag a supported Microsoft product?

No. The README says it is a demonstration and not an officially supported Microsoft offering.

Is graphrag still being developed?

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.

Is graphrag expensive to run?

Indexing can be, because it makes many LLM calls. The README advises reading the cost documentation and starting with a small dataset.

How do I upgrade between versions?

Run graphrag init --root [path] --force between minor versions, and use the migration notebook between major versions to avoid re-indexing.

Topics

gpt
gpt-4
gpt4
graphrag
llm
llms
rag

Reviews (0)

No reviews yet.

Sign in to write a review.

Similar Repos

Open Source

LangChain

Agent engineering platform for building LLM applications from composable parts

Reviewed by hand · Jun 2026
Free

ECC

Agent harness optimisation for Claude Code, Codex, OpenCode and Cursor

Reviewed by hand · May 2026
Free

Hermes Agent

Self-improving agent from Nous Research that learns across sessions

Reviewed by hand · May 2026
Free

Skills for Real Engineers

Small, composable agent skills from Matt Pocock's daily .agents directory

Reviewed by hand · Apr 2026