AI 中文总结
提出一种单轮文本交互的提示模式分类法,通过可复现方法识别30种规范模式,按两个维度组织。
AI 中文摘要
大型语言模型(LLM)现已广泛应用于软件开发和日常使用。与LLM交互需要精心设计提示,这些提示从简单的临时句子到详尽、细致、结构化的指令不等。关于提示工程的知识已在文献中的多项调查和目录中记录。然而,术语“提示模式”在不同来源中定义不同,现有工作以不同方式对提示模式进行分类。在本报告中,我们提出了一种针对单轮、基于文本交互的提示模式分类法。遵循可复现的方法,我们识别了30种独特且规范的提示模式,并按两个维度进行组织。
英文摘要
Large language models (LLMs) are now widely employed in software development and everyday use. Interacting with LLMs requires crafting prompts, which range from simple ad hoc sentences to extensive, detailed, and structured instructions. Knowledge about prompt engineering has been documented in several surveys and catalogs in the literature. However, the term ``prompt pattern'' is defined differently across sources, and existing works have classified prompt patterns in different ways. In this report, we present a taxonomy of prompt patterns for single-turn, text-based interactions. Following a reproducible method, we identified 30 unique and canonical prompt patterns, organized along two dimensions.
Comments25 pages, 2 figures