Overview of the GraphRAG Indexing Dataflow
mainThe default GraphRAG indexing workflow transforms raw text documents into a structured knowledge model through six distinct phases:
- Compose TextUnits: Documents are split into configurable chunks called
TextUnits(default size is 1200 tokens). - Document Processing: Links
TextUnitsback to their originalDocumentsto maintain provenance. - Graph Extraction: Extracts
Entities,Relationships, and (optionally)Claims(Covariates) fromTextUnitsusing an LLM. - Graph Augmentation: Uses the Hierarchical Leiden Algorithm to detect a hierarchy of
Communitieswithin the graph. - Community Summarization: Generates and summarizes
Community Reportsto provide high-level and low-level overviews of graph clusters. - Text Embedding: Generates embeddings for
TextUnits, entity descriptions, and community report content for vector search.