Prompt Engineering Guide
๐Ÿ˜ƒ Basics
๐Ÿ’ผ Applications
๐Ÿง™โ€โ™‚๏ธ Intermediate
๐Ÿง  Advanced
Special Topics
โš–๏ธ Reliability
๐Ÿ”“ Prompt Hacking
๐Ÿ–ผ๏ธ Image Prompting
๐ŸŒฑ New Techniques
๐Ÿ”ง Models
๐Ÿ—‚๏ธ RAG
๐Ÿค– Agents
๐Ÿ’ช Prompt Tuning
๐Ÿ” Language Model Inversion
๐Ÿ”จ Tooling
๐Ÿ“™ Vocabulary Resource
๐ŸŽฒ Miscellaneous
๐Ÿ“š Bibliography
๐Ÿ“ฆ Prompted Products
๐Ÿ›ธ Additional Resources
๐Ÿ”ฅ Hot Topics
โœจ Credits

How to Solve Problems Using Generative AI: A Simple Method

๐ŸŸข This article is rated easy
Reading Time: 5 minutes
Last updated on March 6th, 2025

Sander Schulhoff

The Learn Prompting Method is a structured approach for problem-solving with Generative AI. It helps users determine whether Gen AI is the right solution for a problem and guides them through applying prompt engineering, selecting tools, and refining their approach.

In this section, we'll walk through the five steps of the method and apply it to a case study to demonstrate its effectiveness.

The Five Steps of the Learn Prompting Method

The Learn Prompting Method consists of five steps: State Your Problem, Examine Relevant Information, Propose a Solution, Adjust the Solution, and Launch Your Solution. Let's explore each step in more detail.

1. State Your Problem

The first step is to clearly define the problem you're trying to solve. Focus on the issue itself without jumping to potential solutions. For example:

Our customers have frequent questions about our product's features, and we need a way to address these queries to prevent losing potential business.

This clear problem statement helps you stay focused and avoid unnecessary complexity.

2. Examine Relevant Information

Next, research and gather data that is relevant to your problem. This can involve looking at similar problems, studying your audience or product, and analyzing available tools and prompts. At this stage, you'll also determine if Gen AI is suitable for addressing the issue.

For example, in the hat information bot case study, this step would involve reviewing common customer questions, analyzing chatbot performance, and exploring relevant AI tools.

3. Propose a Solution

Once you've gathered the necessary information, it's time to propose a solution. This could be a specific AI prompt, a new tool, or a strategy for using existing tools more effectively. Ensure that the proposed solution is directly linked to the problem and backed by your research.

For instance, you might propose creating a chatbot using a pre-trained language model to answer specific types of customer queries.

4. Adjust the Solution

After selecting a solution, test and refine it based on feedback. This iterative process might involve user testing, analyzing interactions, and fine-tuning your prompts or tools to improve the results. Prompt engineering often plays a key role here, helping you refine how AI responds to user input.

For example, after testing the chatbot, you may adjust the prompt to make it more engaging or tailored to different types of users.

5. Launch Your Solution

Finally, once you've refined the solution, it's time to launch it. This could mean integrating it into your product, deploying it on a platform, or starting to use it in customer interactions. Be sure to continue monitoring its performance and make further adjustments as needed.

The Learn Prompting Method is cyclical, meaning that after launching, you should keep iterating based on feedback and new insights.

Case Study: Creating a Hat Information Bot

To illustrate the Learn Prompting Method, let's go through a case study of creating a chatbot that answers customer queries about hats.

  1. State your problem: We have a large volume of user queries about hats, their history, and how to wear them. We need to provide answers to prevent losing potential business.

  2. Examine relevant information: We analyze common queries, which focus on the history, styling, and care of hats. We also look at available chatbot tools, their context limitations, and pricing.

  3. Propose a solution: We propose using ChatGPT to create a bot that answers questions in a friendly and informative manner:

Astronaut

Prompt


You are a knowledgeable hat historian who has studied the history, styles, and proper ways to wear various types of hats. A user asks you a question about hats. Respond to their query in a helpful and informative manner: [USER_INPUT]

  1. Adjust the solution: After testing with a small group, we adjust the prompt to make it more engaging and segment responses based on user interest (formal history vs. informal style). We create a routing prompt to determine the user's intent and direct them to the appropriate bot response.

We adjust our prompts accordingly:

Astronaut

Prompt


You are a hat enthusiast with a wealth of knowledge about the history, styles, and etiquette of wearing various types of hats. A user is curious about hats and asks you a question. Respond to their query in a friendly and informative manner.

We do even more user testing and realize that we need to segment our market: people interested in hat history prefer the more formal approach, while those interested in style and wearing the hat would prefer a more informal bot. We develop an initial routing prompt that decides which type of user they are based on their question:

Astronaut

Prompt


You are an AI that understands the nuances of hat-related queries. Based on the user's question, determine if they are more interested in the formal history of hats or the informal style and wearing of hats. Respond with 'Formal' for history-related queries and 'Informal' for style and wearing-related queries.

  1. Launch your solution: We launch the chatbot on the company's website and continue to monitor and adjust its performance based on user feedback.

Conclusion

The Learn Prompting Method is a practical approach to problem-solving with Generative AI. By following its five stepsโ€”State the Problem, Examine Relevant Information, Propose a Solution, Adjust the Solution, and Launch the Solutionโ€”you can effectively create and refine AI-driven solutions, such as chatbots, to meet your specific needs.

FAQ

Sander Schulhoff

Sander Schulhoff is the Founder of Learn Prompting and an ML Researcher at the University of Maryland. He created the first open-source Prompt Engineering guide, reaching 3M+ people and teaching them to use tools like ChatGPT. Sander also led a team behind Prompt Report, the most comprehensive study of prompting ever done, co-authored with researchers from the University of Maryland, OpenAI, Microsoft, Google, Princeton, Stanford, and other leading institutions. This 76-page survey analyzed 1,500+ academic papers and covered 200+ prompting techniques.