Requirements Engineering Using Generative AI: Prompts and Prompting Patterns
Kapitel i bok, 2024

Context Companies are increasingly recognizing the importance of automating Requirements Engineering (RE) tasks due to their resource-intensive nature. The advent of GenAI has made these tasks more amenable to automation, thanks to its ability to understand and interpret context effectively. Problem However, inthecontext ofGenAI,promptengineering isacriticalfactorforsuccess. Despite this, we currently lack tools and methods to systematically assess and determine the most effective prompt patterns to employ for a particular RE task.
Method Two tasks related to requirements, specifically requirement classification and tracing, were automated using the GPT-3.5 turbo API. The performance evaluation involved assessing various prompts created using 5 prompt patterns and implemented programmatically to perform the selected RE tasks, focusing on metrics such as precision, recall, accuracy, and F-Score.
Results This paper evaluates the effectiveness of the 5 prompt patterns’ ability to make GPT-3.5 turbo perform the selected RE tasks and offers recommendations on which prompt pattern to use for a specific RE task. Additionally, it also provides an evaluation framework as a reference for researchers and practitioners who want to evaluate different prompt patterns for different RE tasks.

Författare

Krishna Ronanki

Software Engineering 2

Göteborgs universitet

Beatriz Cabrero-Daniel

Software Engineering 2

Göteborgs universitet

Jennifer Horkoff

Göteborgs universitet

Software Engineering 1

Christian Berger

Software Engineering 2

Göteborgs universitet

Generative AI for Effective Software Development

109-127

Ämneskategorier (SSIF 2025)

Programvaruteknik

Datavetenskap (datalogi)

DOI

10.1007/978-3-031-55642-5_5

Mer information

Senast uppdaterat

2025-07-01