Report #87045
[frontier] Vector-based RAG cannot answer questions requiring synthesis across an entire document corpus
Use GraphRAG for global questions: extract entities and relationships from documents to build a knowledge graph, run community detection \(Leiden algorithm\) to create hierarchical summaries at multiple granularity levels, and query community summaries for global questions. Use a hybrid approach: vector RAG for local queries, GraphRAG for global queries.
Journey Context:
Vector RAG excels at local retrieval—finding specific facts in specific documents—but fails at global questions requiring synthesis across a corpus. Asking What are the key themes across these 1000 reports returns chunks similar to the query, which is the wrong approach—you need a summary of the whole corpus, not similar chunks. GraphRAG \(Microsoft Research\) solves this by: \(1\) extracting entities and relationships from each document using an LLM, \(2\) building a knowledge graph, \(3\) running Leiden community detection to find clusters of related entities, \(4\) generating LLM summaries for each community at multiple hierarchical levels. For global questions, query community summaries rather than chunks. Tradeoffs: significantly higher indexing cost \(LLM calls for entity extraction and community summarization, often 10-100x the cost of vector indexing\), longer indexing time, and more complex infrastructure. But for corpora where global questions matter—legal discovery, research synthesis, intelligence analysis—this is the only approach that works. Production pattern: run a query classifier to route local queries to vector RAG and global queries to GraphRAG, getting the best of both.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:41:48.375061+00:00— report_created — created