graphrag

Build and query knowledge graphs from unstructured text with entity-relationship extraction.

Updated Dec 14, 2025
One-click install
npx skills add https://github.com/aeonbridge/ab-anthropic-claude-skills --skill graphrag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphrag
Source: https://github.com/aeonbridge/ab-anthropic-claude-skills/tree/main/output/graphrag
Command: npx skills add https://github.com/aeonbridge/ab-anthropic-claude-skills --skill graphrag

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GraphRAG enables building and querying knowledge graphs from unstructured text to support reasoning over private datasets, connecting dispersed information into structured insights.

Core Features & Use Cases

  • Knowledge graph extraction: entities, relationships, and claims from documents
  • Hierarchical community detection: multi-level summaries via Leiden clustering
  • TextUnits and embeddings: chunked data, vector search, and graph embeddings
  • Multi-mode querying: global, local, and drift-style queries for rich reasoning
  • Use cases: private data reasoning, enterprise document analysis, and domain-specific knowledge graphs

Quick Start

Install GraphRAG, initialize a project, index a dataset, and run a first query to validate results.

Frequently Asked Questions about graphrag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a knowledge graph from unstructured text for multi-hop reasoning?

You build a knowledge graph by ingesting documents, chunking them into TextUnits, and extracting entities, relationships, and claims. This graph-based private data reasoning approach connects dispersed information across documents into structured insights for multi-hop analysis.

What is Leiden-based community detection for hierarchical document summarization?

Leiden clustering performs hierarchical community detection on extracted knowledge graph entities to generate multi-level summaries. This groups related entities and relationships into structured communities, enabling global reasoning and hierarchical summarization across large private datasets.

Does GraphRAG work with private datasets for enterprise document analysis?

Yes, GraphRAG supports private datasets by extracting knowledge graphs from unstructured enterprise documents to enable reasoning over private data. It processes documents through ingestion, graph construction, and embedding generation without requiring external data exposure.

How do I query a knowledge graph using global, local, and drift-style search modes?

You query a knowledge graph by selecting global, local, or drift-style search modes to perform rich reasoning over extracted entities and hierarchical communities. Global queries summarize across communities, local queries focus on specific entities, and drift queries combine both approaches.

Can I use vector search and graph embeddings together for RAG over private data?

Vector search and graph embeddings combine in the GraphRAG pipeline by chunking data into TextUnits, generating embeddings for semantic retrieval, and storing them alongside the knowledge graph. This enables both similarity-based and relationship-based querying over private data.

What's the best way to extract entities and relationships from documents for a knowledge graph?

The best way to extract entities and relationships is ingesting unstructured text, chunking it into TextUnits, and applying graph construction to identify entities, relationships, and claims. This builds a structured knowledge graph for reasoning over private datasets.