PaPoo
cover

What is graph RAG?

Graph RAG, short for Graph Retrieval-Augmented Generation, is a way to help an LLM answer questions by retrieving information from a graph of connected entities and relationships instead of, or in addition to, plain text chunks.

Why it matters

Classic RAG works well when the answer lives in a few relevant text passages. But some questions are really about relationships: who depends on whom, how events connect, which product is linked to which system, or how a concept appears across many documents.

Graph RAG is useful when you need:

In practice, teams reach for graph RAG when simple vector search starts missing important context or returning isolated snippets that don’t show the full picture.

How it works

At a high level, graph RAG adds a graph layer to retrieval.

  1. Build a graph from your knowledge

    • Nodes might be people, products, documents, tickets, tables, or concepts.
    • Edges represent relationships such as “mentions,” “depends on,” “owned by,” or “causes.”
  2. Retrieve through the graph

    • Given a question, the system finds relevant starting nodes.
    • It then expands to nearby connected nodes, often following a few hops to collect related context.
  3. Feed the gathered context to the LLM

    • The model gets a curated set of nodes, edges, and supporting text.
    • It uses that structured context to generate an answer, sometimes with citations back to source material.

A common pattern is to combine graph search with text retrieval: the graph helps you find the right neighborhood, and the source documents provide the evidence.

Tiny concrete example

Question: “Which services are affected if payment gateway A goes down?”

A graph might contain:

The retriever can walk those links and provide the LLM with the affected services and supporting documents, instead of only a handful of isolated text chunks mentioning “payment gateway A.”

Common pitfalls / when NOT to use it

Related terms

同じ著者の記事