Skip to content

Graph RAG

Definition

Graph RAG is a retrieval-augmented generation architecture where the source of knowledge is a knowledge graph. Unlike vector search over flat chunks, Graph RAG uses entity relationships to extract relevant subgraphs and form context.

Architecture

graph LR
    A[Query] --> B[Entity Extraction]
    B --> C[Graph Search]
    C --> D[Subgraph Formation]
    D --> E[Response Generation]

Advantages

  • Semantic relationships between facts are taken into account.
  • Support for multi-step reasoning.
  • Reduced hallucinations due to structured data.

See also