Just sharing a summary of a paper that tried to develop a catalog of prompt patterns. The sourcez;
"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. Arxiv. https://doi.org/10.48550/arXiv.2302.11382
- Meta Language Creation Pattern: Focuses on creating a custom language for LLMs to improve their understanding of prompts.
- Output Automater Pattern: Aims to automate the generation of actionable steps or scripts in response to prompts.
- Flipped Interaction Pattern: Involves reversing the typical interaction flow, with the LLM posing questions to the user.
- Persona Pattern: Assigns a specific persona or role to an LLM to guide its output generation.
- Question Refinement Pattern: Enhances the LLM's responses by refining the user's questions for clarity and focus.
- Alternative Approaches Pattern: Encourages the LLM to offer different methods or perspectives for tackling a task.
- Cognitive Verifier Pattern: Involves the LLM generating sub-questions to better understand and respond to the main query.
- Fact Check List Pattern: Guides the LLM to produce a list of facts or statements in its output for verification.
- Template Pattern: Involves using a predefined template to shape the LLM's responses.
- Infinite Generation Pattern: Enables the LLM to continuously generate output without repeated user prompts.
- Visualization Generator Pattern: Focuses on generating text outputs that can be converted into visualizations by other tools.
- Game Play Pattern: Directs the LLM to structure its outputs in the form of a game.
- Reflection Pattern: Encourages the LLM to introspect and analyze its own outputs for potential errors or improvements.
- Refusal Breaker Pattern: Designed to rephrase user queries in situations where the LLM initially refuses to respond.
- Context Manager Pattern: Controls the contextual information within which the LLM operates to tailor its responses.
- Recipe Pattern: Helps users obtain a sequence of steps or actions to achieve a desired result.
Each pattern is detailed with its intent, context, structure, key ideas, example implementations, and potential consequences.
I want to acknowledge a good attempt, but am not sure this list is very intuitive or very helpful. In practical terms, we either ask questions or give tasks, defining some output parameters - like genre, audience, style, etc. However someone might find this helpful to keep thinking. We do need some way of classifying prompts.