Global Community Summary Retriever
Alternative Names
- Microsoft GraphRAG
- Global Retriever
Required Graph Shape
Lexical Graph with Extracted Entities and Community Summaries
Description
Given the user question and a given Community level, the Community Summaries are retrieved and given to the LLM.
Usage
This pattern is useful for questions that have a global character. Examples would be summarizing the content of the whole database or looking for topic structures across the whole data. The effort of setting up the required Graph Pattern is quite high since there are a lot of steps to be taken: entity & relationship extraction, Community detection and Community summarizations. It needs to be considered which of these tasks shall be executed by LLMs and which tasks can be handled differently to keep the pre-processing cost acceptable.
Further reading
- From Local to Global:A Graph RAG Approach to Query-Focused Summarization (April 2024)
- Implementing ‘From Local to Global’ GraphRAG with Neo4j and LangChain: Constructing the Graph (July 2024)
- Integrating Microsoft GraphRAG into Neo4j (July 2024)