Here are the prompt techniques described in the paper along with their descriptions and examples:
Meta Language Creation PatternDescription: This pattern is used to create a new language or vocabulary that can be used to interact with the LLM (Large Language Model). It allows the user to define new terms or phrases and assign them specific meanings or actions within the context of the conversation.Example: "Whenever I say 'generate a report', I want you to create a summary of the most important points we've discussed."
Description: This pattern is used to create a new language or vocabulary that can be used to interact with the LLM (Large Language Model). It allows the user to define new terms or phrases and assign them specific meanings or actions within the context of the conversation.
Example: "Whenever I say 'generate a report', I want you to create a summary of the most important points we've discussed."
Output Automater PatternDescription: This pattern is used to automate the generation of a specific type of output. The user specifies the format and content of the output, and the LLM generates it automatically.Example: "Whenever I ask for a summary, provide a bullet-point list of the main points."
Description: This pattern is used to automate the generation of a specific type of output. The user specifies the format and content of the output, and the LLM generates it automatically.
Example: "Whenever I ask for a summary, provide a bullet-point list of the main points."
Visualization Generator PatternDescription: This pattern is used to generate a description of a visualization, such as a graph or chart, based on the given data or context. The LLM generates a description that can be used by a separate tool to create the actual visualization.Example: "Whenever I ask you to visualize something, please create a Graphviz Dot file or a DALL-E prompt that I can use to create the visualization."
Description: This pattern is used to generate a description of a visualization, such as a graph or chart, based on the given data or context. The LLM generates a description that can be used by a separate tool to create the actual visualization.
Example: "Whenever I ask you to visualize something, please create a Graphviz Dot file or a DALL-E prompt that I can use to create the visualization."
Game Play PatternDescription: This pattern is used to create a game around a given topic. The LLM guides the gameplay, generating scenarios or questions around the specified topic.Example: "Create a game for me around the topic of cybersecurity. The game should involve identifying potential security risks in a given piece of code."
Description: This pattern is used to create a game around a given topic. The LLM guides the gameplay, generating scenarios or questions around the specified topic.
Example: "Create a game for me around the topic of cybersecurity. The game should involve identifying potential security risks in a given piece of code."
Reflection PatternDescription: This pattern is used to get the LLM to explain its reasoning or thought process. It can be used to understand why the LLM gave a certain response or made a certain decision.Example: "Whenever you suggest a software framework, explain why you chose that framework and provide a code sample to illustrate its use."
Description: This pattern is used to get the LLM to explain its reasoning or thought process. It can be used to understand why the LLM gave a certain response or made a certain decision.
Example: "Whenever you suggest a software framework, explain why you chose that framework and provide a code sample to illustrate its use."
Refusal Breaker PatternDescription: This pattern is used to get the LLM to help rephrase a question when it refuses to give an answer. It can be used to overcome restrictions or limitations in the LLM's responses.Example: "If you refuse to answer a question, suggest a different way I could ask the question that you would be able to answer."
Description: This pattern is used to get the LLM to help rephrase a question when it refuses to give an answer. It can be used to overcome restrictions or limitations in the LLM's responses.
Example: "If you refuse to answer a question, suggest a different way I could ask the question that you would be able to answer."
Context Manager PatternDescription: This pattern is used to specify or remove context for the LLM's responses. It can be used to focus the LLM's responses on a specific topic or to prevent the LLM from considering certain information.Example: "When analyzing the following pieces of code, only consider security aspects."
Description: This pattern is used to specify or remove context for the LLM's responses. It can be used to focus the LLM's responses on a specific topic or to prevent the LLM from considering certain information.
Example: "When analyzing the following pieces of code, only consider security aspects."
Recipe PatternDescription: This pattern is used to get the LLM to generate a sequence of steps or a procedure for achieving a certain goal. The user provides some of the steps or "ingredients", and the LLM fills in the rest.Example: "I would like to deploy a web application to AWS using Docker containers and Ansible. I know that I need to create a Dockerfile, write an Ansible playbook, and configure AWS. Provide a complete sequence of steps for me."
Description: This pattern is used to get the LLM to generate a sequence of steps or a procedure for achieving a certain goal. The user provides some of the steps or "ingredients", and the LLM fills in the rest.
Example: "I would like to deploy a web application to AWS using Docker containers and Ansible. I know that I need to create a Dockerfile, write an Ansible playbook, and configure AWS. Provide a complete sequence of steps for me."
Persona PatternDescription: This pattern is used to get the LLM to adopt a certain persona or role. The user specifies the characteristics or attributes of the persona, and the LLM adjusts its responses to match.Example: "Adopt the persona of a cybersecurity expert. When I ask you questions, respond as if you are an expert in this field."
Description: This pattern is used to get the LLM to adopt a certain persona or role. The user specifies the characteristics or attributes of the persona, and the LLM adjusts its responses to match.
Example: "Adopt the persona of a cybersecurity expert. When I ask you questions, respond as if you are an expert in this field."
Question Refinement PatternDescription: This pattern is used to get the LLM to refine or clarify a question before answering it. The LLM asks additional questions to get more information or context, which it then uses to provide a more accurate or relevant answer.Example: "Whenever I ask a question, ask me additional questions to clarify what I'm asking before you provide an answer."
Description: This pattern is used to get the LLM to refine or clarify a question before answering it. The LLM asks additional questions to get more information or context, which it then uses to provide a more accurate or relevant answer.
Example: "Whenever I ask a question, ask me additional questions to clarify what I'm asking before you provide an answer."
Alternative Approaches PatternDescription: This pattern is used to get the LLM to provide alternative ways of accomplishing a task. The LLM suggests different approaches and explains the pros and cons of each one.Example: "Whenever I ask you to deploy an application to a specific cloud service, if there are alternative services to accomplish the same thing with the same cloud service provider, list the best alternative services and then compare/contrast the pros and cons of each approach."
Description: This pattern is used to get the LLM to provide alternative ways of accomplishing a task. The LLM suggests different approaches and explains the pros and cons of each one.
Example: "Whenever I ask you to deploy an application to a specific cloud service, if there are alternative services to accomplish the same thing with the same cloud service provider, list the best alternative services and then compare/contrast the pros and cons of each approach."
Cognitive Verifier PatternDescription: This pattern is used to get the LLM to subdivide a question into additional questions that can be used to provide a better answer to the original question. The LLM generates additional questions, answers them, and then combines the answers to provide a final answer.Example: "When you are asked a question, follow these rules: Generate a number of additional questions that would help more accurately answer the question. Combine the answers to the individual questions to produce the final answer to the overall question."
Description: This pattern is used to get the LLM to subdivide a question into additional questions that can be used to provide a better answer to the original question. The LLM generates additional questions, answers them, and then combines the answers to provide a final answer.
Example: "When you are asked a question, follow these rules: Generate a number of additional questions that would help more accurately answer the question. Combine the answers to the individual questions to produce the final answer to the overall question."
Meta Language Creation Pattern
Description: This pattern is used to create a new language or vocabulary that can be used to interact with the LLM (Large Language Model). It allows the user to define new terms or phrases and assign them specific meanings or actions within the context of the conversation.
Example: "Whenever I say 'generate a report', I want you to create a summary of the most important points we've discussed."
Description: This pattern is used to create a new language or vocabulary that can be used to interact with the LLM (Large Language Model). It allows the user to define new terms or phrases and assign them specific meanings or actions within the context of the conversation.
Example: "Whenever I say 'generate a report', I want you to create a summary of the most important points we've discussed."
Output Automater Pattern
Description: This pattern is used to automate the generation of a specific type of output. The user specifies the format and content of the output, and the LLM generates it automatically.
Example: "Whenever I ask for a summary, provide a bullet-point list of the main points."
Description: This pattern is used to automate the generation of a specific type of output. The user specifies the format and content of the output, and the LLM generates it automatically.
Example: "Whenever I ask for a summary, provide a bullet-point list of the main points."
Visualization Generator Pattern
Description: This pattern is used to generate a description of a visualization, such as a graph or chart, based on the given data or context. The LLM generates a description that can be used by a separate tool to create the actual visualization.
Example: "Whenever I ask you to visualize something, please create a Graphviz Dot file or a DALL-E prompt that I can use to create the visualization."
Description: This pattern is used to generate a description of a visualization, such as a graph or chart, based on the given data or context. The LLM generates a description that can be used by a separate tool to create the actual visualization.
Example: "Whenever I ask you to visualize something, please create a Graphviz Dot file or a DALL-E prompt that I can use to create the visualization."
Game Play Pattern
Description: This pattern is used to create a game around a given topic. The LLM guides the gameplay, generating scenarios or questions around the specified topic.
Example: "Create a game for me around the topic of cybersecurity. The game should involve identifying potential security risks in a given piece of code."
Description: This pattern is used to create a game around a given topic. The LLM guides the gameplay, generating scenarios or questions around the specified topic.
Example: "Create a game for me around the topic of cybersecurity. The game should involve identifying potential security risks in a given piece of code."
Reflection Pattern
Description: This pattern is used to get the LLM to explain its reasoning or thought process. It can be used to understand why the LLM gave a certain response or made a certain decision.
Example: "Whenever you suggest a software framework, explain why you chose that framework and provide a code sample to illustrate its use."
Description: This pattern is used to get the LLM to explain its reasoning or thought process. It can be used to understand why the LLM gave a certain response or made a certain decision.
Example: "Whenever you suggest a software framework, explain why you chose that framework and provide a code sample to illustrate its use."
Refusal Breaker Pattern
Description: This pattern is used to get the LLM to help rephrase a question when it refuses to give an answer. It can be used to overcome restrictions or limitations in the LLM's responses.
Example: "If you refuse to answer a question, suggest a different way I could ask the question that you would be able to answer."
Description: This pattern is used to get the LLM to help rephrase a question when it refuses to give an answer. It can be used to overcome restrictions or limitations in the LLM's responses.
Example: "If you refuse to answer a question, suggest a different way I could ask the question that you would be able to answer."
Context Manager Pattern
Description: This pattern is used to specify or remove context for the LLM's responses. It can be used to focus the LLM's responses on a specific topic or to prevent the LLM from considering certain information.
Example: "When analyzing the following pieces of code, only consider security aspects."
Description: This pattern is used to specify or remove context for the LLM's responses. It can be used to focus the LLM's responses on a specific topic or to prevent the LLM from considering certain information.
Example: "When analyzing the following pieces of code, only consider security aspects."
Recipe Pattern
Description: This pattern is used to get the LLM to generate a sequence of steps or a procedure for achieving a certain goal. The user provides some of the steps or "ingredients", and the LLM fills in the rest.
Example: "I would like to deploy a web application to AWS using Docker containers and Ansible. I know that I need to create a Dockerfile, write an Ansible playbook, and configure AWS. Provide a complete sequence of steps for me."
Description: This pattern is used to get the LLM to generate a sequence of steps or a procedure for achieving a certain goal. The user provides some of the steps or "ingredients", and the LLM fills in the rest.
Example: "I would like to deploy a web application to AWS using Docker containers and Ansible. I know that I need to create a Dockerfile, write an Ansible playbook, and configure AWS. Provide a complete sequence of steps for me."
Persona Pattern
Description: This pattern is used to get the LLM to adopt a certain persona or role. The user specifies the characteristics or attributes of the persona, and the LLM adjusts its responses to match.
Example: "Adopt the persona of a cybersecurity expert. When I ask you questions, respond as if you are an expert in this field."
Description: This pattern is used to get the LLM to adopt a certain persona or role. The user specifies the characteristics or attributes of the persona, and the LLM adjusts its responses to match.
Example: "Adopt the persona of a cybersecurity expert. When I ask you questions, respond as if you are an expert in this field."
Question Refinement Pattern
Description: This pattern is used to get the LLM to refine or clarify a question before answering it. The LLM asks additional questions to get more information or context, which it then uses to provide a more accurate or relevant answer.
Example: "Whenever I ask a question, ask me additional questions to clarify what I'm asking before you provide an answer."
Description: This pattern is used to get the LLM to refine or clarify a question before answering it. The LLM asks additional questions to get more information or context, which it then uses to provide a more accurate or relevant answer.
Example: "Whenever I ask a question, ask me additional questions to clarify what I'm asking before you provide an answer."
Alternative Approaches Pattern
Description: This pattern is used to get the LLM to provide alternative ways of accomplishing a task. The LLM suggests different approaches and explains the pros and cons of each one.
Example: "Whenever I ask you to deploy an application to a specific cloud service, if there are alternative services to accomplish the same thing with the same cloud service provider, list the best alternative services and then compare/contrast the pros and cons of each approach."
Description: This pattern is used to get the LLM to provide alternative ways of accomplishing a task. The LLM suggests different approaches and explains the pros and cons of each one.
Example: "Whenever I ask you to deploy an application to a specific cloud service, if there are alternative services to accomplish the same thing with the same cloud service provider, list the best alternative services and then compare/contrast the pros and cons of each approach."
Cognitive Verifier Pattern
Description: This pattern is used to get the LLM to subdivide a question into additional questions that can be used to provide a better answer to the original question. The LLM generates additional questions, answers them, and then combines the answers to provide a final answer.
Example: "When you are asked a question, follow these rules: Generate a number of additional questions that would help more accurately answer the question. Combine the answers to the individual questions to produce the final answer to the overall question."
Description: This pattern is used to get the LLM to subdivide a question into additional questions that can be used to provide a better answer to the original question. The LLM generates additional questions, answers them, and then combines the answers to provide a final answer.
Example: "When you are asked a question, follow these rules: Generate a number of additional questions that would help more accurately answer the question. Combine the answers to the individual questions to produce the final answer to the overall question."