graphrag

microsoftMIT活跃维护

基于知识图谱的模块化检索增强生成系统,把文档抽成实体关系图,让大模型在回答复杂问题时能跨文档做全局推理。

A modular graph-based Retrieval-Augmented Generation (RAG) system

v3.3.0发布于 2026-10-08 18:28 UTC36,615star +25 / 7 天3,879fork同步于 2026-11-10 05:19 UTC

怎么上手

由 README 提炼,执行前请确认
pip install graphrag
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

微软开源的研究型 RAG 系统,用 LLM 从非结构化文本抽取结构化知识图谱来增强问答

基于知识图谱的模块化检索增强生成系统,把文档抽成实体关系图,让大模型在回答复杂问题时能跨文档做全局推理。

核心能力

  • 用 LLM 从非结构化文本抽取结构化数据
  • 以知识图谱记忆结构增强 LLM 输出
  • 提供数据管道与转换套件
  • 支持命令行快速上手与提示词调优

容易踩的坑

项目已基本进入维护模式,不再接受新 PR 或新功能;索引是昂贵操作,建议先小规模试跑;小版本升级后需运行 graphrag init --root [path] --force 更新配置,且会覆盖配置与提示词,需提前备份

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v3.3.0
  1. v3.3.0最新正式版2026-10-08 · 2026-10-08 18:28 UTC

    What's Changed

    Full Changelog: https://github.com/microsoft/graphrag/compare/v3.2.0...v3.3.0

  2. v3.2.02026-09-24 · 2026-09-24 02:25 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/microsoft/graphrag/compare/v3.1.1...v3.2.0

  3. 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

  4. v3.1.12026-07-18 · 2026-07-18 01:23 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/microsoft/graphrag/compare/3.0.9...v3.1.1

  5. 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

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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

    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

    See RAI_TRANSPARENCY.md

    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.

    Privacy

    Microsoft Privacy Statement