Are LLMs Correctly Integrated into Software Systems?
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 [1].
Authors
- Ting Su (ORCID: https://orcid.org/0000-0003-1628-9796)
- Yuheng Huang (ORCID: https://orcid.org/0000-0003-3666-4020)
- Jiawei Shen (ORCID: https://orcid.org/0000-0002-9728-2352)
- Lei Ma
- Yuchen Shao
- Chengcheng Wan (ORCID: https://orcid.org/0000-0001-9162-9688)
Institutions
- East China Normal University (CN)
- The University of Tokyo (JP)
Publication Details
- Published
- 2025-04-26
- DOI
- https://doi.org/10.1109/icse55347.2025.00204
- Citations
- 3
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 7.44
Funders
- National Natural Science Foundation of China