GraphRAG
A graph-enhanced retrieval-augmented generation project from Microsoft Research that combines knowledge graphs with RAG technology to provide structured context to large language models, improving comprehension of code and documentation.
Core Facts
The core of GraphRAG is integrating knowledge graphs into the traditional RAG pipeline, organizing information in the form of triples (two entities and their relationship).
GraphRAG performs hierarchical clustering of knowledge graphs via community detection algorithms (such as the Leiden algorithm) to generate community summaries at different levels of granularity.
RAG(检索增强生成)是一种结合信息检索与生成式大模型的架构范式,模型生成答案前先根据用户查询从外部知识库检索最相关的文档片段,再将其作为上下文注入模型
Timeline (last 90 days)
The method introduces entity-driven GraphRAG retrieval, anchoring user questions on domain terms rather than relying solely on the closeness of semantic vectors.
GraphRAG is a variant of retrieval-augmented generation in which the retrieval stage first performs entity recognition and multi-hop traversal on a graph, then injects the matched subgraph as context into the generative model.
The structure of a knowledge triple is (subject entity)--[directed predicate]-->(object entity/value constraint), and it is the atomic data unit of GraphRAG.
Modern AI search engines (such as Perplexity and ChatGPT Search) use vector space embeddings and graph-enhanced RAG retrieval, rather than crawling web pages in real time to count keyword density to determine visibility.
Elastic believes graph databases (GraphRAG) have not been proven necessary in large-scale scenarios of billions of vectors, and currently prefers classification models and filtering mechanisms to solve relational reasoning problems.
KV-cache reuse presupposes a stable prefix, and GraphRAG flattens the graph structure into linear text, so the context prefix differs almost every query and the cache hit rate is extremely low.
FuseRAG achieves a 2.2 to 2.7 times TTFT speedup over the best GraphRAG baseline with no quality loss by separating reusable content from query-relevant structural interactions and injecting the latter into the decoder's self-attention layers.
One trace shows that a single GraphRAG global query requires 10+ LLM calls and about 200,000 tokens, while a local query takes about 11,500 tokens.
ONGRID is a GraphRAG tool that, in addition to retrieval and generation, adds a step for judging whether an answer is trustworthy.
In GraphRAG scenarios, PPR relies on no LLM calls at all; a pure graph algorithm can assign a relevance score to every node in the subgraph within milliseconds, and developers only need to set a threshold or take the top-N to discard 80% of the marginal nodes before feeding the context to the model.
37 more timeline events
All Facts (20)
The core of GraphRAG is integrating knowledge graphs into the traditional RAG pipeline, organizing information in the form of triples (two entities and their relationship).
90%VerifiedGraphRAG performs hierarchical clustering of knowledge graphs via community detection algorithms (such as the Leiden algorithm) to generate community summaries at different levels of granularity.
80%VerifiedRAG(检索增强生成)是一种结合信息检索与生成式大模型的架构范式,模型生成答案前先根据用户查询从外部知识库检索最相关的文档片段,再将其作为上下文注入模型
70%VerifiedThe GraphRAG approach extracts entities and relationships from documents, stores them as nodes and edges in a graph database, and during retrieval first uses vector search to recall candidate nodes before performing multi-hop reasoning along the graph's edges.
65%VerifiedTraditional RAG relies on chunk-based retrieval, splitting documents into segments and returning the most relevant passages through vector similarity matching, which cannot capture logical relationships and causal chains between entities.
65%VerifiedMicrosoft's 2024 research experiments demonstrated that GraphRAG significantly outperforms standard RAG on global questions requiring synthesis and reasoning across multiple documents, but with increased index construction costs and query latency.
65%VerifiedMicrosoft proposed GraphRAG in 2024, which represents an exploration in the direction of graph-based memory.
65%VerifiedThe GraphRAG architecture compensates for the limitations of pure vector retrieval by explicitly modeling character relationships and event causal chains through knowledge graphs.
65%VerifiedMicrosoft Research published the GraphRAG paper in 2024, demonstrating that GraphRAG significantly improves accuracy over traditional RAG when handling structured knowledge.
65%UnverifiedSkill Seeker的文档转Skills自动化方向与微软Research提出的GraphRAG思路相近
65%UnverifiedThe solution employs agentic retrieval to give the retrieval process active reasoning capabilities, and uses the Cypher query language to perform structured queries on the graph.
60%UnverifiedGraphRAG Blueprint offers two retrieval modes—local mode and global mode—where local mode targets precise factual question answering and global mode is oriented toward cross-document synthesis and summarization.
60%UnverifiedGraphRAG organizes code knowledge by constructing a knowledge graph that uses functions, classes, and modules as nodes, and call relationships, inheritance relationships, and dependency relationships as edges.
60%UnverifiedThe method introduces entity-driven GraphRAG retrieval, anchoring user questions on domain terms rather than relying solely on the closeness of semantic vectors.
50%UnverifiedGraphRAG is a variant of retrieval-augmented generation in which the retrieval stage first performs entity recognition and multi-hop traversal on a graph, then injects the matched subgraph as context into the generative model.
50%UnverifiedModern AI search engines (such as Perplexity and ChatGPT Search) use vector space embeddings and graph-enhanced RAG retrieval, rather than crawling web pages in real time to count keyword density to determine visibility.
50%UnverifiedThe structure of a knowledge triple is (subject entity)--[directed predicate]-->(object entity/value constraint), and it is the atomic data unit of GraphRAG.
50%UnverifiedElastic believes graph databases (GraphRAG) have not been proven necessary in large-scale scenarios of billions of vectors, and currently prefers classification models and filtering mechanisms to solve relational reasoning problems.
50%UnverifiedFuseRAG achieves a 2.2 to 2.7 times TTFT speedup over the best GraphRAG baseline with no quality loss by separating reusable content from query-relevant structural interactions and injecting the latter into the decoder's self-attention layers.
50%UnverifiedKV-cache reuse presupposes a stable prefix, and GraphRAG flattens the graph structure into linear text, so the context prefix differs almost every query and the cache hit rate is extremely low.
50%