arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.16932cs.SE
收藏

PromptSet:一个程序员的提示数据集

PromptSet: A Programmer's Prompting Dataset

Kaiser Pister, Dhruba Jyoti Paul, Patrick Brophy, Ishan Joshi

AI总结:

本文提出包含超6.1万条开源Python开发者提示的PromptSet数据集,并引入提示静态检查器概念,以弥补提示缺乏有效静态测试和代码检查的问题。

摘要:

大型语言模型所展现能力的崛起,迅速伴随着这些复杂系统被集成到应用层逻辑之中。算法、程序、系统和公司都围绕对黑盒模型的结构化提示而构建,其中大部分设计与实现工作在于捕捉和量化“智能体模式”。塑造一个封闭语言模型的标准方式,是用一个量身定制的提示为其针对特定任务进行预热,这类提示最初通常由人类手写。文本提示与代码库共同演化,在项目生命周期中逐渐成形,成为必须像传统代码文件一样被审查和维护的工件。与传统代码不同,我们发现提示并未得到有效的静态测试和代码检查来防止运行时问题。在这项工作中,我们提出了一个名为 PromptSet 的新数据集,其中包含超过 61,000 条在开源 Python 程序中使用的独特开发者提示。我们对该数据集进行了分析,并引入了针对提示的静态代码检查器这一概念。随本文发布的是一个 HuggingFace 数据集和一个 Github 仓库,用于重现收集和处理工作,二者均以 \ exttt{pisterlabs/promptset} 命名。

英文摘要:

The rise of capabilities expressed by large language models has been quickly followed by the integration of the same complex systems into application level logic. Algorithms, programs, systems, and companies are built around structured prompting to black box models where the majority of the design and implementation lies in capturing and quantifying the `agent mode'. The standard way to shape a closed language model is to prime it for a specific task with a tailored prompt, often initially handwritten by a human. The textual prompts co-evolve with the codebase, taking shape over the course of project life as artifacts which must be reviewed and maintained, just as the traditional code files might be. Unlike traditional code, we find that prompts do not receive effective static testing and linting to prevent runtime issues. In this work, we present a novel dataset called PromptSet, with more than 61,000 unique developer prompts used in open source Python programs. We perform analysis on this dataset and introduce the notion of a static linter for prompts. Released with this publication is a HuggingFace dataset and a Github repository to recreate collection and processing efforts, both under the name \texttt{pisterlabs/promptset}.

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

↑