GraphRAG is a graph-based retrieval-augmented generation (RAG) system by Microsoft. The current version is 3.0.9, with frequent patch releases. Requires Python >=3.11, <3.14.
pip install graphragVerified import paths — ran on the pinned version, not inferred.
Minimal import and setup for GraphRAG. Note: Full indexing requires a config file and data directory; run `graphrag init --force` first.
Update imports to match new package structure (e.g., graphrag.index, graphrag.query, graphrag.cache, etc.)
Use `from graphrag.query import QueryEngine`
Keep litellm pinned via GraphRAG's requirements; do not override.
Upgrade to v3.0.2+ for Python 3.13 compatibility.
Run `graphrag init --force` after upgrading to regenerate config.