liveBook · Manning

GraphRAG

As explained in Domain-Specific Small Language Models

A retrieval-augmented generation approach that uses knowledge graphs and community summaries to support multihop reasoning over document collections.

GraphRAG extends retrieval-augmented generation with knowledge graphs and community summaries, enabling multihop reasoning across document collections. It models entities as nodes and relationships as edges, then uses related entity groups to produce higher-level summaries. section 14.4

Choose the query strategy according to the retrieval task:

  • Global search answers from indexing-time community summaries, creating intermediate answers for each community before combining them. section 14.1.1 section 14.4
  • Local search combines AI-extracted knowledge-graph entities with source-document chunks retrieved through embeddings. section 14.1.1
  • Indexing persists graphs and related artifacts, while supported vector databases store embeddings for local retrieval. section 14.1.1

Operational workflow

Install GraphRAG, initialize a workspace, run indexing, and query with a selected search method. The implementation is Python-based and can persist artifacts on disk, Azure Blob Storage, or Cosmos DB. section 14.1.1

How Domain-Specific Small Language Models covers it

How deep it goes
Explains global and local query paths, indexing persistence, and deployment constraints without detailing graph-construction internals.
Examples
Uses CLI installation, workspace initialization, indexing, and global or local querying as the operational workflow.
What it assumes
Assumes source documents and retrieval infrastructure, while defining entities, relationships, communities, and summaries as core components.
What you can do after
Operate GraphRAG through its Python package and CLI, selecting global or local search and configuring supported persistence services.
How it connects
Connects knowledge graphs, community detection, community summaries, vector databases, embeddings, and hybrid retrieval.

Also explained in

Compare how 5 books explain GraphRAG →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Domain-Specific Small Language Models. The section links point to the parts of the book it draws on.