The question
A language model knows only what its weights absorbed, as of its training cutoff. Anything private, recent or too long-tailed to memorise has to be fetched at inference time. REALM and RAG made that explicit in 2020 by bolting a learned retriever onto a generator. RAG showed that swapping the index updates what the model "knows" without retraining .
Six years on, a practitioner choosing a retrieval layer faces four broad families with loyal fan bases:
- Lexical search: BM25, or literally
grep. Match the words. - Dense RAG: embed chunks as vectors and find nearest neighbours.
- Knowledge graphs (KGs): store facts as entity–relation–entity triples and traverse them.
- GraphRAG: have an LLM build a graph (often with summaries) from your documents, then retrieve through it.
We asked five sub-questions:
- What is each approach, and where did it come from?
- How do they relate? Are they rivals, layers or ingredients?
- What do controlled head-to-head benchmarks show, broken down by question type?
- What does each cost to build and to query?
- Where does each one break, and has agentic search or long context made the question moot?
What we wanted to know
An AI only knows what it learned in training. It does not know new things. It does not know your private files. So it must look things up when you ask. In 2020, two teams joined a search tool to an AI . RAG showed a neat trick. Swap the library, and the AI knows new facts. No retraining needed .
Today, builders pick from four main ways:
- Word search: BM25, or plain
grep. Match the exact words. - Meaning search (dense RAG): turn text into number lists called vectors. Find the closest ones.
- Fact maps (knowledge graphs): store facts as little links. "Paris, capital of, France" is one link.
- GraphRAG: an AI reads your files and draws a fact map, often with summaries. Then you search the map.
We asked five questions:
- What is each way, and where did it come from?
- How do they fit together?
- What do fair tests show, for each kind of question?
- What does each one cost?
- Where does each one fail? Do agents or very long memory make this moot?
Four ways to hand a model knowledge
Lexical retrieval. BM25 comes from the probabilistic relevance framework. Its score multiplies an inverse-document-frequency weight by a term frequency that saturates and is normalised for document length. It treats text as a bag of words, assumes term independence and, for the most part, ignores word position . Its weak spot was mapped decades ago. People rarely choose the same word for the same thing, so exact matching misses relevant items unless many aliases are supported . grep is the crudest member of this family: no ranking at all, just substring or regex hits.
Dense retrieval and RAG. Dense Passage Retrieval trained a BERT dual encoder on question–passage pairs. It beat BM25's top-20 accuracy on four of five open-domain QA sets (Natural Questions: 59.1 to 78.4). BM25 still won on SQuAD, whose questions share many words with their passages . DPR's authors noted that term matching catches highly selective keywords that dense vectors blur. REALM and RAG then made the dense retriever part of the language model . RETRO pushed retrieval to a database of about two trillion tokens, matching much larger models with about 25× fewer parameters .
Knowledge graphs. A knowledge graph is, in the most widely cited definition, "a graph of data intended to accumulate and convey knowledge of the real world" . Nodes are entities and edges are relations. It can be modelled as RDF triples or as a property graph, and it can support deductive reasoning over ontologies . Pan and colleagues' roadmap sorts LLM–KG work into three strands: KGs that enhance LLMs, LLMs that build or complete KGs, and joint "synergised" systems. They frame KGs as precise but incomplete and LLMs as fluent but prone to hallucination. Those pros and cons are argued, not measured . Retrieving a question-specific subgraph that mixes KB facts with linked text predates LLMs .
GraphRAG. Microsoft's GraphRAG starts from a specific complaint: vector RAG "fails on global questions directed at an entire text corpus" . Its indexer works in four steps:
- An LLM extracts entities, relations and claims from each chunk.
- Leiden clustering builds a hierarchy of communities.
- Each community gets a pre-written summary.
- A global query is answered by map-reduce over those summaries .
A wave of variants followed:
- HippoRAG builds a schemaless graph with open information extraction, then runs Personalized PageRank from the query's entities .
- LightRAG swaps community reports for keyword-matched entity and relation profiles, and updates incrementally .
- RAPTOR gets a hierarchy with no graph at all, by recursively clustering and summarising chunks .
- Think-on-Graph sends an LLM agent beam-searching an existing KG . Its successor alternates between graph hops and document retrieval .
- G-Retriever feeds a retrieved subgraph to the model through a graph neural network, not as text .
Four ways to give an AI facts
Word search. BM25 is a scoring rule for documents. Rare words count more. Repeating a word helps, but less each time. Long documents get a small penalty. It treats text like a bag of words. Word order mostly does not matter . Its weak spot is old news. People pick different words for the same thing. Two people chose the same word less than 20% of the time . grep is the simplest word search. It just finds exact text. It does not rank anything.
Meaning search and RAG. DPR trained an AI to match questions to passages by meaning. It beat BM25 on four of five tests. On one, it went from 59.1 to 78.4 . BM25 still won one test, SQuAD. There, questions shared many words with the answers . Exact words still matter for rare names. Then REALM and RAG built search right into the AI . RETRO searched about two trillion words of text. It matched much bigger AIs while being about 25 times smaller .
Fact maps. A knowledge graph is a map of facts about the world . Dots are things. Lines are how things connect . One big review sorts the work into three kinds. Maps can help AIs. AIs can build maps. Or both can work as a team . It says maps are exact but have gaps. It says AIs talk well but make things up. Those are arguments, not test results . Mixing map facts with text is older than chatbots .
GraphRAG. Microsoft made GraphRAG for one problem. Plain search fails on big-picture questions about a whole pile of files . GraphRAG works in four steps:
- An AI reads each chunk and lists things and links.
- It groups linked things into clusters.
- It writes a summary of each cluster.
- To answer, it reads the summaries and combines them .
Many new versions followed:
- HippoRAG builds a map and spreads "attention" out from the question's names .
- LightRAG uses short keyword profiles instead. It can add new files easily .
- RAPTOR builds a tree of summaries with no map at all .
- Think-on-Graph lets an AI walk an existing map step by step . Its next version mixes map walks with text search .
- G-Retriever feeds a piece of the map to the AI as special signals, not words .
How they relate: one design space, three axes
These four families are not mutually exclusive products. They are positions on three independent axes.
Axis 1: How text is represented. Lin's framework splits retrievers into sparse or dense, and learned or unsupervised. BM25 is "an instance of an unsupervised sparse representation"; DPR is learned dense . Lin and the major RAG survey both argue that sparse and dense capture complementary relevance signals .
Axis 2: What unit is retrieved. Text RAG retrieves passages. Graph-based RAG retrieves nodes, triples, paths or subgraphs, and the GraphRAG survey counts classic IR-style KB question answering as a special case . The graph can be curated (Wikidata, Freebase) or built from your own documents by an LLM . That distinction turns out to matter more than any other (see below).
Axis 3: Who drives the search. Retrieval can be one shot, or it can be a loop in which the model decides what to look up next. ReAct interleaved reasoning with search actions . IRCoT showed that chain-of-thought-guided iterative retrieval improves multi-hop QA even with a plain BM25 backend . Self-RAG learned when to retrieve , and Search-R1 trained search calls with reinforcement learning . "Agentic grep" is the extreme corner of this axis: unsupervised sparse matching, raw text units, fully model-driven.
Seen this way, GraphRAG is itself a hybrid. Most implementations still embed text, and the strongest graph methods keep the original passages as retrievable units. HippoRAG 2 adds passage nodes to its graph , and a unified VLDB analysis concludes that "retaining the original text chunks is crucial for accurate question answering" .
What the head-to-heads show
The most useful result of 2025–2026 is that several groups ran controlled comparisons with one generator, shared corpora and results broken down by question type.
Lexical vs dense
BEIR is the classic stress test. Zero-shot across 18 datasets, DPR averaged 47.7% below BM25, ANCE 7.4% below and TAS-B 2.8% below. Only docT5query (+1.6%), ColBERT (+2.5%) and BM25 with cross-encoder reranking (+11%) beat it on average . Modern LLM-based embedders have closed much of that gap. But on reasoning-heavy queries in BRIGHT, an embedder scoring 59.0 on the MTEB retrieval benchmark managed 18.3 nDCG@10, against BM25's 14.5 . On STaRK's semi-structured product knowledge base, BM25 (Hit@1 44.94) beat OpenAI's ada-002 embeddings (39.16) and a GNN-based structured retriever (26.56) .
Fusion is usually the answer, though not always. A SIGIR 2026 reproduction found that reciprocal rank fusion with BM25 lifted a generic BGE embedder from 13.8 to 17.3 nDCG@10. The same fusion slightly hurt a strong reasoning-trained retriever (36.9 to 35.9) . Reciprocal rank fusion itself is a 2009 training-free method that beat Condorcet fusion .
These four are not rival products. They are choices on three dials.
Dial 1: How text is stored. Some tools match exact words. Some match meaning. Some learn from examples, and some do not. BM25 matches words and learns nothing . Experts say word and meaning search notice different things .
Dial 2: What comes back. Plain RAG gives back passages of text. Graph search gives back dots, links, paths or small maps . The map can be made carefully by people. Or an AI can build it from your files . That difference matters a lot, as we will see.
Dial 3: Who drives. Search can happen once. Or the AI can search, think, then search again. ReAct mixed thinking with searching . IRCoT did this with plain BM25 and still did better on hard questions . Self-RAG learned when to search . Search-R1 learned to search by trial and reward . "Agentic grep" means the AI runs grep itself, again and again.
So GraphRAG is really a mix. Most versions still use meaning search. The best ones keep the original text too. HippoRAG 2 adds the text passages to its map . One big study says keeping the original text chunks is key .
What fair tests show
In 2025 and 2026, several teams ran fair tests. They used the same AI and the same files. They split results by kind of question.
Word search vs meaning search
BEIR is a big test set with 18 parts. With no extra training, DPR scored 47.7% below BM25 on average. ANCE was 7.4% below. TAS-B was 2.8% below. Only docT5query (1.6% above), ColBERT (2.5% above) and BM25 plus a re-checker (11% above) beat it . Newer tools have caught up a lot. But on hard thinking questions, the story changes. One tool scored 59.0 on a popular test. On the harder BRIGHT test, it scored only 18.3. BM25 scored 14.5 there . On a product-shopping test, BM25 scored 44.94. A popular meaning tool scored 39.16. A graph tool scored 26.56 .
Mixing the two usually helps, but not always. Mixing lifted a basic tool from 13.8 to 17.3. It made a strong tool a little worse, from 36.9 to 35.9 . The usual mixing recipe is from 2009. It just adds up ranks .
Plain RAG vs GraphRAG, by question type
Han and colleagues (KDD 2026) held the generator fixed at Llama-3.1-8B and compared chunk RAG with several graph methods :
- Single-hop (NQ). RAG won: F1 64.78, against HippoRAG 2's 61.03 and KG-triples-only retrieval's 34.28.
- Multi-hop (HotpotQA). Text-preserving graph methods edged ahead: HippoRAG 2 63.01 against RAG's 60.04.
- MultiHop-RAG. Same pattern: 70.27 against 67.02.
- Summarisation (ROUGE and BERTScore). RAG, RAPTOR and HippoRAG 2 roughly tied, and community-global GraphRAG scored lowest.
Their token-matched control is the most important number in this article. Run with the larger Llama-3.1-70B and given the same context budget as GraphRAG, plain RAG scored 71.01 against GraphRAG's 71.17 . Much of the measured graph advantage may simply be extra context.
GraphRAG-Bench (ICLR 2026) found the same split with GPT-4o-mini :
- Fact retrieval (Novel corpus). Reranked RAG 60.92, HippoRAG 2 60.14.
- Complex reasoning. Reranked RAG 42.93, HippoRAG 2 53.38.
- Contextual summarisation. Reranked RAG 51.30, HippoRAG 2 64.10.
Its stated observation is that basic RAG "is comparable to or outperforms GraphRAG in simple fact retrieval" . Microsoft GraphRAG's local search swung from best on Novel summarisation (64.40) to well behind reranked RAG on the Medical corpus . The VLDB unified analysis found RAPTOR most often strongest on specific QA, with HippoRAG generally above vanilla RAG. Several KG-centric methods fell well below plain RAG, for example ToG at 47.68 and G-Retriever at 17.08 against vanilla RAG's 60.83 on PopQA . HippoRAG 2's authors reported the same: earlier structure-augmented methods averaged below a strong dense retriever (NV-Embed-v2 57.0 F1; GraphRAG 49.6; RAPTOR 48.8). Their own method edged ahead at 59.8 .
Plain RAG vs GraphRAG, by kind of question
Han's team used one small AI for every method :
- One-step questions (NQ). Plain RAG won with 64.78. HippoRAG 2 got 61.03. Fact lists alone got 34.28.
- Two-step questions (HotpotQA). Graph methods that keep text won a little. HippoRAG 2 got 63.01. Plain RAG got 60.04.
- MultiHop-RAG. Same story: 70.27 against 67.02.
- Summaries. Plain RAG, RAPTOR and HippoRAG 2 came out about even. The big-picture GraphRAG mode scored lowest.
One check matters most. They used a bigger AI and gave plain RAG the same amount of text as GraphRAG. Then plain RAG scored 71.01 and GraphRAG 71.17 . So much of the graph's edge may just be more text.
GraphRAG-Bench found the same split with a different AI :
- Fact questions (Novel set). Plain RAG 60.92, HippoRAG 2 60.14.
- Hard thinking questions. Plain RAG 42.93, HippoRAG 2 53.38.
- Summaries. Plain RAG 51.30, HippoRAG 2 64.10.
The test makers said it plainly. Basic RAG does as well or better on simple facts . Microsoft's local GraphRAG was best on novel summaries, at 64.40. On medical files, it fell well behind . Another big study agreed. RAPTOR most often did best on exact questions. HippoRAG usually beat plain RAG. Some map tools did much worse than plain RAG. On one test, plain RAG got 60.83. ToG got 47.68. G-Retriever got 17.08 . HippoRAG 2's team saw it too. Older graph tools averaged below a strong meaning search. Meaning search got 57.0, GraphRAG 49.6, and RAPTOR 48.8. HippoRAG 2 got 59.8 .
When the graph is the ground truth
The picture flips when the knowledge already lives in a curated graph. On WebQSP, retrieving Freebase relation paths (RoG) reached Hits@1 85.7 against ChatGPT's 66.8. On CWQ the comparison was 62.6 against 39.9 . Think-on-Graph with GPT-4 reached 82.6 on WebQSP with no training . These benchmarks are built on the graph, so they favour graph retrieval by design. CRAG is closer to the real world: adding knowledge-graph APIs to web retrieval raised GPT-4 Turbo's accuracy from 35.9% to 41.3%. In the same benchmark, straightforward RAG helped less popular entities and slightly hurt the most popular ones .
In industry, LinkedIn's support system modelled tickets as a graph and kept a text-RAG fallback. It reported median per-issue resolution time falling 28.6% over about six months of deployment . Support tickets come with natural structure (explicit links and fields), which is exactly where graphs pay off.
Global "sensemaking" questions
This is GraphRAG's home turf. Edge et al. reported that global approaches beat vector RAG on comprehensiveness 72–83% of the time and on diversity 62–82%, scored by an LLM judge on 125 synthetic questions per corpus. Those ranges cover the graph's community-summary levels and a non-graph map-reduce over the source text, so not all of the win belongs to the graph . The VLDB analysis also found global GraphRAG winning LLM-judged abstract QA, for example 81% against vanilla RAG on one mixed corpus . Han et al.'s ROUGE and BERTScore summarisation results, however, show no graph advantage . The disagreement is about the measuring instrument (see below).
What it costs
GraphRAG pays an up-front LLM bill to read every chunk. In Han et al.'s setup, building the chunk index took 135 seconds. Building the graph took 5,560 seconds for community GraphRAG and 7,702 seconds for KG-GraphRAG . Microsoft's own README warns that "GraphRAG indexing can be an expensive operation" .
Query cost varies even more. In GraphRAG-Bench, plain RAG averaged 879 prompt tokens per query and HippoRAG 2 1,008. Microsoft GraphRAG's local search averaged 38,707, LightRAG 100,832 and Microsoft GraphRAG's global search 331,375 .
When the map is the source of truth
Things flip when facts already live in a careful map. On one test, map search got 85.7. ChatGPT alone got 66.8. On a harder test, it was 62.6 against 39.9 . Think-on-Graph with GPT-4 got 82.6 with no extra training . But these tests were built from the map. So maps have a head start. A more real-world test is CRAG. Adding map lookups to web search raised scores from 35.9% to 41.3%. In the same test, plain RAG helped with less famous things. It hurt a little with the most famous ones .
LinkedIn tried a map in real life. Each help ticket became part of a map. Plain text search stayed as a backup. Fix time fell by 28.6% over about six months . Help tickets already have links and fields. That kind of order is where maps shine.
Big-picture questions
This is where GraphRAG is meant to shine. An AI judge picked big-picture answers as more complete 72% to 83% of the time. It picked them as more varied 62% to 82% of the time. Some of those answers came from summaries without a graph, so the graph doesn't get all the credit . Another study also saw GraphRAG win with an AI judge. One example was 81% against plain RAG . But word-overlap scores showed no graph edge . The fight is really about how we keep score.
What it costs
GraphRAG pays a big AI bill before you ask anything. It has to read every chunk. Plain chunking took 135 seconds. Community GraphRAG took 5,560 seconds. KG-GraphRAG took 7,702 seconds . Microsoft itself warns that building the graph can be expensive .
Each question costs different amounts too. Plain RAG used about 879 words of text per question. HippoRAG 2 used 1,008. Microsoft's local GraphRAG used 38,707. LightRAG used 100,832. Microsoft's global GraphRAG used 331,375 .
An independent evaluation measured 326,200 tokens per query for Microsoft GraphRAG against 4,213 for naive RAG . Think-on-Graph's per-query latency was about 30× vanilla RAG's (69.74 s against 2.35 s) . Microsoft's own response, LazyGraphRAG, defers LLM work to query time. Microsoft says it indexes at 0.1% of full GraphRAG's cost and matches global search at more than 700× lower query cost. Those figures are self-reported from one news corpus with synthetic queries .
At the other end, BM25 is nearly free. In CodeRAG-Bench it took 0.15 ms to encode a query and used a 141 MB index. The best dense code retriever took 316 ms and 1,638 MB, plus a 14 GB model .
Another team measured 326,200 words per question for Microsoft GraphRAG. Plain RAG used 4,213 . Think-on-Graph took about 30 times longer per question. That was 69.74 seconds against 2.35 . Microsoft made a cheaper version called LazyGraphRAG. Microsoft says building it costs 0.1% as much. Microsoft says answers cost over 700 times less. Those numbers come from Microsoft itself, on one test .
BM25 is nearly free. It took 0.15 thousandths of a second per question. Its index used 141 MB. The best meaning tool took 316 thousandths of a second. It used 1,638 MB, plus a 14 GB model .
Where each one breaks
Dense embeddings have a hard ceiling. Weller et al. (ICLR 2026) prove that embedding dimension bounds how many distinct top-k result sets a single vector can represent. On their LIMIT stress test, state-of-the-art embedders failed while BM25 did well, which the authors attribute to BM25's much higher effective dimensionality . In a synonym variant, BM25 collapsed . That is the vocabulary problem resurfacing . Each failure mode is the other's strength.
More context is not free. Liu et al. found a U-shaped accuracy curve over where the answer sits in the context. With the gold passage in the middle of 20 documents, GPT-3.5-Turbo scored below its closed-book accuracy (53.8% against 56.1%) . Passages that are topically related but do not contain the answer hurt more than random ones, at least for 7B-class models . One irrelevant sentence cut accuracy on easy math problems from 95.0 to 72.4 . The practical consequence: GraphRAG's large contexts and dense RAG's near-miss neighbours both carry a generator-side tax. Practitioner case studies list seven distinct RAG failure points. They conclude that validation "is only feasible during operation" .
LLM-built graphs inherit extraction errors. In 2023 tests, zero- and one-shot GPT-4 trailed fine-tuned small models badly on relation extraction (Re-TACRED micro-F1 22.5 against 91.4), the very step GraphRAG indexing depends on . In ontology-driven extraction, open 13B models produced well-formed triples (ontology conformance 0.83–0.93) that still contained hallucinated subjects, relations and objects . Both studies used 2023 models with small samples. We found no rigorous 2025–2026 measurement of how extraction errors carry through to GraphRAG answers.
The GraphRAG evaluation instrument is biased. Zeng et al. show that pairwise LLM-judge win rates suffer from position and length bias. Under the old protocol, a method compared against itself can "win" lopsidedly. With a debiased protocol, LightRAG's win rate against naive RAG fell from 66.70% to 39.06% . This is a preprint with 150 questions and one generator, but its direction agrees with Han et al.'s note that LLM-judge results are order-sensitive .
Where each one breaks
Meaning search has a hard limit. One team found a math limit. Meaning search can only tell apart so many answer sets . On their tricky test, top meaning tools failed. BM25 did well . Then they swapped in different words that mean the same thing. BM25 fell apart . That is the old word problem again . Each tool's weak spot is the other's strong spot.
More text is not always better. AIs read the start and end of a long text best. They miss the middle. With the answer in the middle of 20 papers, one AI scored 53.8%. With no papers at all, it scored 56.1% . Papers that look related but lack the answer hurt more than random ones. That was true for small AIs . One off-topic sentence cut math scores from 95.0 to 72.4 . So huge piles of text have a cost. One team listed seven ways RAG systems fail. They said you can only really check a RAG system once it is running .
AI-made maps copy AI mistakes. In 2023 tests, GPT-4 was bad at pulling out links with few examples. It scored 22.5 where trained small tools scored 91.4 . That is the very step GraphRAG needs. Other AIs wrote links in the right shape, but with made-up parts . Both studies used 2023 AIs and small samples. We found no careful newer study on how map mistakes hurt answers.
The GraphRAG scorekeeper is unfair. An AI judge prefers the answer it reads first. It also prefers longer answers. Under the old way, a method could even "beat" itself. With a fairer judge, LightRAG's wins over plain RAG fell from 66.70% to 39.06% . That study is small and not yet peer-reviewed. But Han's team also saw the judge change with answer order .
Has grep (or a big context window) made retrieval moot?
Agentic grep in code. Coding agents popularised dropping the vector index for model-driven grep/glob. Anthropic describes Claude Code as a hybrid. A project notes file is loaded up front, and glob and grep pull in files "just in time". Anthropic concedes that "runtime exploration is slower than retrieving pre-computed data" . That is a design rationale, not an evaluation. The peer-reviewed evidence is narrower:
- SWE-agent. How the search tool reports results mattered a lot. A summarised, exhaustive grep-style search resolved 18.0% of SWE-bench Lite issues. Paging through hits one at a time resolved 12.0%, worse than having no search tool (15.7%) .
- Agentless. For file localisation, prompting the model over the repository tree (78.67%) beat embedding retrieval without folder filtering (67.67%), and combining the two was best (81.67%) .
- CodeRAG-Bench. BM25 tied OpenAI embeddings on issue-to-code retrieval (NDCG@10 43.0 against 43.3), while the best dense model reached 62.7 .
- Cursor (self-reported). Adding semantic search to grep raised answer accuracy by 12.5% on average on an internal benchmark. Cursor concludes the combination works best .
- A 2026 preprint. Grep beat vector search in all ten model–harness pairs when results were returned inline. When results went through files instead, vector search won half the pairs, and one grep configuration fell from 93.1 to 55.2 .
Our reading is that grep is excellent when the agent can guess a distinctive string. Code is full of such strings: identifiers, error messages, file names. Grep is fragile when it cannot.
Long context. With frontier models and generous budgets, long context beat chunk RAG on average in LongBench and ∞Bench. GPT-4o scored 48.67 against 32.60, and Gemini-1.5-Pro 49.70 against 37.33. A routing hybrid performed comparably to long context while using 38–61% of the tokens . Retrieval still helped models that already had long windows: a 32K Llama-2-70B rose from 37.36 to 39.60 with retrieval . LaRA found the winner flips with length. Long context led by 2.40 points at 32K and trailed by 3.68 at 128K, and RAG was much better at refusing unanswerable questions . Neither approach removes the need to choose.
Where the evidence disagrees
- How much graphs help on multi-hop. Han et al. see 2–3 points . GraphRAG-Bench sees about 10 on its Novel corpus . The corpora, question generation and generator (8B against GPT-4o-mini) all differ. Neither study is wrong. The effect size is not yet stable.
- Global questions. LLM-judge studies favour community GraphRAG . Reference-based metrics show parity , and a debiasing study shrinks the gap .
- LightRAG. Its own LLM-judge evaluation reports large wins . HippoRAG 2's factoid evaluation reports a near-zero F1 of 6.6, which we read as a likely configuration or output-format mismatch rather than true ability . The debiased study ranks it below naive RAG . Treat any single number for it with caution.
- Grep vs vectors in agents. Practitioners disagree and so does the evidence. Every source that tested a hybrid found it best , but the one direct ablation is a small preprint whose ranking depends on the harness .
What this means in practice
A decision rule supported by the evidence above, with our interpretation flagged:
- Start with hybrid lexical plus dense retrieval and a reranker. It is the cheapest strong baseline . Anthropic's self-reported ablation shows each layer (contextual embeddings, BM25, reranking) cutting retrieval failures further, from 5.7% to 1.9% .
- If your questions are lookups of specific facts, stop there. Graph layers add cost without measurable gain on single-hop questions .
- If your questions chain facts across documents, try a text-preserving graph method (HippoRAG 2-style) or an iterative retrieval loop. Both have peer-reviewed multi-hop gains at modest cost . Control for context size before crediting the graph .
- If you already own a curated graph (a product catalogue, a ticket system, an ontology), query it directly. That is where structured retrieval wins clearly .
- Reserve community-summary GraphRAG for corpus-wide "what are the themes?" questions. Budget for the indexing, and evaluate with position-swapped, length-controlled judging .
- For code and other identifier-rich corpora, give agents a well-designed grep that returns summarised, exhaustive hits , with semantic search as a second tool .
Did grep or long memory make search pointless?
Grep in coding agents. Many coding helpers now skip meaning search. They let the AI run grep and file search itself. Anthropic says Claude Code mixes things. A notes file loads first. Then grep finds files as needed. Anthropic admits this is slower than ready-made results . That is a design choice, not a test. Here is what the tests say:
- SWE-agent. How the search tool shows results mattered a lot. A tool that listed all hits fixed 18.0% of bugs. A tool that showed hits one page at a time fixed 12.0%. That was worse than no search tool, at 15.7% .
- Agentless. Agentless had to find the right file. Asking the AI to read the folder list worked 78.67% of the time. Meaning search worked 67.67%, without folder filtering. Both together worked best, at 81.67% .
- CodeRAG-Bench. BM25 tied a popular meaning tool, 43.0 to 43.3. The best meaning tool scored 62.7 .
- Cursor (its own numbers). Adding meaning search to grep raised scores 12.5% on its own test. Cursor says using both is best .
- A 2026 study (not yet reviewed). Grep beat meaning search in all ten setups when results came back directly. When results went into files, meaning search won half. One grep setup fell from 93.1 to 55.2 .
Our take: grep is great when the AI can guess a special word to look for. Code is full of special words, like names and error messages. Grep struggles when it cannot guess one.
Very long memory. Some AIs can read huge amounts of text at once. With top AIs, reading everything beat RAG on average. GPT-4o scored 48.67 against 32.60. Gemini scored 49.70 against 37.33. A smart switch between the two came close to long reading. It used only 38% to 61% of the words . Search still helped AIs with long memory. One went from 37.36 to 39.60 . Another study found the winner flips with length. Long reading led by 2.40 points at one size. It trailed by 3.68 at a bigger size. RAG was much better at saying "I don't know" . So you still have to choose.
Where the experts disagree
- How much graphs help on two-step questions. Han's team saw 2 to 3 points . GraphRAG-Bench saw about 10 . They used different files, questions and AIs. Neither is wrong. The size of the gain is not settled yet.
- Big-picture questions. AI judges favour GraphRAG . Word-overlap scores show a tie . A fairer judge shrinks the gap .
- LightRAG. Its own tests show big wins . HippoRAG 2's test gave it 6.6. We think that was probably a setup mismatch . The fairer study put it below plain RAG . Be careful with any one number for it.
- Grep or vectors for agents. People disagree, and so do the tests. Every study that tried a mix found it best . The one direct test is small, and its winner changed with the setup .
What this means for builders
Here is a simple plan, based on the tests above. Some steps are our own reading.
- Start with word search plus meaning search, then a re-checker. It is the cheapest strong start . Anthropic's own test showed each layer helping. Misses fell from 5.7% to 1.9% .
- If people ask for single facts, stop there. Graphs add cost but not wins for one-step questions .
- If questions join facts from many places, try a graph that keeps the text. HippoRAG 2 is one example. Searching in steps is another. Both have reviewed wins . Give plain RAG the same amount of text before you credit the graph .
- If you already have a careful map, search it directly. Product lists and ticket systems are examples. That is where maps clearly win .
- Save summary-style GraphRAG for "what are the big themes?" questions. Plan for the build cost. Judge answers fairly: swap answer order and match lengths .
- For code, give agents a good grep. It should list all hits in a short summary . Add meaning search as a second tool .
Open questions & opportunities
- Speculative: the token-matched control in Han et al. should become standard. If graph gains mostly come from extra context, a cheaper context-expansion step might capture them .
- How do extraction errors in LLM-built graphs carry through to answer errors with 2025–2026 models? The best measurements are from 2023 .
- Can a router learn which family to call per query? Self-Route did this for RAG against long context . Nobody has yet published a peer-reviewed router across lexical, dense and graph retrieval.
- Agentic grep needs controlled, peer-reviewed comparisons on code at repository scale. Current evidence is either vendor-reported or a small preprint .
Limitations of this review
- Several key comparisons use small generators (Llama-3.1-8B, Llama-3-8B) . Gaps may narrow or widen with frontier models.
- The core GraphRAG paper and the debiased-evaluation study are preprints . All LazyGraphRAG, Cursor and Anthropic figures are self-reported.
- Generator-side failure studies use 2022–2023 or 7B-class models .
- Most graph benchmarks use corpora and questions built by their authors, and GraphRAG-Bench's text and tables disagree on one token count. We use table values throughout.
- A few metadata items could not be fully confirmed: Text2KGBench's LNCS volume number, Barnett et al.'s DOI (taken from a library record), and Search-R1's COLM 2025 venue (one source). The debiased GraphRAG study changed its author list between versions, and we cite v2.
- We did not cover learned sparse retrieval (SPLADE), multi-vector retrieval beyond BEIR's ColBERT result, or graph databases' operational trade-offs.
Method
This review was carried out on 25 November 2026. Five lines of inquiry ran in parallel: foundations, frontier methods, benchmarks and effect sizes, critiques and failure modes, and applied deployments. We searched arXiv, the ACL Anthology, PMLR, NeurIPS, ICLR and VLDB proceedings, OpenReview, Semantic Scholar and vendor documentation.
Inclusion criteria. We prioritised peer-reviewed work and controlled comparisons. Preprints are labelled, and vendor claims are marked self-reported.
Screening. About 127 sources were screened, and 55 were included after deduplication.
Verification. An independent verification pass re-checked every reference's metadata. It confirmed that each excerpt appears verbatim at its locator, and it re-checked every plotted or quoted number against the source tables. Corrections from that pass are applied throughout.
Evidence grades. Strong means replicated, or several independent peer-reviewed sources. Moderate means one solid peer-reviewed source. Emerging means preprints or single studies. Contested means credible sources conflict.
Questions nobody has answered yet
- A guess: every test should give plain RAG the same amount of text. If graphs mostly win by adding text, a cheaper trick might do the same .
- How much do AI map-making mistakes hurt answers with today's AIs? The best numbers are from 2023 .
- Can an AI learn which search to use for each question? Self-Route did this for RAG versus long reading . No reviewed study does it for word, meaning and graph search together.
- Agentic grep needs fair, reviewed tests on big code projects. Today's evidence is company numbers or one small study .
What this review might have missed
- Some key tests used small AIs . Bigger AIs might change the gaps.
- The main GraphRAG paper and the fairer-judge study are not yet peer-reviewed . LazyGraphRAG, Cursor and Anthropic numbers come from the companies themselves.
- Studies on AIs getting confused used older or small AIs .
- Most graph tests use files and questions the authors made. One graph test's text and tables disagree on one number. We used the table.
- We could not fully check a few small details, like one book volume number and one paper's venue.
- We did not cover some search types, like learned word search. We also skipped how graph databases run day to day.
How we did this
We did this review on 25 November 2026. We looked at five topics at once. They were history, new methods, test scores, criticism, and real use. We searched big research libraries and company documents.
We picked peer-reviewed work first. We marked papers that are not yet reviewed. We marked company claims as their own numbers.
We looked at about 127 sources. We kept 55 after removing repeats.
Then a separate check went over every source. It checked names, dates and places. It checked that each quote appears word for word. It checked every number against the original tables. We fixed everything it found.
Strong means many reviewed studies agree. Moderate means one solid reviewed study. Emerging means early or single studies. Contested means good studies disagree.
