A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT

匡威 计算机科学 背景(考古学) 集合(抽象数据类型) 软件工程 结构化 软件设计模式 模式语言(形式语言) 软件 程序设计语言 人工智能 数据科学 经济 几何学 古生物学 生物 数学 财务
作者
Jules White,Quchen Fu,Sam Hays,Michael Sandborn,Carlos Olea,Henry Gilbert,Ashraf Elnashar,Jesse Spencer-Smith,Douglas C. Schmidt
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:786
标识
DOI:10.48550/arxiv.2302.11382
摘要

Prompt engineering is an increasingly important skill set needed to converse effectively with large language models (LLMs), such as ChatGPT. Prompts are instructions given to an LLM to enforce rules, automate processes, and ensure specific qualities (and quantities) of generated output. Prompts are also a form of programming that can customize the outputs and interactions with an LLM. This paper describes a catalog of prompt engineering techniques presented in pattern form that have been applied to solve common problems when conversing with LLMs. Prompt patterns are a knowledge transfer method analogous to software patterns since they provide reusable solutions to common problems faced in a particular context, i.e., output generation and interaction when working with LLMs. This paper provides the following contributions to research on prompt engineering that apply LLMs to automate software development tasks. First, it provides a framework for documenting patterns for structuring prompts to solve a range of problems so that they can be adapted to different domains. Second, it presents a catalog of patterns that have been applied successfully to improve the outputs of LLM conversations. Third, it explains how prompts can be built from multiple patterns and illustrates prompt patterns that benefit from combination with other prompt patterns.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
赘婿的应助被苏苏采纳,获得10
刚刚
1秒前
无情的烨霖完成签到,获得积分10
1秒前
小趴菜发布了新的文献求助10
1秒前
Keyl发布了新的文献求助10
1秒前
1秒前
奇点发布了新的文献求助10
1秒前
樊孟发布了新的文献求助10
2秒前
2秒前
molihuakai的应助被妮妮采纳,获得30
2秒前
冷漠的生煎包完成签到,获得积分10
2秒前
3秒前
隐形曼青的应助被cliche采纳,获得10
3秒前
所所的应助被啊啊啊采纳,获得20
4秒前
半心发布了新的文献求助10
4秒前
4秒前
在水一方的应助被静静采纳,获得10
4秒前
MMM发布了新的文献求助10
5秒前
NFHCEO完成签到,获得积分10
5秒前
5秒前
5秒前
烟花的应助被Cancellerzz采纳,获得10
6秒前
labor发布了新的文献求助10
6秒前
123456发布了新的文献求助10
7秒前
7秒前
7秒前
Hello的应助被饱满的大碗采纳,获得10
8秒前
8秒前
8秒前
大能猫发布了新的文献求助10
8秒前
扶光hjgkk发布了新的文献求助10
8秒前
8秒前
9秒前
SEASON完成签到,获得积分10
9秒前
思源的应助被调皮的宫苴采纳,获得10
9秒前
9秒前
刘亦然完成签到,获得积分10
9秒前
852的应助被最牛的kangkang采纳,获得10
10秒前
patrickcj完成签到 ,获得积分10
10秒前
XX发布了新的文献求助10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Encyclopedia of Reagents for Organic Synthesis, 14 Volume Set, 2nd Edition(本书共14册,本求助8volume-14volume共7册,独立harcover版本,非网络版本e-EROS 版,不能网络版转化PDF或提取PDF) 2000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 1000
Электротехническая система магнитожидкостной герметизации валов регулируемых электродвигателей 800
日本語と中国語及びチベット・ビルマ語の語源関連性に関する分析 800
Practical Manual of Forensic Psychophysiology: Methodology, Execution, and Fields of Application 800
Holistic Discourse Analysis, Second Edition by Robert E. Longacre 666
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 物理 生物化学 化学工程 内科学 复合材料 催化作用 心理学 人工智能 细胞生物学 光电子学 无机化学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 7950701
求助须知:如何正确求助?哪些是违规求助? 9428215
关于积分的说明 20989708
捐赠科研通 7533607
什么是DOI,文献DOI怎么找? 3368970
关于科研通互助平台的介绍 2505047
邀请新用户注册赠送积分活动 2400949