arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.05212cs.IR
收藏

RETA-LLM:一个检索增强的大语言模型工具包

RETA-LLM: A Retrieval-Augmented Large Language Model Toolkit

Jiongnan Liu, Jiajie Jin, Zihan Wang, Jiehan Cheng, Zhicheng Dou, Ji-Rong Wen

AI总结:

本文提出 RETA-LLM 工具包,通过完整流水线与多个即插即用模块支持检索增强 LLM 系统构建,以缓解幻觉并增强领域问答能力。

摘要:

尽管大语言模型(LLM)已在许多领域展现出非凡能力,但它们仍有产生幻觉并针对用户请求生成虚构回答的倾向。通过利用信息检索(IR)系统增强 LLM(也称为检索增强 LLM),可以缓解这一问题。应用该策略时,LLM 能够根据 IR 系统从外部语料库中检索到的相关内容作为参考,生成更具事实性的文本来响应用户输入。此外,通过引入外部知识,检索增强 LLM 可以回答仅依赖参数中存储的世界知识所无法回答的领域内问题。为支持该领域的研究并促进检索增强 LLM 系统的开发,我们构建了 RETA-LLM,一个检索增强 LLM 工具包。在 RETA-LLM 中,我们创建了完整流水线,以帮助研究人员和用户构建定制化的、基于领域内 LLM 的系统。与以往的检索增强 LLM 系统相比,RETA-LLM 提供更多即插即用模块,以支持 IR 系统与 LLM 之间更好的交互,包括请求重写、文档检索、段落抽取、答案生成和事实验证模块。我们的工具包已公开发布于 https://github.com/RUC-GSAI/YuLan-IR/tree/main/RETA-LLM。

英文摘要:

Although Large Language Models (LLMs) have demonstrated extraordinary capabilities in many domains, they still have a tendency to hallucinate and generate fictitious responses to user requests. This problem can be alleviated by augmenting LLMs with information retrieval (IR) systems (also known as retrieval-augmented LLMs). Applying this strategy, LLMs can generate more factual texts in response to user input according to the relevant content retrieved by IR systems from external corpora as references. In addition, by incorporating external knowledge, retrieval-augmented LLMs can answer in-domain questions that cannot be answered by solely relying on the world knowledge stored in parameters. To support research in this area and facilitate the development of retrieval-augmented LLM systems, we develop RETA-LLM, a {RET}reival-{A}ugmented LLM toolkit. In RETA-LLM, we create a complete pipeline to help researchers and users build their customized in-domain LLM-based systems. Compared with previous retrieval-augmented LLM systems, RETA-LLM provides more plug-and-play modules to support better interaction between IR systems and LLMs, including {request rewriting, document retrieval, passage extraction, answer generation, and fact checking} modules. Our toolkit is publicly available at https://github.com/RUC-GSAI/YuLan-IR/tree/main/RETA-LLM.

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

↑