ReportingType
The reporting configuration type for the pipeline. Module:graphrag.config.enums
Base class: str, Enum
Values
str
default:"file"
The file reporting configuration type. Writes reporting output to local files.
str
default:"blob"
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
str
default:"asyncio"
Use Python’s asyncio for asynchronous operations. Provides true async/await concurrency.
str
default:"threaded"
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
str
default:"local"
Local search method. Searches within a local context using entities and relationships.
str
default:"global"
Global search method. Performs map-reduce search across community reports.
str
default:"drift"
DRIFT search method. Dynamic reasoning and inference with followup trajectories.
str
default:"basic"
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
str
default:"standard"
Traditional GraphRAG indexing, with all graph construction and summarization performed by a language model. Provides highest quality but slower performance.
str
default:"fast"
Fast indexing, using NLP for graph construction and language model for summarization. Significantly faster than standard indexing.
str
default:"standard-update"
Incremental update with standard indexing. Updates an existing index with new documents using LLM-based extraction.
str
default:"fast-update"
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
str
default:"regex_english"
Standard extractor using regex. Fastest option, but limited to English language text.
str
default:"syntactic_parser"
Noun phrase extractor based on dependency parsing and named entity recognition (NER) using SpaCy. More accurate than regex but slower.
str
default:"cfg"
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
str
default:"graph"
Graph modularity metric. Standard modularity calculation for community detection.
str
default:"lcc"
Largest connected component modularity metric.
str
default:"weighted_components"
Weighted components modularity metric. Takes edge weights into account when calculating modularity.