arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.03832cs.SE
收藏

使用生成式AI的需求工程:提示词与提示模式

Requirements Engineering using Generative AI: Prompts and Prompting Patterns

Krishna Ronanki, Beatriz Cabrero-Daniel, Jennifer Horkoff, Christian Berger

AI总结:

本研究针对生成式AI在需求工程任务中缺乏系统提示模式评估方法的问题,用GPT-3.5 turbo测试5种提示模式在需求分类、追踪任务上的性能,给出选用建议并提供评估参考框架。

摘要:

【背景】由于需求工程(Requirements Engineering,RE)任务属于资源密集型工作,企业正日益认识到实现其自动化的重要性。生成式AI(GenAI)的问世凭借其有效理解和解读上下文的能力,让这类任务更易于实现自动化。【问题】然而在生成式AI的应用场景中,提示工程是决定成败的关键因素。尽管如此,我们目前仍缺乏可系统评估并确定针对特定RE任务应采用的最高效提示模式的工具与方法。【方法】本研究借助GPT-3.5 turbo API实现了两项需求相关任务的自动化,具体为需求分类与需求追踪。性能评估环节对采用5种提示模式构建、通过编程实现的各类提示词执行选定RE任务的效果进行了测评,重点关注精确率、召回率、准确率以及F值等指标。【结果】本文评估了5种提示模式在促使GPT-3.5 turbo完成选定RE任务方面的效能,并针对不同的特定RE任务给出了应选用何种提示模式的建议。此外,本文还提供了一套评估框架,可供希望针对不同RE任务评估各类提示模式的研究人员与从业者参考。

英文摘要:

[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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑