arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.37728cs.IRcs.AIcs.LG
收藏

超越相似性搜索:面向企业检索增强生成的知识图谱元数据丰富化

Beyond Similarity Search: Knowledge Graph Metadata Enrichment for Enterprise Retrieval-Augmented Generation

Fakabbir Amin

AI总结:

该研究针对企业RAG的信息检索挑战,构建含特定规模节点边的知识图谱,对比三种架构后发现GraphRAG在多类问题上表现优于文本转SQL和向量RAG,且无同姓人员混淆错误。

摘要:

检索增强生成(RAG)系统的一项关键挑战是从不同团队随时间创建的企业文档中检索信息,这些信息无法利用组织文档责任范围外的最新信息和元数据进行丰富。我们研究使用知识图谱存储元数据和频繁变化的信息,是否能改进基于嵌入的相似性搜索的知识检索。为开展实验,我们创建了某季度SEC EDGAR数据集的快照,包含10511家公司的167050份文件,以及508714个风险因素文本的嵌入块。为模拟丰富化,我们构建了一个包含430257个节点和561144条边的知识图谱,每条边都带有登录号。为评估基于图的设计的增益,我们评估了三种架构:针对类型化列的文本转SQL、采用HNSW余弦搜索的稠密向量RAG,以及两阶段GraphRAG设计。所有架构使用相同的模型和温度以便比较。结果由LLM作为评判者,针对20个问题(分为四类,每个问题提问三次)进行编程评分。GraphRAG在所有三次尝试中解决了20个问题中的16个,而文本转SQL为10个,向量RAG为3个。GraphRAG在结构化聚合查询上表现不佳;向量RAG在其预期获胜的单文档类别中失败,在15个问题中通过3个,而GraphRAG在15个问题中全部通过,因为在该规模下无法从余弦相似度中恢复公司归属。基准测试中所有6个高置信度错误均为文本转SQL混淆了同姓的不同人员,而在读取任何文本前将身份解析为标识符可从结构上避免此失败,GraphRAG未出现此类错误。我们声明该优势仅适用于本语料库、本模型和本问题集。

英文摘要:

A key challenge of RAG systems is retrieving information from enterprise documents created by multiple teams over time, where it is not possible to enrich the information using the latest information and metadata available outside the scope of organizational documentation responsibility. We investigated whether using a knowledge graph to store metadata and frequently changing information would improve upon knowledge retrieval over similarity search over embeddings. To perform the experiment, we created a snapshot of the SEC EDGAR dataset for a quarter, comprising 167,050 filings from 10,511 companies and 508,714 embedded chunks of risk-factor text. To simulate the enrichment, we created a knowledge graph of 430,257 nodes and 561,144 edges carrying an accession number on every edge. To evaluate the gain obtained via a graph-based design, we evaluated three architectures: text-to-SQL over typed columns, dense-vector RAG with HNSW cosine search, and a two-stage GraphRAG design. All architectures share the same model and temperature to allow comparison. Results are scored programmatically by an LLM as judge over 20 questions divided across four categories, each question asked three times. GraphRAG solved 16 of 20 questions on all three attempts, compared to 10 for text-to-SQL and 3 for vector RAG. GraphRAG lost on structured aggregation queries. Vector RAG lost the single-document category it was expected to win, passing 3 of 15 where GraphRAG passed 15 of 15, because company attribution is not recoverable from cosine similarity at this scale. All six confident falsehoods in the benchmark were text-to-SQL conflating distinct people who share a surname, the failure that resolving identity to an identifier before reading any text prevents structurally; GraphRAG made none. We claim no advantage beyond this corpus, this model and this question set.

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

↑