A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT

Каталог шаблонов промптов для совершенствования инженерии промптов с помощью ChatGPT
Jules White, Quchen Fu, Sam Hays, Michael Sandborn, Carlos Olea, Henry Gilbert, Ashraf Elnashar, Jesse Spencer-Smith, Douglas C. Schmidt
2023-02-21

ChatGPTlarge language modelsprompt engineeringprompt patternssoftware development automation
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.
1
It provides a framework for documenting prompt-structuring patterns so they can be adapted across domains and software-development tasks.
2
Prompt patterns are presented as a knowledge-transfer method analogous to software design patterns for customizing LLM behavior and outputs.
3
The catalog contains patterns reported to improve the quality and specificity of outputs generated during LLM conversations.
4
The paper introduces a reusable prompt-pattern catalog for addressing common problems in interactions with large language models such as ChatGPT.
5
The paper shows how prompts can be composed from multiple patterns and identifies patterns that benefit from combination with others.

Prompt pattern catalog for prompt engineering with ChatGPT (pattern-based prompt designs for LLM interactions)

reusable prompt-structuring solutions for improving LLM-generated outputs and interactions, including pattern documentation, adaptation, and combination

Publication Details
Publication Date
2023-02-21
Journal
Publisher
ISSN
Cited by
808
Access Type
Author Information
Authors
Jules White
Quchen Fu
Sam Hays
Michael Sandborn
Carlos Olea
Henry Gilbert
Ashraf Elnashar
Jesse Spencer-Smith
Douglas C. Schmidt
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%