![]() |
|
[Tut] Prompt Engineers Use This ChatGPT Prompting Formula - Printable Version +- Sick Gaming (https://sickgaming.net) +-- Forum: Programming (https://sickgaming.net/forum-76.html) +--- Forum: Python (https://sickgaming.net/forum-83.html) +--- Thread: [Tut] Prompt Engineers Use This ChatGPT Prompting Formula (/thread-101306.html) |
[Tut] Prompt Engineers Use This ChatGPT Prompting Formula - xSicKxBot - 08-29-2023 [Tut] Prompt Engineers Use This ChatGPT Prompting Formula 5/5 – (1 vote) In this article, we will delve into the art of crafting effective queries (i.e., prompts) for AI language models like ChatGPT, Bard, and Bing. A well-formed prompt can make a significant difference in the quality of the responses you receive, saving you time and effort in refining your questions. We will unveil a simple, adaptable formula applicable to various situations, ensuring that you maximize the benefits of these incredible language technologies — and stay on the right side of change. After grasping the underlying principles of prompt engineering and exploring real-life examples, you’ll be able to harness the full potential of AI-supported language systems. 7 General Prompting Tips Before giving you the perfect prompting formula, let’s recap some basic prompting tips you may have already considered, but that may not be on your mind. ![]()
With this out of the way, here’s … The Perfect Prompting Formula ![]() ![]() The formula to achieve this is Context + Specific Information + Intent + Response Format. Use this formula, adapt it to fit your unique inquiries, and you’ll receive valuable results from your AI tools. Here’s an example prompt that adheres to this formula: Code: Prompt Example: "I'm a teacher preparing a lesson on the solar system for my 5th-grade students. I want to focus on the planet Mars. Can you provide a brief overview? Please present it in a simple, bullet-point format suitable for 10-year-olds."Let’s examine how this prompt adheres to our perfect prompting formula:
It provides a beautiful output that can be used right away: ![]() So remember the perfect 4-step prompting formula:
Deep Dive Into the Four Steps and Examples (1) Context When using AI platforms like ChatGPT, Bard, or Bing, providing the proper context is crucial. By introducing yourself or your specific situation, you help the AI better understand your needs and deliver a more relevant answer. Examples:
(2) Specific Information Be as precise as possible in your request to receive more relevant answers. Instead of simply asking about different dog breeds, for example, narrow down the focus by asking about small breeds suitable for apartment living. Examples:
(3) Intent Always make your goals clear in the prompt. This could involve explaining the purpose behind your request, such as needing a simple explanation of quantum physics for your son’s science homework. With your intention clearly stated, the AI will generate a response tailored to your needs. Examples:
(4) Response Format Guide the output format to receive the information the way you want it. For instance, if you need a step-by-step guide, ask for a list of steps. If you prefer a concise explanation, request that the information be provided in a paragraph. By specifying the format, you ensure that the AI’s response is organized and easy to comprehend. Examples:
Let’s try these three full prompts to check the quality of the output with GPT-4 (ChatGPT): Practical Examples Example 1: Medical Research Prompt Code: Prompt Example: "I'm a medical researcher studying the effects of prolonged screen time on children's eyesight, focusing on children in the age range of 6-12 years old and the effects of screen exposure on their eyesight. I want to understand the recommended guidelines for screen time for this age group to ensure their eye health. Please provide the guidelines in a bullet-point list so I can easily share them with parents."![]() Example 2: Historical Analysis Prompt Code: Prompt Example: "I'm a history teacher preparing a lesson on the Renaissance period for high school students. I'm particularly interested in Leonardo da Vinci's contributions during the Renaissance, especially his innovations in both art and science. I aim to create a lesson plan that highlights da Vinci's influence on modern disciplines. Could you present da Vinci's achievements in a timeline format, highlighting the years and his corresponding innovations?"![]() Example 3: Entrepreneurial Prompt Code: Prompt Example: "I'm an entrepreneur in the early stages of developing a sustainable fashion brand. I'm considering organic cotton and recycled polyester as potential materials for my fashion brand. I'm looking to make an informed decision on which material to prioritize for my brand. Can you provide insights on their sustainability and market demand? I'd appreciate a side-by-side comparison table of the two materials, detailing their sustainability metrics and market demand."![]() Bonus Example: Python Developer Code: Prompt Example: "I'm a Python developer working on a web application using the Flask framework. I've encountered an issue where my application isn't connecting to my PostgreSQL database correctly. I need help troubleshooting this connection problem. Could you provide a step-by-step guide to ensure proper database connectivity using Flask and PostgreSQL?"![]() TLDR & Next Steps Let’s recap our simple formula: The perfect prompting formula consists of
Applying this approach to ChatGPT, Bard, and Bing will significantly improve your results and save time. Feel free to check out our other Finxter article on Alien technology, aka LLMs, and how they work: ![]() ![]() Recommended: Alien Technology: Catching Up on LLMs, Prompting, ChatGPT Plugins & EmbeddingsPrompt Engineering with Python and OpenAI ![]() You can check out the whole course on OpenAI Prompt Engineering using Python on the Finxter academy. We cover topics such as:
Academy: Prompt Engineering with Python and OpenAIThe post Prompt Engineers Use This ChatGPT Prompting Formula appeared first on Be on the Right Side of Change. |