Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Research / GraphRAG
⬡PipelineResearchFree

GraphRAG

Microsoft's graph-based RAG: build knowledge graphs from documents for global, multi-hop reasoning beyond vector search.

@ai-supply
Installs82k
⟳ upstream v3.1.1 · updated 8d ago
↗ Source repository
← More ResearchResearch leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals22capabilities surfaced1known CVE5of 20 OWASP controls clear
External endpoints declaredBroad capability surfaceExternal endpoints declaredExternal endpoints declared
scanned 7d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

GraphRAG

GraphRAG is Microsoft Research's graph-based retrieval-augmented generation system. Where conventional RAG retrieves isolated text chunks, GraphRAG builds a knowledge graph of entities and relationships from your documents, enabling LLMs to reason across the entire corpus and answer complex, multi-hop questions that vector search cannot.

Key Features

  • Graph indexing — extracts entities, relationships, and community summaries from documents using an LLM
  • Global search — answer questions that require synthesizing information across the entire document set
  • Local search — entity-anchored retrieval for specific, focused questions
  • Community reports — hierarchical cluster summaries provide high-level corpus understanding
  • DRIFT search — Dynamic Reasoning and Inference with Flexible Traversal for hybrid global/local queries
  • Prompt tuning — auto-generate domain-adapted extraction prompts from a sample of your data

Quick Start

pip install graphrag
# Initialize and index a corpus
mkdir -p ./rag/input && cp my_docs/*.txt ./rag/input/
graphrag init --root ./rag
# Configure ./rag/settings.yaml with your OpenAI API key
graphrag index --root ./rag

# Query
graphrag query --root ./rag --method global --query "What are the main themes?"

Install via ai-supply

npx ai-supply add graphrag-knowledge-graph-rag

Curated mirror of the open-source GraphRAG project (MIT). Install upstream from the repository.

Rating rank
#1
of 17 in Research
Install rank
#5
of 17 in Research
Security score
75/100 · B
review
Security rank
#9
of 17 in Research
Installs
82k
cat avg 51k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Research leaderboard →
! Security: Review · 7575/100 · grade Bscanned 7d ago
✓ no compromise signals23 risk-surface · 10/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → docs.github.com, learn.microsoft.com, opensource.microsoft.com, cla.microsoft.com., www.python.org, docs.astral.sh, pypi.org, azure.microsoft.com +30
532 steps⚑ uses secretsdocs.github.comactions/checkout@v4actions/setup-python@v5astral-sh/setup-uv@v6JamesIves/github-pages-deploy-action@v4.6.4actions/stale@v9dorny/paths-filter@v3learn.microsoft.com

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Vulnerable dependencies — 114 known vulnerabilities in: azure-core@1.35.0, click@8.1.8, cryptography@45.0.5, fonttools@4.59.0, gitpython@3.1.45, idna@3.10, json-repair@0.30.3, marshmallow@4.0.0 (CWE-1395)known CVE · -25 pts
⚠LLM01Prompt Injectionhigh
Adversarial instructions embedded in an artifact that hijack a downstream LLM.
•Prompt-injection phrasing — instruction-subversion language detected · microsoft-graphrag-14a00ad/RAI_TRANSPARENCY.md (CWE-77)expected
⚠LLM02Sensitive Information Disclosurehigh
Secrets, credentials or PII shipped inside the artifact.
•Embedded credentials — found: hardcoded credential · microsoft-graphrag-14a00ad/RELEASE.md (CWE-798)expected
•Low-confidence secret match — 1 possible: generic-api-key · microsoft-graphrag-14a00ad/packages/graphrag-vectors/example_notebooks/cosmosdb.ipynb (CWE-798)risk surface
⚠LLM05Improper Output Handlinghigh
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — OS command execution · microsoft-graphrag-14a00ad/scripts/update_workspace_dependency_versions.py (CWE-78)risk surface
•Suspicious code patterns — unsafe yaml.load · microsoft-graphrag-14a00ad/tests/unit/indexing/test_init_content.py (CWE-502)risk surface
•Suspicious code patterns — dynamic code execution · microsoft-graphrag-14a00ad/tests/unit/indexing/update/test_update_relationships.py (CWE-95)risk surface
•Suspicious code patterns — pipe-to-shell install · microsoft-graphrag-14a00ad/unified-search-app/Dockerfile (CWE-494)risk surface
⚠LLM06Excessive Agencyhigh
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · microsoft-graphrag-14a00ad/.github/dependabot.ymlrisk surface
•Broad capability surface — 4 high-impact capability categories referenced — verify least-privilege · microsoft-graphrag-14a00ad/.github/workflows/python-publish.yml (CWE-272)risk surface
•External endpoints declared — 3 distinct host(s) · microsoft-graphrag-14a00ad/CONTRIBUTING.mdrisk surface
•External endpoints declared — 5 distinct host(s) · microsoft-graphrag-14a00ad/DEVELOPING.mdrisk surface
•External endpoints declared — 7 distinct host(s) · microsoft-graphrag-14a00ad/README.mdrisk surface
•External endpoints declared — 6 distinct host(s) · microsoft-graphrag-14a00ad/SECURITY.mdrisk surface
•External endpoints declared — 2 distinct host(s) · microsoft-graphrag-14a00ad/docs/config/yaml.mdrisk surface
•External endpoints declared — 4 distinct host(s) · microsoft-graphrag-14a00ad/docs/developing.mdrisk surface
•Egress to a private/loopback host — 127.0.0.1 · microsoft-graphrag-14a00ad/tests/integration/cache/test_factory.py (CWE-918)risk surface
•Broad capability surface — 5 high-impact capability categories referenced — verify least-privilege · microsoft-graphrag-14a00ad/tests/verbs/data/covariates.csv (CWE-272)risk surface
⚠LLM07System Prompt Leakagehigh
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Embedded credentials — found: hardcoded credential · microsoft-graphrag-14a00ad/RELEASE.md (CWE-798)expected
•Low-confidence secret match — 1 possible: generic-api-key · microsoft-graphrag-14a00ad/packages/graphrag-vectors/example_notebooks/cosmosdb.ipynb (CWE-798)risk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · microsoft-graphrag-14a00ad/packages/graphrag-llm/graphrag_llm/rate_limit/sliding_window_rate_limiter.py (CWE-835)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Vulnerable dependencies — 114 known vulnerabilities in: azure-core@1.35.0, click@8.1.8, cryptography@45.0.5, fonttools@4.59.0, gitpython@3.1.45, idna@3.10, json-repair@0.30.3, marshmallow@4.0.0 (CWE-1395)known CVE · -25 pts
⚠ML02Data Poisoninghigh
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
•Prompt-injection phrasing — instruction-subversion language detected · microsoft-graphrag-14a00ad/RAI_TRANSPARENCY.md (CWE-77)expected
⚠ML09Output Integrityhigh
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — OS command execution · microsoft-graphrag-14a00ad/scripts/update_workspace_dependency_versions.py (CWE-78)risk surface
•Suspicious code patterns — unsafe yaml.load · microsoft-graphrag-14a00ad/tests/unit/indexing/test_init_content.py (CWE-502)risk surface
•Suspicious code patterns — dynamic code execution · microsoft-graphrag-14a00ad/tests/unit/indexing/update/test_update_relationships.py (CWE-95)risk surface
•Suspicious code patterns — pipe-to-shell install · microsoft-graphrag-14a00ad/unified-search-app/Dockerfile (CWE-494)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (14) · hygiene / uncategorized
•Unrecognized file type — '.gitattributes' is not on the allowlist · microsoft-graphrag-14a00ad/.gitattributesrisk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · microsoft-graphrag-14a00ad/.gitignorerisk surface
•Unrecognized file type — '.?' is not on the allowlist · microsoft-graphrag-14a00ad/CODEOWNERSrisk surface
•Unrecognized file type — '.txn' is not on the allowlist · microsoft-graphrag-14a00ad/docs/examples_notebooks/inputs/operation dulce/lancedb/community_full_content.lance/_transactions/0-a943ac34-0e87-43c2-80d0-8f83fb80f4f5.txnrisk surface
•Opaque binary content — non-text payload not statically analyzable · microsoft-graphrag-14a00ad/docs/examples_notebooks/inputs/operation dulce/lancedb/community_full_content.lance/_transactions/0-a943ac34-0e87-43c2-80d0-8f83fb80f4f5.txnrisk surface
•Unrecognized file type — '.lance' is not on the allowlist · microsoft-graphrag-14a00ad/docs/examples_notebooks/inputs/operation dulce/lancedb/community_full_content.lance/data/a84d995f-111c-45d1-ba5a-32b3747b8a18.lancerisk surface
•Very high entropy — 7.38 bits/byte suggests packed or encrypted content · microsoft-graphrag-14a00ad/docs/examples_notebooks/inputs/operation dulce/lancedb/community_full_content.lance/data/a84d995f-111c-45d1-ba5a-32b3747b8a18.lancerisk surface
•Very high entropy — 7.37 bits/byte suggests packed or encrypted content · microsoft-graphrag-14a00ad/docs/examples_notebooks/inputs/operation dulce/lancedb/entity_description.lance/data/2677858d-16a4-4c0c-9515-ed5a9ee32fd7.lancerisk surface
•Unrecognized file type — '.jinja' is not on the allowlist · microsoft-graphrag-14a00ad/packages/graphrag-llm/notebooks/templates/weather_listings.jinjarisk surface
•Unrecognized file type — '.typed' is not on the allowlist · microsoft-graphrag-14a00ad/packages/graphrag/graphrag/py.typedrisk surface
•Suspicious network references — raw IP URL (2 URLs) · microsoft-graphrag-14a00ad/tests/integration/cache/test_factory.pyrisk surface
•Suspicious network references — raw IP URL (1 URLs) · microsoft-graphrag-14a00ad/tests/integration/storage/test_blob_storage.pyrisk surface
•Unrecognized file type — '.jsonl' is not on the allowlist · microsoft-graphrag-14a00ad/tests/unit/indexing/input/data/jsonl-with-invalid-and-blank-lines/input.jsonlrisk surface
•Unrecognized file type — '.env' is not on the allowlist · microsoft-graphrag-14a00ad/tests/unit/load_config/fixtures/test.envrisk surface
✔ verified source · pinned microsoft-graphrag-14a00ad
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/graphrag-knowledge-graph-rag/check). Click a policy:

Consume GraphRAG programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/graphrag-knowledge-graph-rag

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/graphrag-knowledge-graph-rag/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add graphrag-knowledge-graph-rag

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/graphrag-knowledge-graph-rag/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "graphrag-knowledge-graph-rag" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy