All articles

GraphRAG Without the Hype: Most Graph Retrieval Is a Join and a Random Walk

Graph retrieval helps when evidence is connected but hard to find by similarity. Start with existing relationships, bounded joins and Personalized PageRank, then measure whether extraction earns its cost.

One of the strongest arguments against paying for a large LLM-built knowledge graph comes from the team that made GraphRAG famous. Microsoft's follow-up, LazyGraphRAG, removed the upfront LLM extraction and summarization from its indexing pipeline. In its reported evaluation, indexing cost fell to 0.1% of full GraphRAG's cost. A low-cost configuration delivered comparable global answer quality at more than 700 times lower query cost. Microsoft Research, 2024, updated 2025

That should change the starting question for an engineering team. Before commissioning a knowledge graph, ask which relationships your queries need to follow. For many agent workloads, the answer is pleasantly ordinary: service ownership, document authors, linked tickets, group membership. A few lookups and short walks over those relationships can add useful evidence to retrieval. The expensive extraction pipeline needs its own justification.

What GraphRAG actually proved

The original Microsoft GraphRAG addressed a real weakness in conventional retrieval: questions about an entire collection. Ask for the recurring themes across thousands of reports and the ten nearest chunks may give you ten versions of one theme. Microsoft's approach used an LLM to extract entities and relationships, clustered that graph into communities, and generated community summaries in advance. At query time, it combined answers built from those summaries. Its evaluation found more comprehensive and diverse answers to global questions over corpora of roughly a million tokens. Edge et al., From Local to Global

LazyGraphRAG retained a graph. It built one from noun phrases and their co-occurrences, using conventional NLP, and deferred LLM work until queries arrived. The cost comparison above used 5,590 news articles, 100 synthetic questions and LLM judges assessing comprehensiveness, diversity and empowerment. It is evidence that eager LLM processing can be avoided for that workload, rather than a universal cost forecast. LazyGraphRAG evaluation and method

There is also a naming problem. “GraphRAG” can mean Microsoft's particular system, a retriever that follows entity links, or almost any RAG pipeline with a graph somewhere inside it. Those designs retrieve different evidence and pay different costs. Three broader evaluations help separate the claims:

  • Question shape matters. Han and colleagues found ordinary RAG stronger on single-hop, detail-oriented questions, while graph methods performed better on questions requiring several connected facts. Global community summaries could lose the precise details needed for factual answers. The graph design mattered as much as the category label. RAG vs. GraphRAG, revised November 2026
  • A graph is no automatic upgrade. GraphRAG-Bench, published at ICLR 2026, explicitly starts from reports of graph systems underperforming vanilla RAG. It evaluates construction, retrieval and generation across tasks of increasing difficulty, rather than treating a graph as an improvement by definition. Xiang et al., When to use Graphs in RAG
  • Letting the agent search again changes the comparison. Fan and colleagues' RAGSearch preprint standardizes model backbones, retrieval budgets and inference protocols. Multi-round search substantially improves dense RAG and narrows the gap, especially in reinforcement-learning-based settings. Graph retrieval retains an advantage on complex multi-hop questions, with more stable search behavior, when its preprocessing cost can be amortized. Do We Still Need GraphRAG?, April 2026

My reading is practical: add graph retrieval when the missing evidence is reachable through a useful relationship. Keep lexical and semantic search alongside it. An agent can discover some relationships through repeated searches, so a fair baseline should let it try.

Four graph operations worth giving an agent

Consider a support engineer asking: “Which incidents affected services owned by the team that owns Checkout?”

An incident might mention Ledger without ever saying Checkout or naming the owning team. Better embeddings cannot be expected to reconstruct an ownership table that was never in the incident text. Following the IDs makes the connection explicit.

One-hop lookups

A semi-join keeps records whose keys match values from another set of records. It answers questions such as “find documents by these authors” without returning a combined row for every matching pair.

Read Checkout's owner, select services with that owner, then select incidents whose affected service is in that set. The result is INC-41. This is a chain of lookups; each stage supplies keys to the next. No model has to infer who owns Ledger.

Step through this invented dataset to see the keys passed between lookups. The highlighted records are the matches at the current stage.

Checkout and Ledger both have owner Commerce; Search has owner Discovery. INC-41 references Ledger, while INC-42 references Search. First read Checkout's owner: Commerce. Match services with that owner to get Checkout and Ledger, then match incidents against those two service IDs. Only INC-41 matches. Each lookup uses exact stored keys; the complete answer takes a chain of lookups.

Advance or reverse three stages over five invented records. Outlined records match the displayed input keys; their returned values feed the next stage. Exact field matching only, with no text ranking or LLM extraction. Requires JavaScript for controls.

Search engines already have versions of this primitive. Elasticsearch's terms lookup reads field values from a specified document and uses them as exact-match search terms. That is a useful building block, though it is narrower than a general join over arbitrary query results.

Whether one hop is cheap depends on its fan-out. Looking up a team's six services is easy. Expanding an author who owns half the corpus may be expensive. Bound the number of keys and make overflow visible.

Permission joins

In a simple group-based access policy, a document is visible when its allowed groups overlap the caller's groups:

visible(document, caller) =
    document.allowed_groups ∩ caller.groups is not empty

That is a relationship query too. You may implement it as a lookup or compile the caller's groups into a filter. Either way, the server must enforce it as part of retrieval; an agent-supplied filter is not an authorization boundary. Real policies may also need tenant isolation, explicit denies, inheritance and time constraints.

Graph traversal makes late filtering particularly dangerous. Suppose two visible documents are connected only through a restricted incident. A walk that uses that incident and hides it afterward can still expose the connection through rankings, counts or returned paths. Restrict the eligible nodes and edges before walking, and apply the same policy to passages returned as evidence. A summary derived from restricted documents also needs an appropriate access policy. We discuss the broader retrieval boundary in Retrieval Is Where Agent Security Is Won or Lost.

Bounded multi-hop expansion

The ownership example follows a known path. Broader questions often need a neighborhood: start at a service, follow dependencies, then retrieve incident reports about the services reached.

Two or three hops can be useful, provided the relationship types and direction are explicit. depends_on and mentioned_in serve different purposes. Treating every edge as “related” makes a walk easier to implement and harder to trust.

Hop count alone is a poor work budget. A two-hop walk through a company-wide mailing list can reach most of the corpus. Cap edges per node, the next frontier and total work, then apply a separate result-size budget. A context window limits what the model reads; it does not limit what the retriever spent finding it.

One simple ranking method spreads scores from seeds, reducing each contribution with hop distance and multiplying by any edge weight. Keep the original passages and the relationships that led to them. “We found this incident because Ledger and Checkout share an owner” is useful evidence about selection. It does not prove that their failures share a cause.

The next figure adds the two owner nodes and a dependency from Ledger to Search. Increase the hop limit to reach INC-41, then block Ledger. The incident remains allowed, but its only route from Checkout disappears.

Starting at Checkout, one hop reaches Commerce, two reach Ledger, and three reach INC-41 and Search. Discovery and INC-42 require a fourth hop. If Ledger is blocked before traversal, only Checkout and Commerce are reachable at any of the shown limits. Hiding Ledger after the walk would incorrectly preserve access to the route through it.

Calculated breadth-first reachability on seven invented nodes. All six labeled edges are traversable in both directions; there are no fan-out caps or scores. Blue outlines and hop labels mark reached nodes. The source graph stays visible to explain the blocked route; a real API must not expose inaccessible nodes or edges. This is a reachability example, not a production authorization implementation. Requires JavaScript for controls.

Personalized PageRank

Personalized PageRank, or PPR, offers another way to rank a neighborhood. Imagine repeatedly following an edge, but regularly restarting at entities identified in the question. The resulting visit distribution favors parts of the graph connected to those seeds. Implementations usually calculate the distribution iteratively rather than simulate individual walkers.

The restart rate controls how locally the score stays concentrated. Edge weights, direction and highly connected hubs also affect the result. PPR produces a relevance signal, not a probability that a statement is true, and a high score does not prove that a node satisfies every condition in the question.

On the same graph, try a lower restart probability to spread visits farther from Checkout. Then switch the seed to Search. Here all seven nodes are eligible: the earlier figure's hop and access controls do not carry over.

Personalized PageRank repeatedly follows a link or restarts at the query seed. Frequent restarts concentrate visits near that seed; less frequent restarts spread more visits across this connected graph. Switching the seed from Checkout to Search changes the scores even though the edges stay fixed. Scores describe the walk's visit distribution, not factual confidence or measured answer quality.

Computed PPR on the same seven-node graph, with all nodes allowed, equal edge weights and both traversal directions. Percentages sum to 100% before rounding; every bar uses a fixed 0–100% scale. The control is restart probability (one minus the continuation probability), with no hop cutoff. Relation types are treated equally for illustration; no passage scoring, extraction or benchmark is modeled. Requires JavaScript for controls.

HippoRAG is a concrete example. Bernal Jiménez Gutiérrez and colleagues link query entities to an extracted graph, run PPR, then aggregate node scores into passage scores. The original system uses LLM-extracted relations and synonym links; it does not establish that extraction is unnecessary. HippoRAG, NeurIPS 2024

The published abstract reports comparable or better performance than iterative IRCoT retrieval at 10–20 times lower cost and 6–13 times faster retrieval. These are online retrieval comparisons, excluding the graph's construction cost. The appendix measures 1,000 queries using GPT-3.5 Turbo, with two to four sequential IRCoT rounds and single-threaded API calls. It actually reports a wider cost range than the abstract, so the headline should not be read as a precise universal multiplier. HippoRAG, Appendix G

The useful engineering idea is that a graph computation can recover related evidence without asking an LLM to formulate every intermediate search. Whether that saves money depends on how often the graph is queried and rebuilt.

Start with the relationships already in your data

A useful graph may already be spread across your source systems: foreign keys, email participants, hyperlinks, code imports, ticket references, product compatibility lists. Start by preserving those edges during indexing.

For simple relationships, a document field containing neighbor IDs is enough:

{
  "id": "svc-ledger",
  "owner_ids": ["team-commerce"],
  "depends_on_ids": ["svc-database"],
  "allowed_groups": ["engineering"]
}

This is an illustrative data shape, not a query API. An inverted index on owner_ids can find every service owned by Commerce; reading the field on Ledger gives the forward relationship. When edges need their own timestamps, permissions, weights or source citations, store them as separate records.

Existing structure still needs care. Two systems may use different IDs for the same service. An email recipient is not necessarily an expert on its subject. Today's owner may differ from the owner during an incident. Identity resolution, edge meaning and freshness are part of retrieval quality even when there are zero extraction calls.

LLM extraction earns its place when needed relationships exist only in prose. A project note might say that a launch was blocked by a particular dependency without linking either record. Extracting that relationship can help. Preserve the supporting passage, distinguish an extracted assertion from an authoritative source field, and test whether the new edge recovers evidence your baseline misses.

You can also extract selectively as queries touch documents, borrowing LazyGraphRAG's broader lesson of deferring expensive work. That is an architectural choice, not a description of LazyGraphRAG's noun-phrase indexing. It introduces its own tradeoff: the first query pays more, and a relationship outside the explored documents may remain undiscovered.

For shallow retrieval, keeping edges beside the searchable documents lets joins, text ranking, vectors and filters operate against the same indexed snapshot. It also avoids synchronizing a separate graph copy for every update and deletion. That snapshot can still lag the source systems; putting everything in one engine does not make stale ownership data current.

When a graph database earns its place

A search engine is a reasonable home for bounded neighborhood retrieval. Deep variable-length paths, expressive graph pattern matching, graph-wide analytics and transactions that maintain connected records can justify a dedicated graph database. If your application spends its day asking path questions, use a system designed around them.

Likewise, some biomedical and legal applications depend on curated entity types, relation semantics, provenance and temporal validity. A typed knowledge graph may be the core data model. The cost of building and maintaining it can be justified by what the application needs to represent, independently of RAG.

Corpus-wide synthesis is another distinct requirement. Community summaries address questions about themes that span a collection. Facets can tell an agent how reports are distributed across products, dates or categories, but counts do not explain an emerging theme in free text. Agents Need Facets, Not Just Top-K covers the structured part of that problem. GraphRAG-style summarization addresses a different part, and does not by itself require a dedicated graph database.

Choose those costs deliberately. Precomputed summaries introduce refresh work; lazy approaches move work onto queries. Neither is automatically cheaper for every traffic pattern.

Choose the operation, then measure the task

Use the question's evidence requirements to choose a starting point:

Question or requirement Start with Watch for
A fact stated in a passage Hybrid keyword and vector search Missing exact identifiers or restrictive filters
Records connected by a known key One-hop lookup or semi-join High fan-out and stale IDs
Several facts connected through entities Seed retrieval plus bounded expansion; test PPR ranking Wrong seeds, irrelevant edge types and missing evidence
Themes across the corpus Community summaries or query-time synthesis; facets for structured distributions Coverage, refresh cost and summary permissions
Access control Server-enforced permissions throughout retrieval and traversal Hidden nodes influencing results after late filtering
Deep paths and graph patterns A graph database Path explosion and evidence provenance

Evaluate on questions your users actually ask, including questions ordinary search already answers well. Compare hybrid search, an agent allowed repeated searches, and the same agent with graph operations. Hold the model and answer budget steady. Record supporting-evidence recall and answer correctness alongside latency, model calls, indexing cost and refresh cost. A graph that retrieves a persuasive but irrelevant neighborhood has not improved the task.

A public email corpus such as Enron could support a reproducible experiment using sender, recipient and thread relationships without LLM edge extraction. It would still need labeled questions, an identity-mapping policy and measured results before anyone could claim a quality or latency win. “Zero extraction calls” describes how edges were obtained; it does not mean zero indexing work.

Where WarpSearch fits

WarpSearch's graph search follows this approach inside an ordinary collection. lookup supplies semi-joins for relationships and ACL membership. expand collects neighborhoods up to three hops away, with spreading-activation or PPR ranking. PPR runs over the collected subgraph, so it cannot recover nodes excluded by the expansion limits. A reset_field can adjust seed restart weights for specificity. Shortest and k-shortest paths can return edge records as evidence.

Collection access controls apply throughout traversal: a node the caller cannot see is not returned, counted or used as an intermediate step. Agents get graph_neighbors, graph_paths and graph_expand through MCP. Node and edge budgets bound the neighborhood; passage selection still needs to respect the model's token budget.

Start with one question that your current retriever misses. Identify the relationship that would lead to the missing evidence, preserve it, and measure the result. That gives you a reason to build a graph—and a way to tell whether it helped.

Cookie settings

Optional tracking stays off until you choose it. Your choice applies to this browser for 180 days. Read the details.

Essential storage keeps you signed in, protects forms, and remembers this choice. It is always available.