
GraphRAG is retrieval-augmented generation (RAG) where retrieval uses both vector similarity and graph traversal. Similarity search finds the passages or nodes that match the question by meaning. Graph traversal then follows typed relationships out from those matches (who filed this, which system it covers, which team owns that system) and brings the connected facts along. The LLM gets a small subgraph instead of a flat list of chunks, so it can answer questions that depend on how things are connected, and cite the path it used.
This guide covers what GraphRAG is, how it differs from traditional RAG, when it is worth the extra work, and how to implement it step by step. The runnable examples use SynapCores, where the vector hop and the graph traversal run in one Cypher statement; the concepts apply to any stack.
We build SynapCores. Every query below ran on SynapCores 2.4.3 Community Edition, which is free. The sections on what GraphRAG is and when to use it hold whatever you build on.
What GraphRAG is (and isn't)
A GraphRAG retrieval has four stages. You can run them as separate calls or fuse them into one query, but conceptually they are:
1. Seed: find the top-k chunks or nodes by similarity to the question
2. Expand: walk N hops out from the seeds along typed relationships, with filters
3. Rank: score the expanded subgraph (relevance, recency, path length)
4. Pack: hand the LLM the text, the nodes and the relationships, and ask it to cite them
Stage 2 is what makes it GraphRAG, and it is the stage most teams skip. They retrieve five chunks and hope the LLM can connect them. It can't, because the relationships were never in the context window.
What GraphRAG isn't:
- It isn't "store your vectors in a graph database." Vectors that sit next to nodes don't make GraphRAG. You need relationship traversal in the retrieval path.
- It isn't one algorithm. Microsoft's GraphRAG library builds community summaries over an LLM-extracted graph; Neo4j's
neo4j-graphragpackage pairs vector retrievers with Cypher expansion; LlamaIndex's PropertyGraphIndex retrieves paths plus source text. All are GraphRAG with different trade-offs. See how GraphRAG works with Neo4j, and the alternatives for a side-by-side. - It isn't only for document knowledge graphs. Any data with real relationships qualifies: customers and accounts, papers and citations, tickets and resolutions, devices and cards in a fraud ring, services and their owners.
GraphRAG vs traditional RAG
"Traditional RAG" is the pattern from the original 2020 RAG paper that most chatbot tutorials follow:
- Split the documents into chunks.
- Embed each chunk and store the vectors in an index.
- At question time, embed the question and fetch the top-k most similar chunks.
- Paste them into the prompt and let the LLM write the answer.
There is no model of what the chunks are, who they belong to or how they relate. That works well for questions with one chunk-shaped answer ("what is the refund policy?"). GraphRAG keeps the same vector index and adds entities, typed relationships between them, and a retrieval step that expands along those relationships.
Four failures traditional RAG can't fix
- Multi-hop synthesis. Chunk A says "Account 42 belongs to Org 7"; chunk B says "Org 7 had a billing incident in March". Similarity search may return both, but nothing tells the LLM they are connected. GraphRAG returns the
Account 42 -[:BELONGS_TO]-> Org 7edge with both. - Entity disambiguation. "Did the user reset their password?" matches a thousand chunks. With a graph you scope retrieval to this user's tickets first, then search by meaning inside that scope.
- Time. Embeddings capture what a fact says, not when it stopped being true. Relationships can carry
valid_fromandvalid_to, so retrieval filters out facts that no longer hold. - Path citations. "Chunk #4837" is a citation. "Account 42 → Org 7 → Incident 19 → described in chunk #4837" is an audit trail a reviewer can follow.
Side by side
| Traditional RAG | GraphRAG | |
|---|---|---|
| Retrieval returns | A ranked list of chunks | Chunks plus the nodes and relationships around them |
| Answers well | "What does the corpus say about X?" | "How is X connected to Y, and what supports it?" |
| Citations | Per chunk | Per path |
| Time to a first version | Hours: chunk, embed, query | Days to weeks: schema design and entity extraction |
| Moving parts | One vector index | Vector index + graph (+ sync between them, unless one engine holds both) |
| Query cost | One similarity search | Similarity search plus a traversal; measure the added latency on your data |
The biggest hidden cost of GraphRAG is schema design: deciding what counts as an entity, which relationships matter and how to extract them. A graph whose only edge is (Document)-[:HAS_CHUNK]->(Chunk) is a list with extra steps; it adds latency and no signal.
When to use GraphRAG (and when not to)
Use GraphRAG when the question shape is relational:
- "Which other accounts in this customer's organization hit the same issue?" (org graph)
- "Which devices share a card with the flagged account?" (fraud graph)
- "Which runbooks cover the system that is down, and who is on call for it?" (ops graph)
- "Who else cited this paper, and what did they conclude?" (citation graph)
In each case the answer is a path. Traditional RAG can sometimes stumble onto the right chunks, but it can't express the path, so it can't filter on it, reproduce it or cite it.
Stay with traditional RAG when:
- the content is genuinely flat: FAQ answers, product descriptions, standalone articles;
- most questions can be answered from one chunk;
- nobody on the team can design and maintain a graph schema;
- the latency budget can't absorb a traversal step (autocomplete, for example).
A quick test: take 50 real user questions and label each "one chunk would answer it" or "needs connected facts". If more than about one in five need connected facts, GraphRAG is probably worth building.

