English

Are LLMs Correctly Integrated into Software Systems?

Software Engineering 2025-02-11 v2 Artificial Intelligence

Abstract

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.

Keywords

Cite

@article{arxiv.2407.05138,
  title  = {Are LLMs Correctly Integrated into Software Systems?},
  author = {Yuchen Shao and Yuheng Huang and Jiawei Shen and Lei Ma and Ting Su and Chengcheng Wan},
  journal= {arXiv preprint arXiv:2407.05138},
  year   = {2025}
}

Comments

accepted by ICSE 2025

R2 v1 2026-06-28T17:31:28.104Z