A modular graph-based Retrieval-Augmented Generation (RAG) system
A modular graph-based Retrieval-Augmented Generation (RAG) system
[!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
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.
To get started with the GraphRAG system we recommend trying the command line quickstart.
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.
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.
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.
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.
[Bug]: `community_level` does not select a level — the community roll-up in `read_indexer_reports` is a no-op since v2.0.0
[Bug]: FileStorage.find returns matching directories as file keys
Update Dependencies Sweep
auth_method has two values. What fits a host that issues no key?
[Bug]: create_community_reports fails on strict/flat-schema guided-JSON backends (nested response_format)
AzureBlobStorage.set() logs "Error setting key %s: %s" with only one argument, so the failure is never logged
[Bug]: update_communities leaves dangling entity_ids/relationship_ids after an incremental update
[Resource] GeoMind: Domain Knowledge Graph for GraphRAG Validation
[Bug]: Table provider list() removes interior CSV/Parquet extensions
[Bug]: use_lcc silently drops case-sensitive entity titles from every community