项目已基本进入维护模式,不再接受新 PR 或新功能;索引是昂贵操作,建议先小规模试跑;小版本升级后需运行 graphrag init --root [path] --force 更新配置,且会覆盖配置与提示词,需提前备份
微软开源的研究型 RAG 系统,用 LLM 从非结构化文本抽取结构化知识图谱来增强问答
基于知识图谱的模块化检索增强生成系统,把文档抽成实体关系图,让大模型在回答复杂问题时能跨文档做全局推理。
核心能力
- 用 LLM 从非结构化文本抽取结构化数据
- 以知识图谱记忆结构增强 LLM 输出
- 提供数据管道与转换套件
- 支持命令行快速上手与提示词调优
容易踩的坑
- v3.3.0最新正式版2026-10-08 · 2026-10-08 18:28 UTC
What's Changed
- fix sqlite performance issue by @gaudyb in https://github.com/microsoft/graphrag/pull/2591
- Release v3.3.0 by @gaudyb in https://github.com/microsoft/graphrag/pull/2592
Full Changelog: https://github.com/microsoft/graphrag/compare/v3.2.0...v3.3.0
- v3.2.02026-09-24 · 2026-09-24 02:25 UTC
查看更新说明
What's Changed
- Change default package feed index. by @dworthen in https://github.com/microsoft/graphrag/pull/2483
- Fix/cache event loop lifecycle by @dworthen in https://github.com/microsoft/graphrag/pull/2484
- Pr 2481/danfiedler/pin actions by @dworthen in https://github.com/microsoft/graphrag/pull/2485
- Add notice. by @dworthen in https://github.com/microsoft/graphrag/pull/2486
- Pr 2480/docs/spelling sweep by @dworthen in https://github.com/microsoft/graphrag/pull/2487
- Local search notebook by @dworthen in https://github.com/microsoft/graphrag/pull/2488
- Update contributing doc. by @dworthen in https://github.com/microsoft/graphrag/pull/2500
- Automate dependency updates. by @dworthen in https://github.com/microsoft/graphrag/pull/2507
- Fix update-deps skill to work with msft feed. by @dworthen in https://github.com/microsoft/graphrag/pull/2510
- Dependency update sweep by @dworthen with @Copilot in https://github.com/microsoft/graphrag/pull/2516
- Release v3.1.2 by @dworthen in https://github.com/microsoft/graphrag/pull/2519
- Update dependencies to latest versions (dependency sweep) by @dworthen with @Copilot in https://github.com/microsoft/graphrag/pull/2523
- Cleanup by @dworthen in https://github.com/microsoft/graphrag/pull/2528
- Update dependencies to latest versions (dependency sweep) by @dworthen with @Copilot in https://github.com/microsoft/graphrag/pull/2558
- Update dependencies sweep by @dworthen with @Copilot in https://github.com/microsoft/graphrag/pull/2563
- new cache implementation by @gaudyb in https://github.com/microsoft/graphrag/pull/2570
- Release v3.2.0 by @gaudyb in https://github.com/microsoft/graphrag/pull/2572
Full Changelog: https://github.com/microsoft/graphrag/compare/v3.1.1...v3.2.0
- v3.1.22026-08-21 · 2026-08-21 15:24 UTC
查看更新说明
What's Changed
- patch: Change default package feed index.
- patch: Fix doc string parameters.
- patch: Preserve caller event loops in synchronous LLM cache middleware.
- patch: Update dependencies to latest versions (dependency sweep).
Full Changelog: https://github.com/microsoft/graphrag/compare/3.1.1...v3.1.2
- v3.1.12026-07-18 · 2026-07-18 01:23 UTC
查看更新说明
What's Changed
- feat: native CosmosTableProvider with namespace partitioning by @disamhembere in https://github.com/microsoft/graphrag/pull/2354
- Update litellm dependency. by @dworthen in https://github.com/microsoft/graphrag/pull/2365
- Release v3.1.0 by @dworthen in https://github.com/microsoft/graphrag/pull/2366
- Update getting started docs. by @dworthen in https://github.com/microsoft/graphrag/pull/2367
- Fix logging bug. by @dworthen in https://github.com/microsoft/graphrag/pull/2429
- Loosen service_tier type to str | None to allow for more flexibility … by @dworthen in https://github.com/microsoft/graphrag/pull/2430
- Fix .strip call by @dworthen in https://github.com/microsoft/graphrag/pull/2431
- Dep sweep by @dworthen in https://github.com/microsoft/graphrag/pull/2441
- Missing return type hints on generator functions in query/llm/text_utils.py by @gaudyb in https://github.com/microsoft/graphrag/pull/2443
- Issue 2265: Column length mismatch by @gaudyb in https://github.com/microsoft/graphrag/pull/2442
- Fix cannot release un-acquired lock in Blob logger by @gaudyb in https://github.com/microsoft/graphrag/pull/2457
- Sync docs for schema and metadata fields by @natoverse in https://github.com/microsoft/graphrag/pull/2435
- Fix JSONL loader handling of blank/invalid lines by @natoverse in https://github.com/microsoft/graphrag/pull/2434
- Release v3.1.1 by @gaudyb in https://github.com/microsoft/graphrag/pull/2458
New Contributors
- @disamhembere made their first contribution in https://github.com/microsoft/graphrag/pull/2354
Full Changelog: https://github.com/microsoft/graphrag/compare/3.0.9...v3.1.1
- v3.1.02026-05-28 · 2026-05-28 15:55 UTC
查看更新说明
What's Changed
- minor: Native CosmosTableProvider with namespace partitioning, transactional batch writes, and simplified AzureCosmosStorage.
- patch: Update litellm dependency.
Full Changelog: https://github.com/microsoft/graphrag/compare/v3.0.9...3.1.0
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
GraphRAG
[!WARNING] GraphRAG is a research project that explores the functional use of graphs to form a targeted context for question answering. Since our first release in July 2024 the capabilities of frontier models have changed dramatically, and our portfolio of research projects has diversified to match. This project is largely in maintenance mode, and won't be accepting new PRs or implementing new features. We'll perform bug fixes and dependency updates as appropriate, particularly to address CVEs as they arise.
👉 Microsoft Research Blog Post 👉 Read the docs 👉 GraphRAG Arxiv
Overview
The GraphRAG project is a data pipeline and transformation suite that is designed to extract meaningful, structured data from unstructured text using the power of LLMs.
To learn more about GraphRAG and how it can be used to enhance your LLM's ability to reason about your private data, please visit the Microsoft Research Blog Post.
Quickstart
To get started with the GraphRAG system we recommend trying the command line quickstart.
Repository Guidance
This repository presents a methodology for using knowledge graph memory structures to enhance LLM outputs. Please note that the provided code serves as a demonstration and is not an officially supported Microsoft offering.
⚠️ Warning: GraphRAG indexing can be an expensive operation, please read all of the documentation to understand the process and costs involved, and start small.
Diving Deeper
- To learn about our contribution guidelines, see CONTRIBUTING.md
- To start developing GraphRAG, see DEVELOPING.md
- Join the conversation and provide feedback in the GitHub Discussions tab!
Prompt Tuning
Using GraphRAG with your data out of the box may not yield the best possible results. We strongly recommend to fine-tune your prompts following the Prompt Tuning Guide in our documentation.
Versioning
Please see the breaking changes document for notes on our approach to versioning the project.
Always run graphrag init --root [path] --force between minor version bumps to ensure you have the latest config format. Run the provided migration notebook between major version bumps if you want to avoid re-indexing prior datasets. Note that this will overwrite your configuration and prompts, so back them up if necessary.
Responsible AI FAQ
- What is GraphRAG?
- What can GraphRAG do?
- What are GraphRAG’s intended use(s)?
- How was GraphRAG evaluated? What metrics are used to measure performance?
- What are the limitations of GraphRAG? How can users minimize the impact of GraphRAG’s limitations when using the system?
- What operational factors and settings allow for effective and responsible use of GraphRAG?
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.