The rapid emergence of generative AI models like Large Language Models (LLMs) has demonstrated its utility across various activities, including within Requirements Engineering (RE). Ensuring the quality and accuracy of LLM-generated output is critical, with prompt engineering serving as a key technique to guide model responses. However, existing literature provides limited guidance on how prompt engineering can be leveraged, specifically for RE activities. The objective of this study is to explore the applicability of existing prompt engineering guidelines for the effective usage of LLMs within RE. To achieve this goal, we began by conducting a systematic review of primary literature to compile a non-exhaustive list of prompt engineering guidelines. Then, we conducted interviews with RE experts to present the extracted guidelines and gain insights on the advantages and limitations of their application within RE. Our literature review indicates a shortage of prompt engineering guidelines for domain-specific activities, specifically for RE. Our proposed mapping contributes to addressing this shortage. We conclude our study by identifying an important future line of research within this field.
翻译:生成式人工智能模型(如大型语言模型)的迅速兴起,已证明其在包括需求工程在内的各类活动中具有实用价值。确保大型语言模型生成输出的质量与准确性至关重要,而提示工程作为引导模型响应的关键技术,在其中扮演着关键角色。然而,现有文献对于如何具体在需求工程活动中运用提示工程提供的指导有限。本研究旨在探讨现有提示工程指南在需求工程中有效运用大型语言模型的适用性。为实现此目标,我们首先对主要文献进行了系统性综述,以汇编一份非穷尽性的提示工程指南清单。随后,我们访谈了需求工程领域的专家,向他们展示所提取的指南,并就这些指南在需求工程中应用的优势与局限性获取见解。我们的文献综述表明,目前缺乏针对特定领域活动(尤其是需求工程)的提示工程指南。我们提出的映射关系有助于弥补这一不足。最后,我们通过指出该领域未来的一项重要研究方向来总结本研究。