GraphRAGMode

Enums · AiDotNet.Enums

Specifies the retrieval mode for enhanced GraphRAG.

For Beginners

These modes represent different strategies for querying a knowledge graph:

  • Local: Start from specific entities and explore their neighborhoods (best for specific questions)
  • Global: Use community summaries for broad, thematic answers (best for “what are all X?” questions)
  • Drift: Start broad with community summaries, then iteratively refine locally (best for complex queries)

Fields

Field Summary
GraphRAGMode Drift DRIFT search: starts with global community summaries, then iteratively refines via local exploration.
GraphRAGMode Global Global search: community-level retrieval using pre-computed community summaries.
GraphRAGMode Local Local search: entity-centric retrieval via graph traversal from matched entities.
int value__