ReportingType
The reporting configuration type for the pipeline. Module:graphrag.config.enums
Base class: str, Enum
Values
The file reporting configuration type. Writes reporting output to local files.
The blob reporting configuration type. Writes reporting output to Azure Blob Storage.
Example
AsyncType
Enum for the type of async to use for concurrent operations. Module:graphrag.config.enums
Base class: str, Enum
Values
Use Python’s asyncio for asynchronous operations. Provides true async/await concurrency.
Use thread-based concurrency for asynchronous operations. Default mode for most operations.
Example
SearchMethod
The type of search to run. Module:graphrag.config.enums
Base class: Enum
Values
Local search method. Searches within a local context using entities and relationships.
Global search method. Performs map-reduce search across community reports.
DRIFT search method. Dynamic reasoning and inference with followup trajectories.
Basic search method. Simple vector similarity search.
Example
IndexingMethod
Enum for the type of indexing to perform. Module:graphrag.config.enums
Base class: str, Enum
Values
Traditional GraphRAG indexing, with all graph construction and summarization performed by a language model. Provides highest quality but slower performance.
Fast indexing, using NLP for graph construction and language model for summarization. Significantly faster than standard indexing.
Incremental update with standard indexing. Updates an existing index with new documents using LLM-based extraction.
Incremental update with fast indexing. Updates an existing index with new documents using NLP-based extraction.
Example
NounPhraseExtractorType
Enum for the noun phrase extractor options used in NLP-based graph extraction. Module:graphrag.config.enums
Base class: str, Enum
Values
Standard extractor using regex. Fastest option, but limited to English language text.
Noun phrase extractor based on dependency parsing and named entity recognition (NER) using SpaCy. More accurate than regex but slower.
Noun phrase extractor combining context-free grammar (CFG) based noun-chunk extraction and NER. Balanced approach between speed and accuracy.
Example
ModularityMetric
Enum for the modularity metric to use in graph clustering. Module:graphrag.config.enums
Base class: str, Enum
Values
Graph modularity metric. Standard modularity calculation for community detection.
Largest connected component modularity metric.
Weighted components modularity metric. Takes edge weights into account when calculating modularity.