arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09304cs.IR
收藏

KET-RAG:一种面向Graph-RAG的高成本效益多粒度索引框架

KET-RAG: A Cost-Efficient Multi-Granular Indexing Framework for Graph-RAG

Yiqian Huang, Shiqi Zhang, Xiaokui Xiao

AI总结:

KET-RAG提出一种多粒度索引框架,通过关键文本块构建知识图谱骨架,并以文本-关键词二分图作为轻量级替代,在保证检索与生成质量的同时将索引成本降低一个数量级以上。

摘要:

Graph-RAG从文本块中构建知识图谱,以改进基于大语言模型(LLM)的问答系统中的检索效果。它在生物医学、法律和政治科学等领域尤其有用,因为这些领域的检索通常需要对专有文档进行多跳推理。现有的一些Graph-RAG系统基于文本块相关性构建KNN图,但这种粗粒度方法无法捕捉文本内部的实体关系,导致检索和生成质量欠佳。为解决这一问题,近期方案利用LLM从文本块中提取实体和关系,构建基于三元组的知识图谱。然而,这种方法会产生显著的索引成本,尤其是在处理大规模文档集合时。为了在保证结果准确性的同时降低索引成本,我们提出了KET-RAG,一种多粒度索引框架。KET-RAG首先识别一小组关键文本块,并利用LLM构建知识图谱骨架。然后,它从所有文本块构建文本-关键词二分图,作为完整知识图谱的轻量级替代方案。在检索过程中,KET-RAG同时搜索这两种结构:它在骨架上遵循现有Graph-RAG系统的局部搜索策略,同时在二分图上模拟该搜索以提高检索质量。我们在三个真实世界数据集上评估了13种方案,证明KET-RAG在索引成本、检索效果和生成质量方面均优于所有竞争对手。值得注意的是,它取得了与微软Graph-RAG相当或更优的检索质量,同时将索引成本降低了一个数量级以上。此外,它将生成质量提高了最多32.4%,同时将索引成本降低了约20%。

英文摘要:

Graph-RAG constructs a knowledge graph from text chunks to improve retrieval in Large Language Model (LLM)-based question answering. It is particularly useful in domains such as biomedicine, law, and political science, where retrieval often requires multi-hop reasoning over proprietary documents. Some existing Graph-RAG systems construct KNN graphs based on text chunk relevance, but this coarse-grained approach fails to capture entity relationships within texts, leading to sub-par retrieval and generation quality. To address this, recent solutions leverage LLMs to extract entities and relationships from text chunks, constructing triplet-based knowledge graphs. However, this approach incurs significant indexing costs, especially for large document collections. To ensure a good result accuracy while reducing the indexing cost, we propose KET-RAG, a multi-granular indexing framework. KET-RAG first identifies a small set of key text chunks and leverages an LLM to construct a knowledge graph skeleton. It then builds a text-keyword bipartite graph from all text chunks, serving as a lightweight alternative to a full knowledge graph. During retrieval, KET-RAG searches both structures: it follows the local search strategy of existing Graph-RAG systems on the skeleton while mimicking this search on the bipartite graph to improve retrieval quality. We evaluate 13 solutions on three real-world datasets, demonstrating that KET-RAG outperforms all competitors in indexing cost, retrieval effectiveness, and generation quality. Notably, it achieves comparable or superior retrieval quality to Microsoft's Graph-RAG while reducing indexing costs by over an order of magnitude. Additionally, it improves the generation quality by up to 32.4% while lowering indexing costs by around 20%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑