arXiv:2504.11544cs.AI2025-04被引 24

用异构图结构提升RAG效率,让大模型更准更快回答复杂问题。

NodeRAG: Structuring Graph-based RAG with Heterogeneous Nodes

  • 构建异构图结构,统一整合多种图算法到RAG流程中。
  • 在多跳问答任务上表现优于GraphRAG和LightRAG,检索词数最少。
  • 适合需要高效、高精度知识问答的系统开发者与研究者。

检索增强生成(RAG)使大语言模型能够访问外部私有语料库,实现特定领域的事实一致响应。通过利用语料库的固有结构,基于图的RAG方法通过构建知识图谱索引,进一步丰富了这一过程。然而,现有基于图的RAG方法很少关注图结构的设计。不当的图结构不仅阻碍多种图算法的无缝集成,还导致工作流不一致和性能下降。为充分释放图结构在RAG中的潜力,我们提出NodeRAG——一种以图为中心的框架,引入异构图结构,实现基于图的方法在RAG工作流中的无缝且全面整合。该框架紧密贴合大语言模型的能力,确保端到端流程的完整性和高效性。大量实验表明,NodeRAG在索引时间、查询时间、存储效率方面均优于先前方法(如GraphRAG和LightRAG),并在多跳问答基准测试及开放性对比评估中展现出更优的问答性能,同时仅需极少的检索词数。代码开源地址:https://github.com/Terry-Xu-666/NodeRAG。

原文摘要 · Abstract (English)

Retrieval-augmented generation (RAG) empowers large language models to access external and private corpus, enabling factually consistent responses in specific domains. By exploiting the inherent structure of the corpus, graph-based RAG methods further enrich this process by building a knowledge graph index and leveraging the structural nature of graphs. However, current graph-based RAG approaches seldom prioritize the design of graph structures. Inadequately designed graph not only impede the seamless integration of diverse graph algorithms but also result in workflow inconsistencies and degraded performance. To further unleash the potential of graph for RAG, we propose NodeRAG, a graph-centric framework introducing heterogeneous graph structures that enable the seamless and holistic integration of graph-based methodologies into the RAG workflow. By aligning closely with the capabilities of LLMs, this framework ensures a fully cohesive and efficient end-to-end process. Through extensive experiments, we demonstrate that NodeRAG exhibits performance advantages over previous methods, including GraphRAG and LightRAG, not only in indexing time, query time, and storage efficiency but also in delivering superior question-answering performance on multi-hop benchmarks and open-ended head-to-head evaluations with minimal retrieval tokens. Our GitHub repository could be seen at https://github.com/Terry-Xu-666/NodeRAG.

RAG知识图谱异构图大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。