Requirements Engineering Using Generative AI: Prompts and Prompting Patterns. Ronanki, K., Cabrero-Daniel, B., Horkoff, J., & Berger, C. In Nguyen-Duc, A., Abrahamsson, P., & Khomh, F., editors, Generative AI for Effective Software Development, pages 109–127. Springer Nature Switzerland, Cham, 2024.
Paper doi abstract bibtex 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, in the context of GenAI, prompt engineering is a critical factor for success. 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.
@incollection{nguyen-duc_requirements_2024,
address = {Cham},
title = {Requirements {Engineering} {Using} {Generative} {AI}: {Prompts} and {Prompting} {Patterns}},
isbn = {978-3-031-55641-8 978-3-031-55642-5},
shorttitle = {Requirements {Engineering} {Using} {Generative} {AI}},
url = {https://link.springer.com/10.1007/978-3-031-55642-5_5},
doi = {10.1007/978-3-031-55642-5_5},
abstract = {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, in the context of GenAI, prompt engineering is a critical factor for success. 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.},
language = {en},
urldate = {2026-01-14},
booktitle = {Generative {AI} for {Effective} {Software} {Development}},
publisher = {Springer Nature Switzerland},
author = {Ronanki, Krishna and Cabrero-Daniel, Beatriz and Horkoff, Jennifer and Berger, Christian},
editor = {Nguyen-Duc, Anh and Abrahamsson, Pekka and Khomh, Foutse},
year = {2024},
keywords = {/unread},
pages = {109--127},
}
Downloads: 0
{"_id":"ALFoykJ8MuRMKrNir","bibbaseid":"ronanki-cabrerodaniel-horkoff-berger-requirementsengineeringusinggenerativeaipromptsandpromptingpatterns-2024","author_short":["Ronanki, K.","Cabrero-Daniel, B.","Horkoff, J.","Berger, C."],"bibdata":{"bibtype":"incollection","type":"incollection","address":"Cham","title":"Requirements Engineering Using Generative AI: Prompts and Prompting Patterns","isbn":"978-3-031-55641-8 978-3-031-55642-5","shorttitle":"Requirements Engineering Using Generative AI","url":"https://link.springer.com/10.1007/978-3-031-55642-5_5","doi":"10.1007/978-3-031-55642-5_5","abstract":"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, in the context of GenAI, prompt engineering is a critical factor for success. 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.","language":"en","urldate":"2026-01-14","booktitle":"Generative AI for Effective Software Development","publisher":"Springer Nature Switzerland","author":[{"propositions":[],"lastnames":["Ronanki"],"firstnames":["Krishna"],"suffixes":[]},{"propositions":[],"lastnames":["Cabrero-Daniel"],"firstnames":["Beatriz"],"suffixes":[]},{"propositions":[],"lastnames":["Horkoff"],"firstnames":["Jennifer"],"suffixes":[]},{"propositions":[],"lastnames":["Berger"],"firstnames":["Christian"],"suffixes":[]}],"editor":[{"propositions":[],"lastnames":["Nguyen-Duc"],"firstnames":["Anh"],"suffixes":[]},{"propositions":[],"lastnames":["Abrahamsson"],"firstnames":["Pekka"],"suffixes":[]},{"propositions":[],"lastnames":["Khomh"],"firstnames":["Foutse"],"suffixes":[]}],"year":"2024","keywords":"/unread","pages":"109–127","bibtex":"@incollection{nguyen-duc_requirements_2024,\n\taddress = {Cham},\n\ttitle = {Requirements {Engineering} {Using} {Generative} {AI}: {Prompts} and {Prompting} {Patterns}},\n\tisbn = {978-3-031-55641-8 978-3-031-55642-5},\n\tshorttitle = {Requirements {Engineering} {Using} {Generative} {AI}},\n\turl = {https://link.springer.com/10.1007/978-3-031-55642-5_5},\n\tdoi = {10.1007/978-3-031-55642-5_5},\n\tabstract = {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, in the context of GenAI, prompt engineering is a critical factor for success. 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.},\n\tlanguage = {en},\n\turldate = {2026-01-14},\n\tbooktitle = {Generative {AI} for {Effective} {Software} {Development}},\n\tpublisher = {Springer Nature Switzerland},\n\tauthor = {Ronanki, Krishna and Cabrero-Daniel, Beatriz and Horkoff, Jennifer and Berger, Christian},\n\teditor = {Nguyen-Duc, Anh and Abrahamsson, Pekka and Khomh, Foutse},\n\tyear = {2024},\n\tkeywords = {/unread},\n\tpages = {109--127},\n}\n\n\n\n\n\n\n\n","author_short":["Ronanki, K.","Cabrero-Daniel, B.","Horkoff, J.","Berger, C."],"editor_short":["Nguyen-Duc, A.","Abrahamsson, P.","Khomh, F."],"key":"nguyen-duc_requirements_2024","id":"nguyen-duc_requirements_2024","bibbaseid":"ronanki-cabrerodaniel-horkoff-berger-requirementsengineeringusinggenerativeaipromptsandpromptingpatterns-2024","role":"author","urls":{"Paper":"https://link.springer.com/10.1007/978-3-031-55642-5_5"},"keyword":["/unread"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"incollection","biburl":"https://bibbase.org/zotero/maraee75","dataSources":["4ba3Fdzx8LKWWBtAB","PjpadRRabZA7FRKpn"],"keywords":["/unread"],"search_terms":["requirements","engineering","using","generative","prompts","prompting","patterns","ronanki","cabrero-daniel","horkoff","berger"],"title":"Requirements Engineering Using Generative AI: Prompts and Prompting Patterns","year":2024}