GraphRAGOptions
Options & Configuration · AiDotNet.RetrievalAugmentedGeneration.Graph
Configuration options for the enhanced GraphRAG retrieval system.
For Beginners
These settings control how GraphRAG queries the knowledge graph:
- Mode: Local (entity-focused), Global (community summaries), or Drift (global→local refinement)
- MaxHops: How far to traverse from matched entities in local mode
- CommunityDetection: Settings for the Leiden algorithm used in Global/Drift modes
Constructors
| Constructor | Summary |
|---|---|
GraphRAGOptions() |
Properties
| Property | Summary |
|---|---|
GraphRAGMode? Mode { get; set; } |
Retrieval mode. |
LeidenOptions CommunityDetection { get; set; } |
Options for Leiden community detection (used in Global and Drift modes). |
int? DriftMaxIterations { get; set; } |
Maximum iterations for DRIFT mode’s local refinement phase. |
int? MaxHops { get; set; } |
Maximum traversal hops from matched entities in Local mode. |