Requirements extraction and modeling are critical phases in software development, which have a direct impact on design quality and alignment with stakeholder needs. The integration of Retrieval-Augmented Generation (RAG) techniques with Large Language Models (LLMs) enables the automation and optimization of requirement analysis, improving information consistency and traceability. This paper explores how the RAG paradigm can be used for automatic requirement extraction and UML diagram generation. In particular, it focuses on use case and sequence diagrams. We analyze the advantages and challenges of this methodology, with a particular focus on model accuracy. We present a practical implementation using RAG and LLM to support requirements engineering, highlighting the achieved results and future research directions. The presented case study has been provided by the Italian Ministry of Justice, through the Direzione Generale per i Sistemi Informativi Automatizzati.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Requirements Extraction, Definition, and Design Using Retrieval Augmented Generation and Large Language Models

  • Beniamino Di Martino,
  • Salvatore D’Angelo,
  • Antonio Esposito,
  • Dario Branco,
  • Carla Mastino,
  • Gianluca Paravati

摘要

Requirements extraction and modeling are critical phases in software development, which have a direct impact on design quality and alignment with stakeholder needs. The integration of Retrieval-Augmented Generation (RAG) techniques with Large Language Models (LLMs) enables the automation and optimization of requirement analysis, improving information consistency and traceability. This paper explores how the RAG paradigm can be used for automatic requirement extraction and UML diagram generation. In particular, it focuses on use case and sequence diagrams. We analyze the advantages and challenges of this methodology, with a particular focus on model accuracy. We present a practical implementation using RAG and LLM to support requirements engineering, highlighting the achieved results and future research directions. The presented case study has been provided by the Italian Ministry of Justice, through the Direzione Generale per i Sistemi Informativi Automatizzati.