liveBook · Manning

Global search

As explained in Essential GraphRAG

Global search is a GraphRAG retrieval technique that answers broad queries by aggregating information from summaries of communities across an entire dataset.

Global search answers broad, thematic questions by using precomputed summaries of graph communities instead of retrieving individual text chunks through vector similarity. It converts fragmented information into a cohesive response across the dataset. section 7.3.1 section 7.0

Implement the retrieval flow as a map-reduce pipeline:

  • Map the user query over each selected community report, producing intermediate key points with numerical importance ratings. section 7.3.1
  • Reduce the intermediate results by filtering and aggregating the most important points. section 7.3.1
  • Give the refined points to an LLM to synthesize the final answer. section 7.3.1

Choose the community level deliberately. Lower-level reports preserve more detail but require more LLM calls and processing time; higher-level reports improve efficiency while risking lost granularity. section 7.3.1

Story-level question

Calling global_retriever("What is this story about?") applies the strategy to a broad thematic query, aggregating evidence across community summaries rather than focusing on one entity. section 7.3.1

How Essential GraphRAG covers it

How deep it goes
Explains map-reduce retrieval, prompts, ratings, hierarchy choices, and implementation structure, but defers detailed reduction code.
Examples
Uses a Neo4j community-summary query, an LLM map loop, and the question “What is this story about?” as an end-to-end example.
What it assumes
Assumes a GraphRAG knowledge graph with detected communities and generated community-level summaries.
What you can do after
Apply it via Neo4j and an LLM to aggregate community reports into answers for broad questions.
How it connects
Connects GraphRAG with community detection, community summaries, map-reduce, local search, and vector similarity search.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Essential GraphRAG. The section links point to the parts of the book it draws on.