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

面向检索增强大语言模型的元知识

Meta Knowledge for Retrieval Augmented Large Language Models

Laurent Mombaerts, Terry Ding, Adi Banerjee, Florian Felice, Jonathan Taws, Tarik Borogovac

AI总结:

本研究针对RAG系统难综合大量多样化文档的问题,提出含元知识摘要的“准备-改写-检索-阅读”新型数据-centric RAG工作流,验证其检索与答案质量更优且成本低,可适配微调进一步提效。

摘要:

检索增强生成(Retrieval Augmented Generation, RAG)是一种在不修改底层模型参数的前提下,为大语言模型(Large Language Models, LLMs)补充上下文相关、时效性强或领域特定信息的技术。然而,构建能够有效综合大量多样化文档信息的RAG系统仍是一项重大挑战。我们提出了一种面向大语言模型的、以数据为中心的新型RAG工作流,将传统的“检索-阅读”系统改造为更先进的“准备-改写-检索-阅读”框架,以实现对知识库达到领域专家级的深度理解。我们的方法核心在于为每份文档生成元数据与合成问答对(Questions and Answers, QA),同时提出元知识摘要(Meta Knowledge Summary, MK Summary)这一新概念,用于处理基于元数据聚类的文档组。这些创新点可实现个性化的用户查询增强,以及跨知识库的深度信息检索。本研究有两项重要贡献:通过以大语言模型作为评估器并采用新的对比性能指标,我们证明:(1)使用结合合成问题匹配的增强查询,性能显著优于依赖文档分块的传统RAG流水线(p < 0.01);(2)元知识增强的查询可进一步显著提升检索的精确率和召回率,同时提升最终答案的广度、深度、相关性和特异性。我们的方法具备成本效益,使用Claude 3 Haiku处理每2000篇研究论文的成本低于20美元,且可适配语言模型或嵌入模型的任意微调,以进一步提升端到端RAG流水线的性能。

英文摘要:

Retrieval Augmented Generation (RAG) is a technique used to augment Large Language Models (LLMs) with contextually relevant, time-critical, or domain-specific information without altering the underlying model parameters. However, constructing RAG systems that can effectively synthesize information from large and diverse set of documents remains a significant challenge. We introduce a novel data-centric RAG workflow for LLMs, transforming the traditional retrieve-then-read system into a more advanced prepare-then-rewrite-then-retrieve-then-read framework, to achieve higher domain expert-level understanding of the knowledge base. Our methodology relies on generating metadata and synthetic Questions and Answers (QA) for each document, as well as introducing the new concept of Meta Knowledge Summary (MK Summary) for metadata-based clusters of documents. The proposed innovations enable personalized user-query augmentation and in-depth information retrieval across the knowledge base. Our research makes two significant contributions: using LLMs as evaluators and employing new comparative performance metrics, we demonstrate that (1) using augmented queries with synthetic question matching significantly outperforms traditional RAG pipelines that rely on document chunking (p < 0.01), and (2) meta knowledge-augmented queries additionally significantly improve retrieval precision and recall, as well as the final answers breadth, depth, relevancy, and specificity. Our methodology is cost-effective, costing less than $20 per 2000 research papers using Claude 3 Haiku, and can be adapted with any fine-tuning of either the language or embedding models to further enhance the performance of end-to-end RAG pipelines.

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

↑