arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.05138cs.SEcs.AI
收藏

大型语言模型(LLMs)是否被正确集成到软件系统中?

Are LLMs Correctly Integrated into Software Systems?

East China Normal University(华东师范大学);The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学)

Yuchen Shao, Yuheng Huang, Jiawei Shen, Lei Ma, Ting Su, Chengcheng Wan

AI总结:

针对LLM与RAG集成到软件系统时面临的接口、需求及管理挑战,本文通过研究100个相关开源应用识别18种缺陷模式,发现77%应用存在三类以上缺陷,进而提出系统指南并构建缺陷库Hydrangea。

摘要:

大型语言模型(LLMs)在检索增强生成(RAG)的支持下,在各种应用场景中提供了有效的解决方案。然而,由于缺乏接口规范、软件上下文的多样需求以及复杂的系统管理,开发人员在将LLM和RAG集成到软件系统时面临挑战。本文对100个集成了LLM并支持RAG的开源应用进行了全面研究,识别出18种缺陷模式。研究表明,77%的这些应用包含三种以上集成缺陷,会降低软件的功能、效率和安全性。基于该研究,我们提出了软件生命周期中解决这些缺陷的系统指南,并构建了开源缺陷库Hydrangea。

英文摘要:

Large language models (LLMs) provide effective solutions in various application scenarios, with the support of retrieval-augmented generation (RAG). However, developers face challenges in integrating LLM and RAG into software systems, due to lacking interface specifications, various requirements from software context, and complicated system management. In this paper, we have conducted a comprehensive study of 100 open-source applications that incorporate LLMs with RAG support, and identified 18 defect patterns. Our study reveals that 77% of these applications contain more than three types of integration defects that degrade software functionality, efficiency, and security. Guided by our study, we propose systematic guidelines for resolving these defects in software life cycle. We also construct an open-source defect library Hydrangea.

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

↑