Skip to content

Local Retriever

Alternative Names

  • Microsoft GraphRAG

Required Graph Shape

Lexical Graph with Extracted Entities and Community Summaries

Description

The user question is embedded using the same embedder that has been used before to create the entity embeddings. A vector similarity search is executed on the entity embeddings to find k (number previously configured by developer / user) most similar entities. A graph traversal starting from the found entities is executed.

Usage

This pattern is useful for knowledge exploration around specific entities. The retriever will find all connected entities and hence all relationships to other entities within the complete dataset. 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

Existing Implementations

Example Implementations