What is GraphRAG?

Definition

GraphRAG is a form of retrieval-augmented generation that uses relationships between entities to gather context. For example, it can connect a product to its manufacturer and then find the country where that manufacturer is based.

An implementation can combine graph traversal with text or vector search. The answer still depends on the completeness and accuracy of the graph and on how the system retrieves information from it.

ELI5

Imagine following strings on a board that connect people, places, and events. The strings can lead you from one clue to another.

GraphRAG gives a model connected clues from a graph before it writes its answer. A wrong or missing string can still lead it astray.

When can a graph help retrieval?

It can help when a question requires following relationships or collecting information across several linked entities.

Can GraphRAG use text search too?

Yes. A system can combine graph retrieval with keyword or vector search.

  1. Nyah Macklin in blue and Jeremy Adams Casañas in white flank the blue and white headline RAG Needs Connections on black.
Definition card for GraphRAG: What is GraphRAG?

GraphRAG retrieves connected information from a graph to help a model answer a question.