NodeRAG:用异质节点构建基于图的检索增强生成(RAG)结构
NodeRAG: Structuring Graph-based RAG with Heterogeneous Nodes
AI总结:
针对当前基于图的RAG方法忽视图结构设计导致性能下降的问题,提出NodeRAG框架,通过引入异质图结构实现图方法与RAG工作流程的无缝集成,在索引、查询效率及多跳问答性能上优于GraphRAG等现有方法。
摘要:
检索增强生成(RAG)使大型语言模型能够访问外部和私有语料库,从而在特定领域生成事实一致的响应。基于图的RAG方法通过利用语料库的固有结构,构建知识图索引并借助图的结构特性进一步丰富这一过程。然而,当前基于图的RAG方法很少优先考虑图结构的设计。设计不当的图不仅阻碍了不同图算法的无缝集成,还导致工作流程不一致和性能下降。为进一步释放图在RAG中的潜力,我们提出NodeRAG,一个以图为中心的框架,引入异质图结构,使基于图的方法能够无缝、整体地集成到RAG工作流程中。通过与大型语言模型的能力紧密对齐,该框架确保了完全连贯和高效的端到端过程。通过广泛实验,我们证明NodeRAG在索引时间、查询时间和存储效率方面优于GraphRAG和LightRAG等现有方法,同时在多跳基准测试和开放式直接评估中以最少的检索令牌实现了更优的问答性能。我们的GitHub仓库地址为https://github.com/Terry-Xu-666/NodeRAG。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。