A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT

By Jules White, Quchen Fu, Sam Hays, Michael Sandborn, Carlos Olea, Henry Gilbert, Ashraf Elnashar, Jesse Spencer-Smith, Douglas C. Schmidt. Proceedings of the 30th Conference on Pattern Languages of Programs, 2023

1,823 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Networks and Communications, Health Informatics

View Paper: https://www.semanticscholar.org/paper/08b85bce712168998004ee80ce4e475390413c74

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yejin Choi
  2. Cunxiang Wang
  3. Prateek Mittal
  4. Peter Henderson
  5. Alane Suhr
  6. Jindong Wang
  7. Xiangyu Qi
  8. Mohit Bansal

In Computer Networks and Communications

  1. Prateek Mittal
  2. Jindong Wang
  3. Yejin Choi
  4. Justin D. Weisz
  5. Melanie Sclar
  6. Matthew Renze
  7. Tianwei Zhang
  8. Erhan Guven

In Health Informatics

  1. Prateek Mittal
  2. Werner Geyer
  3. Siyuan Ma
  4. Michael J. Muller
  5. Yejin Choi
  6. Abdulhadi Shoufan
  7. Justin D. Weisz
  8. Gabriela Hoefer

Citations in the corpus