arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.13880cs.CL
收藏

基于RAG的机构助理

A RAG-Based Institutional Assistant

University of São Paulo(圣保罗大学)

Gustavo Kuratomi, Paulo Pirozelli, Fabio G. Cozman, Sarajane M. Peres

AI总结:

本研究针对LLM在知识密集型任务中访问特定文档的不足,设计并评估了基于RAG的圣保罗大学虚拟助理,通过检索器与生成模型结合,实验表明提供正确文档块可显著提升准确率至54.02%,凸显数据库访问的关键作用。

摘要:

尽管大型语言模型(LLMs)展现出强大的文本生成能力,但在需要访问结构化知识库或特定文档的场景中,它们表现不佳,这限制了它们在知识密集型任务中的有效性。为了解决这一局限性,研究者开发了检索增强生成(RAG)模型,使生成模型能够将相关文档片段纳入其输入中。在本文中,我们设计并评估了一个专门为圣保罗大学定制的基于RAG的虚拟助理。我们的系统架构包含两个关键模块:一个检索器和一个生成模型。我们对这两个组件尝试了不同类型的模型,并调整了诸如块大小和检索文档数量等超参数。我们最优的检索器模型达到了30%的Top-5准确率,而我们最有效的生成模型在参考答案上的得分为22.04%。值得注意的是,当向LLMs提供正确的文档块时,准确率显著提升至54.02%,增加了超过30个百分点。相反,在没有上下文输入的情况下,性能下降至13.68%。这些发现强调了数据库访问在提升LLM性能中的关键作用。它们也揭示了当前语义搜索方法在准确识别相关文档方面的局限性,并强调了LLMs在生成精确响应方面面临的持续挑战。

英文摘要:

Although large language models (LLMs) demonstrate strong text generation capabilities, they struggle in scenarios requiring access to structured knowledge bases or specific documents, limiting their effectiveness in knowledge-intensive tasks. To address this limitation, retrieval-augmented generation (RAG) models have been developed, enabling generative models to incorporate relevant document fragments into their inputs. In this paper, we design and evaluate a RAG-based virtual assistant specifically tailored for the University of São Paulo. Our system architecture comprises two key modules: a retriever and a generative model. We experiment with different types of models for both components, adjusting hyperparameters such as chunk size and the number of retrieved documents. Our optimal retriever model achieves a Top-5 accuracy of 30%, while our most effective generative model scores 22.04\% against ground truth answers. Notably, when the correct document chunks are supplied to the LLMs, accuracy significantly improves to 54.02%, an increase of over 30 percentage points. Conversely, without contextual input, performance declines to 13.68%. These findings highlight the critical role of database access in enhancing LLM performance. They also reveal the limitations of current semantic search methods in accurately identifying relevant documents and underscore the ongoing challenges LLMs face in generating precise responses.

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

↑