This one didn’t start as a research project. It started with a database decision.
I’ve been building a personal project: it includes a tool that answers questions from a library of books and long-form writing. It’s only as good as the passages it finds.
It finds them the plain way: keyword search and embedding search, run side by side.
For a while it lived on my laptop. Moving it onto a proper server meant choosing where the index should live, and I’d pencilled in Postgres.
Then I second-guessed myself. Maybe a graph database was the better fit?
The database part was quick to settle. All the tool really does is ranked text search, and the graph databases I looked at were the weaker options for that.
But the question wouldn’t leave me alone, because graph retrieval isn’t really about the database. It’s a claim: let a language model read everything first and map how it all connects, and you’ll get better answers.
That’s an expensive claim to take on trust. My library runs to hundreds of thousands of passages, and a graph needs at least one model call for every one of them.
And I could find only one study that had tested it against the kind of search I already had, on anything like a shelf of books - and it left a lot open.
So I ran it myself, on a separate library I could write about openly.
I tested two knowledge-graph retrieval tools, HippoRAG 2 and LightRAG, against a plain hybrid of keyword and embedding search on 48 public-domain books and 220 questions, with the same amount of retrieved text for every system.
Neither beat the hybrid on any of seven measures I fixed in advance, and LightRAG was clearly worse on five - but the graphs were built with a small model on one library, so this is a result about this setup, not about graph retrieval in general.
The Question
The plain recipe is simple. Cut the books into passages, index them, pull back the passages that match a question, and hand those to a language model.
“Graph RAG” methods add a step. A language model reads every passage first, extracts the people, places and things in it and how they relate, and builds a knowledge graph. Retrieval then walks the graph. The promise is better answers to questions that need facts from several places, and to broad questions about the whole collection.
So the practical question is whether that buys better evidence and better answers than the strongest cheap alternative.
For most teams, that alternative isn’t embedding search alone - which is what graph papers usually compare against. It’s a hybrid, the same idea as what I already had: keyword search and embedding search run side by side. In this test that means BM25 and an embedding model, with their two rankings merged by reciprocal rank fusion (RRF).
One question, two ways to search the shelf
Both get the same budget of retrieved text. Only the route to the evidence differs.
Graph retrieval
HippoRAG 2, LightRAG: match entities, then walk the links
Hybrid search
BM25 and embeddings rank separately, then merge
Someone Got There First (Sort Of)
That one study is a 2026 master’s thesis from Lund University, When Does Graph RAG Pay Off? It put a BM25 + embedding RRF hybrid against LightRAG on about 1.1 million tokens of public-domain novels. The hybrid was ahead on fact retrieval (47.5 against 42.1) and complex reasoning (48.7 against 44.0). LightRAG was ahead on summarisation (60.9 against 55.1).
But it tested one graph method, reported no intervals, and let LightRAG send several times as much retrieved text as the hybrid (about 22,000 tokens against 4,400 on the one corpus where it measured this).
Other comparisons leave keyword search out altogether. GraphRAG-Bench puts seven graph methods against embedding search only, on the same novels. Plain retrieval matched the graphs on fact questions there, and HippoRAG 2 led on multi-step reasoning. Han et al. found plain retrieval level with or ahead of graph methods on novel questions (57.1 against 56.5 for HippoRAG 2), again with no keyword component.
So four things were still open: a second graph method against the hybrid, a larger multi-book library, the same amount of retrieved text for every system, and uncertainty on every comparison.
That makes this an extension of earlier work, not a first.
What I Ran
The library. 48 public-domain books from Project Gutenberg, 3.04 million words, chosen by a seeded random draw from the books in the NarrativeQA test set. Mostly novels, with five plays or verse works and four works of non-fiction. Every system indexed the same 12,183 passages of at most 300 words.
The questions. 220 of them, fixed before any system saw the library:
- 100 lookup questions written by people, taken from NarrativeQA (about two per book).
- 50 lookup questions written from randomly drawn passages.
- 40 join questions that need two passages: 20 within one book, 20 across two books.
- 15 “which books...?” questions with a gold list of titles, and 15 open questions about themes across the library.
I generated the last three groups with a language model (Claude Fable 5.2), from seeded random draws, with no retrieval system involved.
One caveat matters for everything below. A model writing a question from a passage reuses its words. About half the content words of those questions occur in the source passage, which favours keyword search. The NarrativeQA questions were written by people from plot summaries, not from the text, and don’t have that bias.
The systems. BM25 alone. Embeddings alone (nomic-embed-text, run locally). The hybrid of the two (RRF, k = 60), which is the baseline. HippoRAG 2. LightRAG in its default “mix” mode and in a graph-only mode. And the hybrid with HippoRAG 2’s ranking fused in as a third list.
Both graph tools ran with their default settings and the model they were published with (gpt-4o-mini), which also wrote every answer from one shared prompt. No system used a reranker. Every system got the same 6,000 tokens of retrieved text per question.
The scoring. Three things. Whether the passages a question was written from reached the model’s context. Whether the answer was right, graded blind against reference answers by a stronger model (gpt-6.1-terra). And, for open questions, a blind pairwise comparison against the hybrid, with both answer orders judged. The order matters: Zeng et al. showed that the model-judged “win rates” many graph papers rely on can move by more than 30 points with answer order alone.
Differences come with 95% paired bootstrap intervals. Before running anything, I wrote down that a difference would only count as real if its interval excluded zero and it was at least five points, and I fixed 21 primary comparisons.
I also metered every model call, so the costs further down are measured, not estimated.
What Happened
Neither graph system beat the hybrid on any of the seven planned measures.
Here are all 21 planned comparisons: each graph system minus the hybrid, with its interval.
Graph retrieval minus the hybrid baseline
Difference in percentage points, with 95% paired bootstrap interval. Right of zero: the graph system did better.
- HippoRAG 2
- LightRAG mix
- Hybrid + HippoRAG 2
| Measure | HippoRAG 2 | LightRAG mix | Hybrid + HippoRAG 2 |
|---|---|---|---|
| Passage lookup, source passage retrieved (n = 50) | −4.0 [−14.0, +6.0] | −12.0 [−22.0, −4.0], counted as real | +2.0 [0.0, +6.0] |
| Two-passage join, both source passages retrieved (n = 40) | −7.5 [−20.0, +5.0] | −22.5 [−37.5, −7.5], counted as real | −2.5 [−12.5, +5.0] |
| Lookup, human-written, answer judged correct (n = 100) | −3.0 [−10.0, +4.0] | −13.0 [−20.5, −6.0], counted as real | +1.0 [−2.0, +4.0] |
| Passage lookup, answer judged correct (n = 50) | −4.0 [−16.0, +6.0] | −13.0 [−23.0, −5.0], counted as real | 0.0 [−6.0, +6.0] |
| Two-passage join, answer judged correct (n = 40) | −16.2 [−26.2, −7.5], counted as real | −18.8 [−32.5, −5.0], counted as real | −5.0 [−17.5, +6.2] |
| “Which books …?” lists, title F1 (n = 15) | −0.3 [−7.8, +7.2] | −7.0 [−16.6, +1.5] | −0.2 [−7.8, +7.9] |
| Open theme questions, wins minus losses (n = 15) | −43.3 [−83.3, +6.7] | −46.7 [−86.7, +6.7] | −40.0 [−80.0, 0.0] |
- HippoRAG 2 couldn’t be told apart from the hybrid on six measures and was worse on one: answers to join questions, 35.0% judged correct against 51.2% (16 points lower, interval 7.5 to 26).
- LightRAG was worse on five of the seven, by 12 to 22.5 points, and couldn’t be told apart on the two theme measures.
- Hybrid + HippoRAG 2 was the hybrid again. On six measures the difference sat between 5 points down and 2 points up, none of them real. On open themes it won 3 comparisons and lost 9, which 15 questions can’t settle either way.
The answer scores behind the chart, with 6,000 tokens of context for every system:
| System | Human lookups | Passage lookups | Joins | Title F1 | Themes won / lost |
|---|---|---|---|---|---|
| No retrieval | 34.5 | 13.0 | 17.5 | n/a | n/a |
| BM25 alone | 39.5 | 90.0 | 53.8 | 37.7 | 8 / 6 |
| Embeddings alone | 48.5 | 80.0 | 36.2 | 44.0 | 5 / 7 |
| Hybrid (baseline) | 50.0 | 90.0 | 51.2 | 49.0 | baseline |
| HippoRAG 2 | 47.0 | 86.0 | 35.0 | 48.6 | 4 / 11 |
| LightRAG “mix” | 37.0 | 77.0 | 32.5 | 41.9 | 4 / 11 |
| Hybrid + HippoRAG 2 | 51.0 | 90.0 | 46.2 | 48.8 | 3 / 9 |
Percent of answers judged correct on the 100 human-written lookups, the 50 passage lookups and the 40 joins. The last two columns are title F1 on the 15 “which books?” questions, and open theme comparisons won and lost against the hybrid, out of 15. The hybrid’s 50.0 has an interval of 40.5 to 59.5, which shows how coarse 100 questions are. LightRAG’s graph-only mode scored within 5 points of “mix” in every column, so I’ve left it out.
Three things stood out.
The hybrid was the safe choice, not just a good one. Keyword search alone was about 10 points behind it on the human-written questions, which use different words from the books. Embedding search alone was 15 points behind on joins. On answer quality, the hybrid was at or near the better of the two in every column.
And with no retrieval at all, the model was still right on a third of the human-written questions. It evidently knows many of these books from training, which narrows every gap in that column.
Joins are where graphs are meant to help, and where they did worst. Both source passages reached the context for the hybrid in 42.5% of join questions, for HippoRAG 2 in 35%, and for LightRAG in 20%. On the 20 joins that cross two books, HippoRAG 2’s answers were no better than no retrieval at all (25% each). BM25 did very well here (65% of pairs retrieved), but part of that is the word-overlap bias I mentioned, so I wouldn’t read it as “keyword search wins at multi-hop”.
LightRAG lost passages to its own summaries. At the equal budget its context held 9 passages where the others held 17, because entity and relation descriptions took the rest. On lookup questions, that trade didn’t pay.
More Text Helped More Than a Graph Did
LightRAG is designed to send far more text than 6,000 tokens. So I also ran it with its default budget: about 21,000 tokens.
That run was the one place a graph system came out ahead. On open theme questions it beat the 6,000-token hybrid in 10 of 15 judged comparisons and lost 3. The Lund thesis saw the same direction for summarisation.
But it had 3.6 times more text.
So, after seeing that result, I added one control that wasn’t in the plan: the same hybrid ranking, filled to exactly the context size LightRAG had for each question.
That hybrid beat the 6,000-token hybrid just as often (11 of 15, 3 lost). Head to head, LightRAG won 9 and the same-size hybrid won 6, which 15 questions can’t distinguish from a tie. On lookups and joins, the same-size hybrid was well ahead of LightRAG (55.5% against 41.0%, and 63.7% against 43.8%).
| System | Human lookups | Passage lookups | Joins | Title F1 | Themes won / lost |
|---|---|---|---|---|---|
| LightRAG “mix”, default budget | 41.0 | 89.0 | 43.8 | 50.5 | 10 / 3 |
| Hybrid, same amount of text | 55.5 | 90.0 | 63.7 | 52.6 | 11 / 3 |
Both rows had about 21,000 tokens of context. Theme comparisons are against the 6,000-token hybrid.
The largest improvement in the whole study came from giving the plain hybrid more context: joins went from 51.2% to 63.7%. It costs 3.4 times as much per answer and needs no new index.
One caution: I added this control after seeing results, so treat it as exploratory.
Where the Graph Did Help
- HippoRAG 2 retrieved better than the embedding search it’s built on. The source passage was in context for 90% of passage lookups against 84%, and both passages for 35% of joins against 25%. That fits its paper, which reports it level with the best embedding model on NarrativeQA (F1 25.9 against 25.7), with BM25 well behind (18.3). But adding BM25 to the same embeddings gained more, for free.
- LightRAG at its default budget was 9 to 6 ahead of the same-size hybrid on open themes. This study is too small to say whether that edge is real.
- On the 21 planned comparisons: nowhere.
What It Cost
| Hybrid | HippoRAG 2 | LightRAG | |
|---|---|---|---|
| Model calls to build the index | 0 | 24,366 | 27,680 |
| Tokens in / out (millions) | 0 | 15.8 / 3.0 | 67.5 / 10.1 |
| Cost with gpt-4o-mini | $0 | $4.16 | $13.74 |
| Model time, calls laid end to end | 0 | 18.4 hours | 47.8 hours |
| Index on disk | 77 MB | 849 MB | 1,142 MB |
| Retrieval per question | 0.04 s | 1.8 s + one model call | 3.2 s + one model call |
At these prices the graphs are cheap: $1.37 and $4.52 per million words.
The real costs are elsewhere. An index that takes an hour or more to build with dozens of calls in parallel (the hybrid took 4.4 minutes of local embedding). A model call on every query. And fragility.
HippoRAG 2 (an alpha release, 2.0.0a5) abandoned its whole build because 6 of 12,183 model answers were malformed JSON - after every call had been paid for. LightRAG finished its build and exited normally with two of the 48 books marked as failed, after a transient provider error that my own proxy didn’t retry.
Both were recoverable. The second would have gone unnoticed if I hadn’t checked the build’s status file.
The whole study cost $21.86 in model calls.
The Limits
- The graphs were built by a small model. gpt-4o-mini is what both tools were published with, but a stronger model may extract a better graph. I didn’t test one.
- One library, 220 questions. The sets are 100, 50, 40, 15 and 15 questions. “Couldn’t be told apart” means exactly that. The theme sets especially could hide large differences either way. After correcting for 21 comparisons, only LightRAG’s deficit on the human-written lookups stays below the usual 0.05 threshold.
- Two graph tools, untuned, no reranker. Microsoft GraphRAG, whose community summaries target broad questions, wasn’t run. The hybrid wasn’t tuned either.
- Authored questions favour keyword search, as described above. The human-written set doesn’t, and there the graphs did no better.
- The equal budget is a choice. It’s the fair comparison, and it handicaps LightRAG’s design. That’s why its default-budget run is reported too.
- The judge is a model, and nobody has checked its grades by hand yet. A blinded sample of 40 is set aside for that. It did give the same verdict in both answer orders for 113 of 120 pairwise comparisons.
- Public-domain fiction is not your corpus. Manuals, contracts or tickets are built differently from novels, and the comparison may come out differently on them.
What I’d Try Next
- Give your hybrid more context first. It’s usually a one-line change, and it was the biggest gain here.
- Add a reranker to both sides. The Lund thesis found it mattered more than any other component.
- Rebuild the graphs with a stronger extraction model and see whether HippoRAG 2’s edge over embedding search grows enough to pass the hybrid. Expect to pay ten times the build cost above, or more.
- Test broad questions properly. Several hundred of them, written by people, with Microsoft GraphRAG included and every system at the same context size.
- Run it on your own documents. That’s the only version of this result that tells you about your corpus. For scale, the two-book pilot here cost $1.61.



