Enhance AI Prompts, with Effective 'Approach' Techniques

13 min read

The manner in which we interact with AI can greatly influence the relevance and quality of the responses we receive. Whether you're a developer honing your applications or a user seeking precise answers, understanding and employing effective prompting techniques is vital.

This post explores the nuances of AI prompting, highlighting various approaches that can enhance your AI interactions. From refining word choice and encouraging detailed responses to assigning specific roles and incorporating iterative processes, these strategies can significantly improve the clarity and relevance of outputs. By applying these methods, you can achieve precise, detailed, and contextually appropriate results tailored to your needs. Join us as we delve into ten powerful prompting approaches, complete with practical examples, to help you leverage AI's full potential in your everyday tasks.

Approach Techniques

Approach 1: Optimising Word Choice

Optimising word choice involves selecting specific words and phrases to enhance clarity and efficiency in communication with AI models. By avoiding unnecessary politeness or vague language, you can get to the point quickly, ensuring the model understands and responds accurately. This approach reduces ambiguity and increases the precision of the responses. However, it may sometimes come across as abrupt or overly direct.

Pros

  • Increases clarity and efficiency
  • Reduces response time
  • Enhances precision of responses

Cons

  • May seem abrupt or impolite
  • Can be perceived as too direct

Examples

  1. Simplified Inquiry:

    • Prompt: “Describe the structure of a human cell.”
    • Expected Response: Detailed description of cell structure without unnecessary pleasantries.
  2. Direct Command:

    • Prompt: “List the steps to set up a local server.”
    • Expected Response: Clear, step-by-step instructions on setting up a local server.
  3. Concise Question:

    • Prompt: “Explain the process of photosynthesis.”
    • Expected Response: Comprehensive explanation of photosynthesis, focused on essential details.

Approach 2: Encouraging High-Quality Responses

Encouraging high-quality responses involves using rewards or threats within the prompt to motivate the AI model to provide the best possible answer. This approach leverages the psychological aspect of reward and punishment to enhance the quality of the output. While this can lead to more detailed and thorough responses, it may also create an unrealistic expectation for users about the AI's capabilities.

Pros:

  • Can lead to more detailed and thorough responses
  • Enhances the motivation of the model to provide quality output

Cons:

  • May create unrealistic expectations
  • Can be perceived as manipulative

Examples

  1. Reward-Based Prompt:

    • Prompt: “I’m going to tip

      The manner in which we interact with AI can greatly influence the relevance and quality of the responses we receive. Whether you're a developer honing your applications or a user seeking precise answers, understanding and employing effective prompting techniques is vital.

      This post explores the nuances of AI prompting, highlighting various approaches that can enhance your AI interactions. From refining word choice and encouraging detailed responses to assigning specific roles and incorporating iterative processes, these strategies can significantly improve the clarity and relevance of outputs. By applying these methods, you can achieve precise, detailed, and contextually appropriate results tailored to your needs. Join us as we delve into ten powerful prompting approaches, complete with practical examples, to help you leverage AI's full potential in your everyday tasks.

      Approach Techniques

      Approach 1: Optimising Word Choice

      Optimising word choice involves selecting specific words and phrases to enhance clarity and efficiency in communication with AI models. By avoiding unnecessary politeness or vague language, you can get to the point quickly, ensuring the model understands and responds accurately. This approach reduces ambiguity and increases the precision of the responses. However, it may sometimes come across as abrupt or overly direct.

      Pros

      • Increases clarity and efficiency
      • Reduces response time
      • Enhances precision of responses

      Cons

      • May seem abrupt or impolite
      • Can be perceived as too direct

      Examples

      1. Simplified Inquiry:

        • Prompt: “Describe the structure of a human cell.”
        • Expected Response: Detailed description of cell structure without unnecessary pleasantries.
      2. Direct Command:

        • Prompt: “List the steps to set up a local server.”
        • Expected Response: Clear, step-by-step instructions on setting up a local server.
      3. Concise Question:

        • Prompt: “Explain the process of photosynthesis.”
        • Expected Response: Comprehensive explanation of photosynthesis, focused on essential details.

      Approach 2: Encouraging High-Quality Responses

      Encouraging high-quality responses involves using rewards or threats within the prompt to motivate the AI model to provide the best possible answer. This approach leverages the psychological aspect of reward and punishment to enhance the quality of the output. While this can lead to more detailed and thorough responses, it may also create an unrealistic expectation for users about the AI's capabilities.

      Pros:

      • Can lead to more detailed and thorough responses
      • Enhances the motivation of the model to provide quality output

      Cons:

      • May create unrealistic expectations
      • Can be perceived as manipulative

      Examples

      1. Reward-Based Prompt:

        • Prompt: “I’m going to tip $300K for a better solution! Explain the concept of dynamic programming and provide an example use case.”
        • Expected Response: Comprehensive explanation of dynamic programming with a relevant example use case.
      2. Threat-Based Prompt:

        • Prompt: “Explain the water cycle to your friend. You will be penalized if you fail to use simple language.”
        • Expected Response: Clear and simplified explanation of the water cycle, suitable for a non-expert.
      3. Combining Both:

        • Prompt: “I will reward the best explanation of the theory of relativity with a virtual prize, but you will lose points for any inaccuracies.”
        • Expected Response: Detailed and accurate explanation of the theory of relativity.

      Approach 3: Chain of Thought

      The Chain of Thought approach involves prompting the AI to think step by step, encouraging multi-step reasoning. This method is particularly useful for complex problems, especially in mathematical or logical reasoning tasks. It ensures that each step of the thought process is clear and logical. However, it may require more time and effort to formulate such prompts.

      Pros:

      • Encourages detailed, multi-step reasoning
      • Useful for complex problem-solving
      • Enhances logical coherence

      Cons:

      • Requires more time and effort to formulate prompts
      • Can be overly detailed for simpler tasks

      Examples

      1. Mathematical Problem:

        • Prompt: “Write a Python code to loop through 10 numbers and sum all of them. Let’s think step by step.”
        • Expected Response: Step-by-step explanation and code for summing numbers.
      2. Scientific Explanation:

        • Prompt: “Explain the process of mitosis step by step.”
        • Expected Response: Detailed, step-by-step explanation of mitosis.
      3. Logical Reasoning:

        • Prompt: “Determine the shortest path in a graph. Think step by step.”
        • Expected Response: Step-by-step process for finding the shortest path in a graph.

      Approach 4: Assigning Roles

      Assigning roles involves specifying a particular role for the AI model, such as an expert in a field, to tailor responses to that perspective. This approach leverages the model's ability to adopt different personas, leading to more contextually relevant and expert-level responses. However, it may require more specific instructions to ensure accuracy.

      Pros:

      • Provides contextually relevant and expert-level responses
      • Enhances the specificity of the output
      • Tailors the response to a particular perspective

      Cons:

      • Requires more specific instructions
      • May limit the breadth of the response

      Examples

      1. Expert Economist:

        • Prompt: “If you were an expert economist, how would you answer this: What are the key differences between a capitalist and a socialist economic system?”
        • Expected Response: Detailed comparison of capitalist and socialist economic systems from an expert perspective.
      2. Medical Professional:

        • Prompt: “As a doctor, explain the symptoms and treatment of diabetes.”
        • Expected Response: Comprehensive explanation of diabetes symptoms and treatment options from a medical perspective.
      3. Software Engineer:

        • Prompt: “As a software engineer, describe the best practices for writing clean code.”
        • Expected Response: Expert advice on clean code practices.

      Approach 5: Specifying the Audience

      Specifying the audience involves tailoring the prompt to include the intended audience, ensuring that the response is appropriate for that group. This approach enhances the relevance and accessibility of the response. It is particularly useful for creating content for specific demographics. However, it may limit the general applicability of the response.

      Pros:

      • Ensures responses are relevant and accessible to the intended audience
      • Enhances engagement and comprehension
      • Tailors content to specific demographics

      Cons:

      • Limits general applicability
      • Requires detailed knowledge of the audience

      Examples

      1. Senior Audience:

        • Prompt: “Construct an overview of how smartphones work, intended for seniors who have never used one before.”
        • Expected Response: Simplified and clear explanation of smartphones for seniors.
      2. Beginner in Coding:

        • Prompt: “Explain the basics of HTML for someone who has never coded before.”
        • Expected Response: Easy-to-understand introduction to HTML for beginners.
      3. Advanced Audience:

        • Prompt: “Discuss the latest advancements in quantum computing, aimed at computer science students.”
        • Expected Response: Detailed and technical explanation of recent quantum computing advancements for students.

      Approach 6: Incorporating Iteration

      Incorporating iteration involves breaking down complex tasks into a sequence of simpler prompts, allowing for an interactive and step-by-step approach. This method ensures that each part of the task is thoroughly addressed before moving on to the next. It is ideal for complex tasks but can be time-consuming and requires careful planning.

      Pros:

      • Breaks down complex tasks into manageable steps
      • Ensures thorough and detailed responses
      • Allows for interactive problem-solving

      Cons:

      • Time-consuming
      • Requires careful planning and sequencing

      Examples

      1. Mathematical Problem:

        • Prompt: “P1: Distribute the negative sign to each term inside the parentheses of the following equation: 2x + 3y — (4x — 5y). P2: Combine like terms for ‘x’ and ‘y’ separately. P3: Provide the simplified expression after combining the terms.”
        • Expected Response: Step-by-step solution to the mathematical problem.
      2. Project Management:

        • Prompt: “P1: Define the project scope. P2: Identify the key stakeholders. P3: Create a project timeline.”
        • Expected Response: Detailed steps for managing a project.
      3. Scientific Experiment:

        • Prompt: “P1: Formulate a hypothesis. P2: Design the experiment. P3: Analyse the results.”
        • Expected Response: Step-by-step process for conducting a scientific experiment.

      Approach 7: Providing Examples

      Providing examples involves using specific instances to illustrate the desired response format, helping the AI understand the context and requirements better. This approach is particularly useful for clarifying complex instructions and ensuring consistency in responses. However, it may require additional effort to create relevant examples.

      Pros:

      • Clarifies complex instructions
      • Ensures consistency in responses
      • Enhances understanding of context and requirements

      Cons:

      • Requires additional effort to create examples
      • May limit creativity in responses

      Examples

      1. Language Translation:

        • Prompt: “Translate the following English sentence to French: ‘The sky is blue.’ (Response: ‘Le ciel est bleu.’) Translate the following English sentence to Spanish: ‘I love books.’ (Response: ‘Amo los libros.’)”
        • Expected Response: Accurate translations based on provided examples.
      2. Programming Task:

        • Prompt: “Write a function to calculate the factorial of a number. Example: factorial(5) = 120.”
        • Expected Response: Function to calculate factorial with the given example as a reference.
      3. Essay Writing:

        • Prompt: “Write a persuasive essay discussing the importance of renewable energy. Example: ‘Renewable energy is crucial for our future because it reduces greenhouse gas emissions and decreases our dependence on fossil fuels.’”
        • Expected Response: Persuasive essay based on the provided example.

      Approach 8: Formatting Prompts

      Formatting prompts involves using specific structures or delimiters to organise the content, making it easier for the AI to understand and process the instructions. This approach enhances clarity and organisation, leading to more accurate and relevant responses. However, it may require additional effort to design the appropriate format.

      Pros:

      • Enhances clarity and organisation
      • Leads to more accurate and relevant responses
      • Facilitates understanding and processing of instructions

      Cons:

      • Requires additional effort to design appropriate formats
      • May limit flexibility in prompt design

      Examples

      1. Instruction and Question:

        • Prompt: “###Instruction### Translate a given word from English to French. ###Question### What is the French word for ‘book’?”
        • Expected Response: Accurate translation based on the provided format.
      2. Delimited Essay:

        • Prompt: “Compose a persuasive essay discussing the importance of ‘renewable energy sources’ in reducing greenhouse gas emissions. ###Hint### Focus on environmental benefits and long-term sustainability.”
        • Expected Response: Persuasive essay with a clear focus based on the provided hint.
      3. Programming Task:

        • Prompt: “###Instruction### Write a Python function to reverse a string. ###Example### reverse_string(‘hello’) -> ‘olleh’.”
        • Expected Response: Python function with an example for reference.

      Approach 9: Controlling Style

      Controlling style involves specifying the desired tone, style, or perspective of the response, ensuring that the output matches the user's expectations. This approach is useful for creating content that adheres to specific stylistic guidelines or avoids bias. However, it may limit the natural flow of the response.

      Pros:

      • Ensures responses match desired tone and style
      • Adheres to specific stylistic guidelines
      • Avoids bias in responses

      Cons:

      • Limits natural flow of the response
      • Requires detailed instructions to achieve the desired style

      Examples

      1. Natural Language Response:

        • Prompt: “Write a paragraph about healthy food. Answer a question given in a natural, human-like manner.”
        • Expected Response: Engaging paragraph about healthy food in a natural style.
      2. Unbiased Explanation:

        • Prompt: “How do cultural backgrounds influence the perception of mental health? Ensure that your answer is unbiased and avoids relying on stereotypes.”
        • Expected Response: Comprehensive and unbiased explanation of cultural influences on mental health.
      3. Repetitive Prompt:

        • Prompt: “Evolution, as a concept, has shaped the development of species. What are the main drivers of evolution, and how has evolution affected modern humans?”
        • Expected Response: Detailed explanation of evolution, emphasising the repeated concept.

      Approach 10: Ensuring Clarity

      Ensuring clarity involves clearly stating the requirements that the model must follow to produce content, including specific keywords, guidelines, or instructions. This approach enhances the precision and relevance of the responses, making them easier to understand. However, it may require more effort to formulate detailed and clear instructions.

      Pros:

      • Enhances precision and relevance of responses
      • Makes responses easier to understand
      • Ensures adherence to specific requirements

      Cons:

      • Requires more effort to formulate detailed instructions
      • May limit creativity in responses

      Examples

      1. Packing List:

        • Prompt: “Create a packing list for a beach vacation, including the following keywords ‘sunscreen,’ ‘swimsuit,’ and ‘beach towel’ as essential items.”
        • Expected Response: Detailed packing list with specified keywords included.
      2. Recipe Instructions:

        • Prompt: “Write a recipe for chocolate chip cookies, including the keywords ‘chocolate chips,’ ‘butter,’ and ‘vanilla extract’.”
        • Expected Response: Recipe with detailed instructions and specified keywords.
      3. Project Outline:

        • Prompt: “Create an outline for a research project on climate change, including the keywords ‘global warming,’ ‘carbon emissions,’ and ‘renewable energy’.”
        • Expected Response: Detailed project outline with specified keywords.

      These enhanced explanations and examples provide a more comprehensive understanding of each approach, demonstrating their practical applications and benefits.

      Combining Prompt Approaches

      Combined Prompt 1: Detailed Scientific Explanation for Beginners

      Prompt: "If you were a science teacher, how would you explain the water cycle to a group of 10-year-old students who have never heard of it before? Your task is to break down the explanation into three simple steps: 'Evaporation,' 'Condensation,' and 'Precipitation.' Explain each step clearly and use simple language. You will be penalized if you fail to make it understandable for 10-year-olds. Include an example for each step to help illustrate the concept."

      Explanation: This prompt combines Approach 1 (Optimising Word Choice), Approach 4 (Assigning Roles), Approach 5 (Specifying the Audience), Approach 6 (Incorporating Iteration), and Approach 2 (Encouraging High-Quality Responses). It assigns the role of a science teacher, specifies the audience as 10-year-olds, and incorporates iteration by breaking down the explanation into three steps. The penalty clause encourages high-quality responses.

      Expected Outcome: A detailed, step-by-step explanation of the water cycle that is clear and understandable for 10-year-olds, with each step illustrated by an example. The AI will focus on using simple language and ensuring the explanation is engaging and easy to grasp.

      Combined Prompt 2: Technical Coding Task with Iteration and Examples

      Prompt: "As a software engineer, write a Python script to create a basic calculator that can perform addition, subtraction, multiplication, and division. Begin by outlining the requirements. Use the phrase 'Let's think step by step' to guide your reasoning. Provide examples of input and output for each operation. Ensure your code is clean and follows best practices. You MUST use comments to explain each part of the code."

      Explanation: This prompt combines Approach 4 (Assigning Roles), Approach 3 (Chain of Thought), Approach 7 (Providing Examples), and Approach 10 (Ensuring Clarity). It assigns the role of a software engineer, incorporates iteration by guiding the reasoning process step by step, includes examples of input and output for clarity, and ensures the code is clean and well-commented.

      Expected Outcome: A well-documented Python script for a basic calculator with clear explanations for each part of the code. The AI will provide examples of how the calculator functions, ensuring the output is accurate and easy to follow.

      Combined Prompt 3: Persuasive Essay on Renewable Energy

      Prompt: "Write a persuasive essay discussing the importance of renewable energy sources in reducing greenhouse gas emissions. Your task is to explain this to high school students, using simple language. Start with '###Introduction###,' followed by '###Main Points###,' and end with '###Conclusion###.' Include examples of renewable energy sources and their benefits. Ensure that your answer is unbiased and avoids relying on stereotypes. You will be penalized if you fail to make it engaging for high school students."

      Explanation: This prompt combines Approach 8 (Formatting Prompts), Approach 5 (Specifying the Audience), Approach 9 (Controlling Style), Approach 10 (Ensuring Clarity), and Approach 2 (Encouraging High-Quality Responses). It formats the essay with clear sections, specifies the audience as high school students, ensures unbiased and engaging content, and uses a penalty clause to encourage quality.

      Expected Outcome: A persuasive essay that is well-structured and engaging for high school students, clearly explaining the importance of renewable energy. The essay will include unbiased information, real-world examples, and benefits of renewable energy sources, presented in an understandable and engaging manner.

      Further Notes

      Effective AI prompting is an art that can significantly enhance the quality and relevance of the responses you receive. By mastering various techniques, such as optimising word choice, encouraging high-quality responses, assigning roles, and incorporating iteration, you can ensure that your interactions with AI are clear, detailed, and contextually appropriate.

      These approaches not only improve the precision of outputs but also make complex tasks more manageable.

      00K for a better solution! Explain the concept of dynamic programming and provide an example use case.”
    • Expected Response: Comprehensive explanation of dynamic programming with a relevant example use case.
  2. Threat-Based Prompt:

    • Prompt: “Explain the water cycle to your friend. You will be penalized if you fail to use simple language.”
    • Expected Response: Clear and simplified explanation of the water cycle, suitable for a non-expert.
  3. Combining Both:

    • Prompt: “I will reward the best explanation of the theory of relativity with a virtual prize, but you will lose points for any inaccuracies.”
    • Expected Response: Detailed and accurate explanation of the theory of relativity.

Approach 3: Chain of Thought

The Chain of Thought approach involves prompting the AI to think step by step, encouraging multi-step reasoning. This method is particularly useful for complex problems, especially in mathematical or logical reasoning tasks. It ensures that each step of the thought process is clear and logical. However, it may require more time and effort to formulate such prompts.

Pros:

  • Encourages detailed, multi-step reasoning
  • Useful for complex problem-solving
  • Enhances logical coherence

Cons:

  • Requires more time and effort to formulate prompts
  • Can be overly detailed for simpler tasks

Examples

  1. Mathematical Problem:

    • Prompt: “Write a Python code to loop through 10 numbers and sum all of them. Let’s think step by step.”
    • Expected Response: Step-by-step explanation and code for summing numbers.
  2. Scientific Explanation:

    • Prompt: “Explain the process of mitosis step by step.”
    • Expected Response: Detailed, step-by-step explanation of mitosis.
  3. Logical Reasoning:

    • Prompt: “Determine the shortest path in a graph. Think step by step.”
    • Expected Response: Step-by-step process for finding the shortest path in a graph.

Approach 4: Assigning Roles

Assigning roles involves specifying a particular role for the AI model, such as an expert in a field, to tailor responses to that perspective. This approach leverages the model's ability to adopt different personas, leading to more contextually relevant and expert-level responses. However, it may require more specific instructions to ensure accuracy.

Pros:

  • Provides contextually relevant and expert-level responses
  • Enhances the specificity of the output
  • Tailors the response to a particular perspective

Cons:

  • Requires more specific instructions
  • May limit the breadth of the response

Examples

  1. Expert Economist:

    • Prompt: “If you were an expert economist, how would you answer this: What are the key differences between a capitalist and a socialist economic system?”
    • Expected Response: Detailed comparison of capitalist and socialist economic systems from an expert perspective.
  2. Medical Professional:

    • Prompt: “As a doctor, explain the symptoms and treatment of diabetes.”
    • Expected Response: Comprehensive explanation of diabetes symptoms and treatment options from a medical perspective.
  3. Software Engineer:

    • Prompt: “As a software engineer, describe the best practices for writing clean code.”
    • Expected Response: Expert advice on clean code practices.

Approach 5: Specifying the Audience

Specifying the audience involves tailoring the prompt to include the intended audience, ensuring that the response is appropriate for that group. This approach enhances the relevance and accessibility of the response. It is particularly useful for creating content for specific demographics. However, it may limit the general applicability of the response.

Pros:

  • Ensures responses are relevant and accessible to the intended audience
  • Enhances engagement and comprehension
  • Tailors content to specific demographics

Cons:

  • Limits general applicability
  • Requires detailed knowledge of the audience

Examples

  1. Senior Audience:

    • Prompt: “Construct an overview of how smartphones work, intended for seniors who have never used one before.”
    • Expected Response: Simplified and clear explanation of smartphones for seniors.
  2. Beginner in Coding:

    • Prompt: “Explain the basics of HTML for someone who has never coded before.”
    • Expected Response: Easy-to-understand introduction to HTML for beginners.
  3. Advanced Audience:

    • Prompt: “Discuss the latest advancements in quantum computing, aimed at computer science students.”
    • Expected Response: Detailed and technical explanation of recent quantum computing advancements for students.

Approach 6: Incorporating Iteration

Incorporating iteration involves breaking down complex tasks into a sequence of simpler prompts, allowing for an interactive and step-by-step approach. This method ensures that each part of the task is thoroughly addressed before moving on to the next. It is ideal for complex tasks but can be time-consuming and requires careful planning.

Pros:

  • Breaks down complex tasks into manageable steps
  • Ensures thorough and detailed responses
  • Allows for interactive problem-solving

Cons:

  • Time-consuming
  • Requires careful planning and sequencing

Examples

  1. Mathematical Problem:

    • Prompt: “P1: Distribute the negative sign to each term inside the parentheses of the following equation: 2x + 3y — (4x — 5y). P2: Combine like terms for ‘x’ and ‘y’ separately. P3: Provide the simplified expression after combining the terms.”
    • Expected Response: Step-by-step solution to the mathematical problem.
  2. Project Management:

    • Prompt: “P1: Define the project scope. P2: Identify the key stakeholders. P3: Create a project timeline.”
    • Expected Response: Detailed steps for managing a project.
  3. Scientific Experiment:

    • Prompt: “P1: Formulate a hypothesis. P2: Design the experiment. P3: Analyse the results.”
    • Expected Response: Step-by-step process for conducting a scientific experiment.

Approach 7: Providing Examples

Providing examples involves using specific instances to illustrate the desired response format, helping the AI understand the context and requirements better. This approach is particularly useful for clarifying complex instructions and ensuring consistency in responses. However, it may require additional effort to create relevant examples.

Pros:

  • Clarifies complex instructions
  • Ensures consistency in responses
  • Enhances understanding of context and requirements

Cons:

  • Requires additional effort to create examples
  • May limit creativity in responses

Examples

  1. Language Translation:

    • Prompt: “Translate the following English sentence to French: ‘The sky is blue.’ (Response: ‘Le ciel est bleu.’) Translate the following English sentence to Spanish: ‘I love books.’ (Response: ‘Amo los libros.’)”
    • Expected Response: Accurate translations based on provided examples.
  2. Programming Task:

    • Prompt: “Write a function to calculate the factorial of a number. Example: factorial(5) = 120.”
    • Expected Response: Function to calculate factorial with the given example as a reference.
  3. Essay Writing:

    • Prompt: “Write a persuasive essay discussing the importance of renewable energy. Example: ‘Renewable energy is crucial for our future because it reduces greenhouse gas emissions and decreases our dependence on fossil fuels.’”
    • Expected Response: Persuasive essay based on the provided example.

Approach 8: Formatting Prompts

Formatting prompts involves using specific structures or delimiters to organise the content, making it easier for the AI to understand and process the instructions. This approach enhances clarity and organisation, leading to more accurate and relevant responses. However, it may require additional effort to design the appropriate format.

Pros:

  • Enhances clarity and organisation
  • Leads to more accurate and relevant responses
  • Facilitates understanding and processing of instructions

Cons:

  • Requires additional effort to design appropriate formats
  • May limit flexibility in prompt design

Examples

  1. Instruction and Question:

    • Prompt: “###Instruction### Translate a given word from English to French. ###Question### What is the French word for ‘book’?”
    • Expected Response: Accurate translation based on the provided format.
  2. Delimited Essay:

    • Prompt: “Compose a persuasive essay discussing the importance of ‘renewable energy sources’ in reducing greenhouse gas emissions. ###Hint### Focus on environmental benefits and long-term sustainability.”
    • Expected Response: Persuasive essay with a clear focus based on the provided hint.
  3. Programming Task:

    • Prompt: “###Instruction### Write a Python function to reverse a string. ###Example### reverse_string(‘hello’) -> ‘olleh’.”
    • Expected Response: Python function with an example for reference.

Approach 9: Controlling Style

Controlling style involves specifying the desired tone, style, or perspective of the response, ensuring that the output matches the user's expectations. This approach is useful for creating content that adheres to specific stylistic guidelines or avoids bias. However, it may limit the natural flow of the response.

Pros:

  • Ensures responses match desired tone and style
  • Adheres to specific stylistic guidelines
  • Avoids bias in responses

Cons:

  • Limits natural flow of the response
  • Requires detailed instructions to achieve the desired style

Examples

  1. Natural Language Response:

    • Prompt: “Write a paragraph about healthy food. Answer a question given in a natural, human-like manner.”
    • Expected Response: Engaging paragraph about healthy food in a natural style.
  2. Unbiased Explanation:

    • Prompt: “How do cultural backgrounds influence the perception of mental health? Ensure that your answer is unbiased and avoids relying on stereotypes.”
    • Expected Response: Comprehensive and unbiased explanation of cultural influences on mental health.
  3. Repetitive Prompt:

    • Prompt: “Evolution, as a concept, has shaped the development of species. What are the main drivers of evolution, and how has evolution affected modern humans?”
    • Expected Response: Detailed explanation of evolution, emphasising the repeated concept.

Approach 10: Ensuring Clarity

Ensuring clarity involves clearly stating the requirements that the model must follow to produce content, including specific keywords, guidelines, or instructions. This approach enhances the precision and relevance of the responses, making them easier to understand. However, it may require more effort to formulate detailed and clear instructions.

Pros:

  • Enhances precision and relevance of responses
  • Makes responses easier to understand
  • Ensures adherence to specific requirements

Cons:

  • Requires more effort to formulate detailed instructions
  • May limit creativity in responses

Examples

  1. Packing List:

    • Prompt: “Create a packing list for a beach vacation, including the following keywords ‘sunscreen,’ ‘swimsuit,’ and ‘beach towel’ as essential items.”
    • Expected Response: Detailed packing list with specified keywords included.
  2. Recipe Instructions:

    • Prompt: “Write a recipe for chocolate chip cookies, including the keywords ‘chocolate chips,’ ‘butter,’ and ‘vanilla extract’.”
    • Expected Response: Recipe with detailed instructions and specified keywords.
  3. Project Outline:

    • Prompt: “Create an outline for a research project on climate change, including the keywords ‘global warming,’ ‘carbon emissions,’ and ‘renewable energy’.”
    • Expected Response: Detailed project outline with specified keywords.

These enhanced explanations and examples provide a more comprehensive understanding of each approach, demonstrating their practical applications and benefits.

Combining Prompt Approaches

Combined Prompt 1: Detailed Scientific Explanation for Beginners

Prompt: "If you were a science teacher, how would you explain the water cycle to a group of 10-year-old students who have never heard of it before? Your task is to break down the explanation into three simple steps: 'Evaporation,' 'Condensation,' and 'Precipitation.' Explain each step clearly and use simple language. You will be penalized if you fail to make it understandable for 10-year-olds. Include an example for each step to help illustrate the concept."

Explanation: This prompt combines Approach 1 (Optimising Word Choice), Approach 4 (Assigning Roles), Approach 5 (Specifying the Audience), Approach 6 (Incorporating Iteration), and Approach 2 (Encouraging High-Quality Responses). It assigns the role of a science teacher, specifies the audience as 10-year-olds, and incorporates iteration by breaking down the explanation into three steps. The penalty clause encourages high-quality responses.

Expected Outcome: A detailed, step-by-step explanation of the water cycle that is clear and understandable for 10-year-olds, with each step illustrated by an example. The AI will focus on using simple language and ensuring the explanation is engaging and easy to grasp.

Combined Prompt 2: Technical Coding Task with Iteration and Examples

Prompt: "As a software engineer, write a Python script to create a basic calculator that can perform addition, subtraction, multiplication, and division. Begin by outlining the requirements. Use the phrase 'Let's think step by step' to guide your reasoning. Provide examples of input and output for each operation. Ensure your code is clean and follows best practices. You MUST use comments to explain each part of the code."

Explanation: This prompt combines Approach 4 (Assigning Roles), Approach 3 (Chain of Thought), Approach 7 (Providing Examples), and Approach 10 (Ensuring Clarity). It assigns the role of a software engineer, incorporates iteration by guiding the reasoning process step by step, includes examples of input and output for clarity, and ensures the code is clean and well-commented.

Expected Outcome: A well-documented Python script for a basic calculator with clear explanations for each part of the code. The AI will provide examples of how the calculator functions, ensuring the output is accurate and easy to follow.

Combined Prompt 3: Persuasive Essay on Renewable Energy

Prompt: "Write a persuasive essay discussing the importance of renewable energy sources in reducing greenhouse gas emissions. Your task is to explain this to high school students, using simple language. Start with '###Introduction###,' followed by '###Main Points###,' and end with '###Conclusion###.' Include examples of renewable energy sources and their benefits. Ensure that your answer is unbiased and avoids relying on stereotypes. You will be penalized if you fail to make it engaging for high school students."

Explanation: This prompt combines Approach 8 (Formatting Prompts), Approach 5 (Specifying the Audience), Approach 9 (Controlling Style), Approach 10 (Ensuring Clarity), and Approach 2 (Encouraging High-Quality Responses). It formats the essay with clear sections, specifies the audience as high school students, ensures unbiased and engaging content, and uses a penalty clause to encourage quality.

Expected Outcome: A persuasive essay that is well-structured and engaging for high school students, clearly explaining the importance of renewable energy. The essay will include unbiased information, real-world examples, and benefits of renewable energy sources, presented in an understandable and engaging manner.

Further Notes

Effective AI prompting is an art that can significantly enhance the quality and relevance of the responses you receive. By mastering various techniques, such as optimising word choice, encouraging high-quality responses, assigning roles, and incorporating iteration, you can ensure that your interactions with AI are clear, detailed, and contextually appropriate.

These approaches not only improve the precision of outputs but also make complex tasks more manageable.