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

RAG Foundry:一个用于增强大语言模型以支持检索增强生成的框架

RAG Foundry: A Framework for Enhancing LLMs for Retrieval Augmented Generation

Intel Labs(英特尔实验室)

Daniel Fleischer, Moshe Berchansky, Moshe Wasserblat, Peter Izsak

AI总结:

本文提出开源框架 RAG Foundry,将数据创建、训练、推理与评估集成为单一工作流,用于快速构建和实验 RAG 系统,并通过微调 Llama-3 和 Phi-3 在多个知识密集型数据集上验证了其有效性。

摘要:

实现检索增强生成(RAG)系统本质上十分复杂,需要深入理解数据、用例以及复杂的设计决策。此外,评估这些系统也面临重大挑战,需要通过多方面的方法同时评估检索准确性和生成质量。我们提出了 RAG Foundry,这是一个开源框架,用于针对 RAG 用例增强大语言模型。RAG Foundry 将数据创建、训练、推理和评估集成到单一工作流中,便于创建数据增强数据集,用于在 RAG 场景下训练和评估大语言模型。这种集成支持对各种 RAG 技术进行快速原型设计和实验,使用户能够利用内部或专业知识源轻松生成数据集并训练 RAG 模型。我们通过使用多种 RAG 配置对 Llama-3 和 Phi-3 模型进行增强和微调,展示了该框架的有效性,并在三个知识密集型数据集上表现出一致的改进。代码已在 https://github.com/IntelLabs/RAGFoundry 以开源形式发布。

英文摘要:

Implementing Retrieval-Augmented Generation (RAG) systems is inherently complex, requiring deep understanding of data, use cases, and intricate design decisions. Additionally, evaluating these systems presents significant challenges, necessitating assessment of both retrieval accuracy and generative quality through a multi-faceted approach. We introduce RAG Foundry, an open-source framework for augmenting large language models for RAG use cases. RAG Foundry integrates data creation, training, inference and evaluation into a single workflow, facilitating the creation of data-augmented datasets for training and evaluating large language models in RAG settings. This integration enables rapid prototyping and experimentation with various RAG techniques, allowing users to easily generate datasets and train RAG models using internal or specialized knowledge sources. We demonstrate the framework effectiveness by augmenting and fine-tuning Llama-3 and Phi-3 models with diverse RAG configurations, showcasing consistent improvements across three knowledge-intensive datasets. Code is released as open-source in https://github.com/IntelLabs/RAGFoundry.

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

↑