Jules White [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Quchen Fu [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Sam Hays Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Michael Sandborn [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Carlos Olea [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Henry Gilbert [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Ashraf Elnashar [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Jesse Spencer-Smith [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA, Douglas C Schmidt [email protected] Department of Computer Science Vanderbilt University Tennessee NashvilleTNUSA (2023)
This paper presents a catalog of prompt engineering techniques for conversational large language models (LLMs) like ChatGPT, aimed at enhancing their usability in software development contexts. The authors compare prompt patterns to software patterns, establishing a framework for documenting reusable solutions that can improve LLM interactions. The paper categorizes various prompt patterns, including those for input semantics, output customization, error identification, prompt improvement, interaction, and context control. The document outlines the intent, structure, examples, and consequences of each pattern, emphasizing the importance of effective prompt design, adaptability, and user engagement. It also reflects on limitations and proposes avenues for further research and refinement in prompt patterns, particularly as LLM capabilities evolve.
This paper employs the following methods:
The following datasets were used in this research:
The authors identified the following limitations: