A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT

AI-generated keywords: Prompt Engineering ChatGPT LLMs Knowledge Transfer Software Patterns

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • The paper presents a catalog of prompt engineering techniques for effective communication with large language models (LLMs) like ChatGPT.
  • Prompts are instructions given to LLMs to enforce rules, automate processes, and ensure specific qualities and quantities of generated output.
  • Prompt patterns are reusable solutions to common problems faced in output generation and interaction when working with LLMs.
  • The authors provide a framework for documenting patterns for structuring prompts that can be adapted to different domains.
  • A catalog of patterns that have been successfully applied to improve the outputs of LLM conversations is presented.
  • Prompts can be built from multiple patterns, and some benefit from combination with other prompt patterns.
  • Developing prompt engineering skills is essential for effective communication with LLMs like ChatGPT and automating software development tasks.
  • This paper provides valuable insights into using prompts as a form of programming that can customize the outputs and interactions with an LLM.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Jules White, Quchen Fu, Sam Hays, Michael Sandborn, Carlos Olea, Henry Gilbert, Ashraf Elnashar, Jesse Spencer-Smith, Douglas C. Schmidt

Abstract: 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.

Submitted to arXiv on 21 Feb. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2302.11382v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

The paper titled "A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT" presents a comprehensive catalog of prompt engineering techniques that can be used 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. The paper describes prompt patterns as 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. The authors provide a framework for documenting patterns for structuring prompts that can solve a range of problems so that they can be adapted to different domains. They also present a catalog of patterns that have been applied successfully to improve the outputs of LLM conversations. The paper explains how prompts can be built from multiple patterns and illustrates prompt patterns that benefit from combination with other prompt patterns. The contributions of this research on prompt engineering apply LLMs to automate software development tasks and emphasize the importance of developing prompt engineering skills for effective communication with LLMs like ChatGPT. This paper provides valuable insights into the use of prompts as a form of programming that can customize the outputs and interactions with an LLM. It is an essential resource for researchers, developers, and practitioners who work with large language models and want to enhance their conversational abilities by using prompts effectively.
Created on 25 Mar. 2023

Assess the quality of the AI-generated content by voting

Score: 1

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.