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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
今后应助gaojing采纳,获得10
刚刚
流浪学者小番薯完成签到,获得积分10
刚刚
Shepherd3发布了新的文献求助20
1秒前
夜雨完成签到,获得积分10
1秒前
外向又夏应助皮皮采纳,获得10
2秒前
尤川完成签到 ,获得积分10
2秒前
马婷婷完成签到,获得积分10
2秒前
QQ完成签到,获得积分10
2秒前
2秒前
3秒前
yq1991完成签到,获得积分10
3秒前
3秒前
hhhh777完成签到 ,获得积分10
3秒前
陈鑫完成签到,获得积分10
3秒前
Baimei应助dave采纳,获得10
4秒前
MM完成签到 ,获得积分10
4秒前
完美世界应助怪脾气采纳,获得10
5秒前
Maud完成签到 ,获得积分10
5秒前
魔幻冬寒完成签到 ,获得积分10
5秒前
5秒前
6秒前
温暖宛筠完成签到,获得积分10
6秒前
爱上秋风完成签到,获得积分10
6秒前
flac3d完成签到,获得积分10
6秒前
飞快的邴完成签到,获得积分10
7秒前
vv的平行宇宙完成签到,获得积分10
7秒前
乐lll完成签到,获得积分10
8秒前
小张z完成签到,获得积分10
8秒前
jun完成签到 ,获得积分10
8秒前
嘟嘟宝完成签到,获得积分10
8秒前
就那样完成签到,获得积分10
8秒前
8秒前
xiaoxiaoluo发布了新的文献求助10
8秒前
舒心乐荷完成签到,获得积分10
9秒前
Horizon发布了新的文献求助10
9秒前
huau应助现代的代丝采纳,获得10
9秒前
zhou完成签到,获得积分20
9秒前
大个应助小小黑采纳,获得10
10秒前
威武熊猫人完成签到,获得积分10
10秒前
爱听歌的道天完成签到,获得积分10
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Autoparametric Resonance in Mechanical Systems 1000
Effects of Two Weeks of Red Light Therapy on Choroidal Thickness and Axial Length in Young Adults 700
Cosmos as Art Object: Studies in Plato's Timaeus and Other Dialogues 600
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Auslegungsgeschichte 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7662497
求助须知:如何正确求助?哪些是违规求助? 9232436
关于积分的说明 19856430
捐赠科研通 7230907
什么是DOI,文献DOI怎么找? 3282203
关于科研通互助平台的介绍 2441711
邀请新用户注册赠送积分活动 2283114