Rachis

When does a knowledge graph help document search?

26 November 2026, updated 28 November 2026

Vector search finds passages similar in meaning to a question. A knowledge graph stores things your documents mention and their relationships. Consider adding one when a question needs facts connected across several documents, or an overview of the whole collection, and vector search does not return every passage the answer needs.

A small comparison on your own questions helps you weigh better answers against model calls to build the graph, maintenance work and errors such as duplicate entries.

Which questions need connections?

The application builds a request for the model containing the question and the passages search selected. Take a traveller who asks whether their policy covers cancellation because of industrial action. One clause may settle that question.

Now take an insurance analyst asking, "Which of our products exclude industrial action, and which endorsements changed that this year?" The answer needs policy clauses, the documents that amend them and the products each applies to.

An entity is a distinct thing represented in the graph, such as a policy. A relationship connects entities, such as an endorsement amending that policy. Search can follow a relationship from a matching entity to related facts in other documents.

GraphRAG uses a knowledge graph to help find material for the model's answer. It can work alongside vector search: Neo4j's VectorCypherRetriever first finds vector matches, then runs a query following graph connections to fetch more context.

Microsoft's GraphRAG library groups connected entities into communities and has a model write a report summarising each community. Its global search uses these reports for questions about the collection as a whole. Microsoft calls this resource-intensive. Its local search starts from specific entities and gathers connected information.

What the comparisons show

A 2026 study compared vector search with five graph methods on six question sets. Answering in a single step, the best of the five graph methods on each set beat vector search by 27.23 points on average on questions needing linked facts, and by 0.47 on general questions. Both figures measure whether the response contained the correct answer.

The graph methods worked from each question's supplied context, while vector search searched a 2018 Wikipedia dump. The two sides did not search the same documents, so the gains do not isolate what the graph adds. The authors consider vector search practical for general questions because it costs less to build.

A second 2026 study grew a synthetic collection of company documents in steps from 1,144 to 511,959, keeping the questions the same. Keyword search, which finds passages containing the question's words, led at full size, ahead of vector search. Microsoft GraphRAG's builds completed through 8,750 documents and LightRAG's through 2,254; at the smallest size, both scored below keyword search.

The authors attribute keyword search's lead to this collection's precise question terms and deliberately added documents that are similar in meaning but factually wrong. They judge model-built graphs hard to justify at 100,000 to 1,000,000 documents unless construction work grows roughly in proportion to collection size and relationship questions dominate.

A question that needs several documents is a reason to compare approaches; search may already find every passage it needs.

What it costs to build

Indexing is the preparation that makes documents searchable. Microsoft GraphRAG's standard method prompts a model to extract entities and relationships from each passage and summarise them. Microsoft estimates graph extraction accounts for roughly 75% of indexing cost.

Its FastGraphRAG method replaces some model steps with standard language-processing tools and is much cheaper, but its graph tends to be noisier.

In Graphiti 0.28.1, a user reported that ingesting 100 records took about 60 minutes, with concurrent model requests limited to one to avoid rate-limit errors. Their logs showed frequent model calls to deduplicate entities, which they identified as a bottleneck. The issue has no replies.

Measure build time and model calls on a sample before preparing the whole collection. Related reports are in the indexing cost and re-indexing collection.

Keep names consistent

Entity resolution decides whether different records refer to the same thing. Wrong matches can join unrelated facts; missed matches can leave related ones separated.

In another Graphiti issue, the author reported duplicate entities with identical short names, then closed it as fixed in 0.31.0 and verified on 0.31.2.

One person on Hacker News reported substantial time spent matching name variations and cleaning entity-type lists. Include merging duplicate records and name variations in the work you plan for a graph.

A LightRAG user building a graph from software requirements reported generic words becoming entities. They gave capitalization, spacing and language differences as examples of how one entity may become separate entries.

The issue closed with a Stale label, and no reply answered the question about naming differences. Inspect some entities before relying on the graph's relationships.

Test updates and deletions

Check how relationships and summaries derived from source documents change when a source does.

Microsoft GraphRAG links extracted knowledge items back to source passages. Preserve those links so users can inspect the text behind an answer. The lost edges and provenance collection gathers reports about connections and source records.

LightRAG can use model responses saved during indexing to rebuild affected entities and relationships after deletion.

Incremental updates identify changes since the last build. In a Microsoft GraphRAG issue, the author reported that these updates in version 3.2.0 left removed documents and their passages, entities, relationships and community reports searchable.

In the author's experiment with synthetic people, local search still recovered 77% of the unique facts about the people whose documents were removed. After a full re-index, local search recovered none, though saved model responses and update backups retained them. The issue is open. A later commenter proposed a branch that warns about removed documents instead of deleting them.

A Graphiti user reported that the search tools in Graphiti's MCP server, the component that lets a model call Graphiti's search, ranked stale facts equally with current ones. Graphiti marks a fact invalid when newer information contradicts it.

The author later withdrew their proposal to filter these facts by default, because filtering would discard history. They also reported that Graphiti stores no link from an invalidated relationship to the one that replaced it, so both compete in the same ranking. The issue remains open.

Decide whether each question needs current or historical facts, then test both; the contradictions and stale facts collection gathers related reports.

A first setup and a check

Keep your existing search, vector, keyword or both, as your starting point. Mark questions from your document-answer test set that need connected facts or a collection-wide overview. Record every passage needed for each answer.

Check whether search finds those passages, as the search quality piece describes, and whether they reach the model's request. If search misses any of them, test a graph step that follows relationships from vector matches on a small part of the collection. Compare answers and citations on the same questions.

Record build time and model calls alongside answer quality. Update one source and delete another, then inspect affected relationships, summaries and search results. Decide whether improved answers earn the maintenance work.

Join the waitlist: one email when there is something to try.

Read the pain map: Knowledge graphs.