Sulat.com / Writing on AISunday, December 6, 2026
Enter →
Developer Tools/6 December 2026

Microsoft’s GraphRAG, run on a pile of documents

I indexed invented company documents with Microsoft's GraphRAG, then asked six questions four ways. Indexing cost about 92 times the text, and plain search slipped as the pile grew.

Microsoft logo in 3D with glowing clusters of connected nodes spreading out from it, representing the GraphRAG knowledge graph
Illustration: Sulat featuring the Microsoft logo

At a glance

  • Microsoft's GraphRAG repository says the project is largely in maintenance mode, with no new pull requests or features, only bug fixes and security updates.
  • Indexing 12 short documents with version 3.3.0 read 2.3M tokens and wrote 0.7M, about 92 times the 24.6K tokens of text.
  • On 12 documents, plain search, local search and DRIFT search each answered all five scored questions correctly. On 109 documents plain search fell to three, local to two and DRIFT to four.
  • Global search scored two of five on both sizes, and the extracted graph held the same depot as three separate nodes.

Microsoft’s GraphRAG repository now opens with a warning that the project is “largely in maintenance mode” and won’t take new pull requests or features. I installed version 3.3.0 anyway, indexed a made-up company’s documents at two sizes, and asked it six questions four different ways.

Indexing 12 short documents cost about 92 times their length in tokens. The questions that needed several documents went well while the pile was small and unevenly once it reached 109. Everything ran on a box with 4 cores, 16 GB RAM, Ubuntu 24, with gpt-4.1-mini and text-embedding-3-small doing the model work.

What GraphRAG adds to plain search

Plain retrieval-augmented generation splits documents into chunks, finds the chunks closest to a question and hands them to a model. GraphRAG, which Microsoft Research described in its paper From Local to Global, does extra work before any question arrives. A model reads every chunk and pulls out the people, companies and things in it and how they connect. The tool groups that graph into communities, then has a model write a report for each community. Questions can then be answered from the graph and the reports, not only from the nearest chunks.

Diagram of GraphRAG indexing: chunking and clustering are plain code, while entity extraction, merging descriptions and community reports use model calls
Three of the five indexing steps are model calls, which is where the cost sits.

There are four ways to ask. Basic search is the plain version over text chunks. Local search starts from the entities in the question and follows their links to nearby text. Global search reads the community reports in a map-and-reduce pass, and it’s meant for questions about a whole collection. DRIFT starts like local search, adds community context and follows up with further questions of its own. Indexing also comes in two kinds: the standard method uses a model to extract entities, and the fast method uses text processing for that step instead.

The repository’s first release was in July 2024, and its README says it isn’t an officially supported Microsoft offering. It sits alongside other attempts to give models structured memory. Anthropic’s Knowledge Wiki lets a small model answer from linked notes, and Uber built a context graph for its AI agents. GraphRAG’s difference is that a model builds the graph from raw text without anyone writing it.

The documents and the questions

I invented Harbourline Freight, a New Zealand chilled-freight company, and wrote 12 short documents about it: board minutes, a refrigeration installer’s profile, a compressor recall notice, a fleet register, a depot overview, a customer contract, an incident log, an insurance summary, an org chart in prose, a strategy memo, an HR memo and a cherry season plan. The answers to the hard questions are spread across several of them. The recall notice gives a range of compressor serial numbers, the fleet register says which trucks hold which serial, the depot overview ties trucks to a depot, and the depot’s biggest customer has a contract with a penalty clause.

Diagram: one question hops from the recall notice to the fleet register, the depot overview and the Southern Orchards customer contract
The test question needed four separate documents to answer.

Twelve documents are small enough that plain search can look as good as anything. So I had gpt-4.1-mini write 97 more about the same fictional company, with other depots, policies, recalls and customer contracts, and indexed that set of 109 as well. The install and the runs used the project’s own commands:

Code
pip install graphrag
graphrag init --root proj -m gpt-4.1-mini -e text-embedding-3-small
graphrag index --root proj
graphrag index --root proj_fast --method fast
graphrag query --root proj --method basic "<question>"
graphrag query --root proj --method local "<question>"
graphrag query --root proj --method global "<question>"
graphrag query --root proj --method drift "<question>"

I kept the default settings, which chunk text at 1,200 tokens, and ran it on Python 3.13. I asked six questions, and the one about risks has no single right answer, so I scored the other five against the documents. A question counts as right only if the answer holds the facts the documents hold. The questions are listed at the end.

What indexing cost

The 12 documents came to 24.6K tokens of text. Indexing them read 2.3M tokens and wrote 0.7M, about 92 times the text, before the first question. GraphRAG’s own README warns that indexing can be expensive and tells you to start small, and this is why.

Infographic: 24.6K tokens of text became 2.3M tokens read and 0.7M written, about 92 times the text, before the first GraphRAG question
Indexing 12 short documents cost about 92 times their length in tokens.
Wall-clock time to build each index.
Index method12 documents109 documents
Standard1 min 24 s10 min 40 s
Fast54 s7 min 52 s

The fast method saved about a quarter of the time on the larger set. Its answer to the vehicle question was weaker, as the next sections show.

How the four searches scored

Five scored questions per cell, on the standard index.
Search12 documents109 documentsSeconds per answer on 109
Basic5 of 53 of 59 to 17
Local5 of 52 of 59 to 19
Global2 of 52 of 513 to 47
DRIFT5 of 54 of 566 to 98
Infographic: plain search scored 5 of 5 on 12 documents and 3 of 5 on 109 documents, while GraphRAG's DRIFT search kept 4 of 5
Plain search lost two answers when the pile grew from 12 to 109 documents.

On the small set, basic, local and DRIFT all got every answer. That’s the result to hold against the 92 times: at 12 documents, the plain search was as good as the graph. The gap opened at 109. Basic search lost the vehicle question and the contract question, because the nearest chunks came from the wrong documents. Local search lost those two and the insurance question.

DRIFT was the only mode to find all three affected trucks, T-14, T-19 and T-31, and to rule out T-12 and T-23, whose serials fall just outside the range. It still missed the contract question: it named the supply agreement between the compressor maker and the installer, not the Southern Orchards contract. Local search named the installer and quoted the penalty terms of two unrelated customers’ contracts. Only global search named Southern Orchards at 109 documents, and it listed several other contracts as exposed too.

Global search is built for questions about a whole collection, and my five scored questions ask for specifics, so its two of five says more about the fit than about the method. It was still the mode that produced the most confident wrong detail. Asked when the recall notice was issued and how long owners have, it gave the date as 21 October 2023, a year the documents never state, and said no deadline was stated. The notice gives 60 days. It also mixed in the dates and deadlines of two other recalls from the added documents.

One depot, three nodes

In the entities table of the 109-document index, the Christchurch depot appeared as three separate nodes under three names, with 18, 15 and 8 links. The variants weren’t merged, so each node holds only its own share of what’s connected to the depot.

Diagram: the Christchurch depot appears as three separate graph nodes with 18, 15 and 8 links, each keeping only its own links
The same depot showed up as three nodes in my 109-document graph.

The fast index

I ran the same questions against the fast index of the 109 documents. I didn’t score it as strictly as the standard one, but the pattern was plain enough. The vehicle question failed in local, global and DRIFT alike, and none of them named the three affected trucks. Local search also missed the contract and insurance questions. The fast method builds its graph from noun phrases, not from entities a model extracts.

Where it sits

Microsoft Research has since described LazyGraphRAG, which it says cuts indexing to about 0.1 percent of the full method’s cost by deferring the model work to query time. That’s Microsoft’s own figure, and the GraphRAG command line I ran doesn’t include it. The HKU team’s LightRAG is an open-source alternative that compares itself with GraphRAG on token use and speed.

Outside evaluations are less generous than the first reports. A 2025 paper, How Significant Are the Real Performance Gains?, built a fairer test for GraphRAG methods and found smaller gains over plain retrieval than earlier work had. My small test points the same way: the graph earned its cost only once the pile outgrew what plain search could handle.

What I’d do with it

  1. Start with plain search and score it on your own questions. It may be enough.
  2. If you need the graph, index a few dozen documents first and read the token bill before the full set.
  3. Use DRIFT for questions that span documents, and plan for answers that take over a minute.
  4. Check the entities table for duplicate nodes before you trust an answer that walks the graph.
  5. Treat the project as frozen. Maintenance mode means bug fixes, not new features.

What I didn’t test

This is a smoke test on invented documents, with one model and one pass per question, so the scores show a pattern and not a ranking. I didn’t run LazyGraphRAG, LightRAG, a larger set or other models, and I didn’t score the risks question. The fast index was read less strictly than the standard one.

The questions

Code
1. Which customer contract is exposed to the Delmar compressor recall, and what happens under that contract if an affected truck fails?
2. Which Harbourline vehicles are covered by the Delmar recall?
3. Would Harbourline's insurance pay for cargo spoilage on a recalled truck, and why or why not?
4. When did Delmar issue the recall notice and how long do owners have to complete the replacement?
5. What are the main risks facing Harbourline across these documents?
6. Who reports to Dev Patel?

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.