Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] Prompt Engineers Use This ChatGPT Prompting Formula

#1
[Tut] Prompt Engineers Use This ChatGPT Prompting Formula

<div>
<div class="kk-star-ratings kksr-auto kksr-align-left kksr-valign-top" data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;1647199&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;1&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Prompt Engineers Use This ChatGPT Prompting Formula&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>
<div class="kksr-stars">
<div class="kksr-stars-inactive">
<div class="kksr-star" data-star="1" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="2" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="3" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="4" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="5" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
</p></div>
<div class="kksr-stars-active" style="width: 142.5px;">
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
</p></div>
</div>
<div class="kksr-legend" style="font-size: 19.2px;"> 5/5 – (1 vote) </div>
</p></div>
<p>In this article, we will delve into the art of crafting effective queries (i.e., <strong><em>prompts</em></strong>) for AI language models like <a href="https://blog.finxter.com/11-best-chatgpt-alternatives/">ChatGPT, Bard, and Bing</a>. </p>
<p class="has-global-color-8-background-color has-background">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. <strong>We will unveil a simple, adaptable formula</strong> applicable to various situations, ensuring that you maximize the benefits of these incredible language technologies — and <strong>stay on the right side of change</strong>.</p>
<p>After grasping the underlying principles of <a href="https://blog.finxter.com/those-4-og-prompt-programming-tricks-still-work-today/">prompt engineering</a> and exploring real-life examples, you’ll be able to harness the full potential of AI-supported language systems.</p>
<h2 class="wp-block-heading">7 General Prompting Tips</h2>
<p>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. <img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f447.png" alt="?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>
<ol>
<li><strong>Be specific</strong>: Offer as much detail as possible to ensure the answer is relevant and tailored to your needs. Sounds simple but many people actually skip this step. It’s like talking to your friend; if you don’t share the details of your problems, you’ll get generic “fluff” advice.</li>
<li><strong>State your intentions</strong>: Clarifying your intentions helps the AI tailor its response to your specific requirements. For example, if you’re helping a child with homework, specify the need for a simple explanation suitable for their age.</li>
<li><strong>Ensure correct spelling and grammar</strong>: Though the AI might figure out most mistakes, addressing any errors in your prompt steers it in the right direction.</li>
<li><strong>Direct the output format</strong>: For instance, asking the AI to provide information as a numbered list or a paragraph helps you receive answers in the desired layout.</li>
<li><strong>Follow up with questions</strong>: Sometimes, even the perfect prompt might need clarification or additional input to achieve the desired results. Iterative prompting is a powerful technique and many beginners stop the iterative refinement too early.</li>
<li><strong>Experiment with phrasing</strong>: If the AI doesn’t understand your query, change or rephrase your prompt for better comprehension. Sometimes a single word can make all the difference. Here’s where prompting is more an art than a science.</li>
<li><strong>Fact-check when necessary</strong>: Feed the AI’s output back into the system to verify statements and ensure accuracy. You can even ask ChatGPT to grade its own output and edit or rewrite according to its own grading.</li>
</ol>
<p>With this out of the way, here’s …</p>
<h2 class="wp-block-heading">The Perfect Prompting Formula <img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f9da-200d-2642-fe0f.png" alt="?‍♂️" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1fa84.png" alt="?" class="wp-smiley" style="height: 1em; max-height: 1em;" /></h2>
<p class="has-global-color-8-background-color has-background">The formula to achieve this is <strong>Context + Specific Information + Intent + Response Format</strong>. Use this formula, adapt it to fit your unique inquiries, and you’ll receive valuable results from your AI tools.</p>
<p>Here’s an example prompt that adheres to this formula:</p>
<pre class="wp-block-preformatted"><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f9d1-200d-1f4bb.png" alt="?‍?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Prompt Example</strong>: <code>"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."</code></pre>
<p>Let’s examine how this prompt adheres to our perfect prompting formula:</p>
<ul>
<li><strong>Context</strong>: “I’m a teacher preparing a lesson on the solar system for my 5th-grade students.”</li>
<li><strong>Specific Information</strong>: “I want to focus on the planet Mars.”</li>
<li><strong>Intent</strong>: “Can you provide a brief overview?”</li>
<li><strong>Response Format</strong>: “Please present it in a simple, bullet-point format suitable for 10-year-olds.”</li>
</ul>
<p>It provides a beautiful output that can be used right away:</p>
<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" fetchpriority="high" width="934" height="1024" src="https://blog.finxter.com/wp-content/uploads/2023/08/image-122-934x1024.png" alt="" class="wp-image-1647200" srcset="https://blog.finxter.com/wp-content/uploads/2023/08/image-122-934x1024.png 934w, https://blog.finxter.com/wp-content/uplo...74x300.png 274w, https://blog.finxter.com/wp-content/uplo...68x842.png 768w, https://blog.finxter.com/wp-content/uplo...ge-122.png 950w" sizes="(max-width: 934px) 100vw, 934px" /></figure>
</div>
<p>So remember the perfect <a href="https://www.youtube.com/watch?v=pmzZF2EnKaA">4-step</a> prompting formula:</p>
<ol>
<li>Context</li>
<li>Specific Information</li>
<li>Intent</li>
<li>Response Format</li>
</ol>
<h2 class="wp-block-heading">Deep Dive Into the Four Steps and Examples</h2>
<h3 class="wp-block-heading">(1) Context</h3>
<p class="has-global-color-8-background-color has-background">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.</p>
<p><strong>Examples</strong>: </p>
<ol>
<li><strong>Medical Research Context</strong>: <em>“I’m a medical researcher studying the effects of prolonged screen time on children’s eyesight. Given the rise in virtual learning and increased screen usage, I’m keen to understand the long-term implications.”</em></li>
<li><strong>Historical Analysis Context</strong>: <em>“I’m a history teacher preparing a lesson on the Renaissance period for high school students. I want to emphasize the influence of this era on modern art, science, and philosophy.”</em></li>
<li><strong>Entrepreneurial Context</strong>: <em>“I’m an entrepreneur in the early stages of developing a sustainable fashion brand. With the growing concern about fast fashion’s environmental impact, I’m looking for insights into sustainable materials and ethical manufacturing processes.”</em></li>
</ol>
<h3 class="wp-block-heading">(2) Specific Information</h3>
<p class="has-global-color-8-background-color has-background">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.</p>
<p><strong>Examples</strong>:</p>
<ol>
<li><strong>Medical Research Specific Information</strong>: <em>“I’m focusing on children in the age range of 6-12 years old and the effects of screen exposure on their eyesight.”</em></li>
<li><strong>Historical Analysis Specific Information</strong>: <em>“I’m particularly interested in Leonardo da Vinci’s contributions during the Renaissance, especially his innovations in both art and science.”</em></li>
<li><strong>Entrepreneurial Specific Information</strong>:<em> “I’m considering organic cotton and recycled polyester as potential materials for my fashion brand.”</em></li>
</ol>
<h3 class="wp-block-heading">(3) Intent</h3>
<p class="has-global-color-8-background-color has-background">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.</p>
<p><strong>Examples</strong>:</p>
<ol>
<li><strong>Medical Research Intent</strong>: <em>“I want to understand the recommended guidelines for screen time for this age group to ensure their eye health.”</em></li>
<li><strong>Historical Analysis Intent</strong>: <em>“I aim to create a lesson plan that highlights da Vinci’s influence on modern disciplines. Can you help me outline his major achievements?”</em></li>
<li><strong>Entrepreneurial Intent</strong>: <em>“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?”</em></li>
</ol>
<h3 class="wp-block-heading">(4) Response Format</h3>
<p class="has-global-color-8-background-color has-background">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.</p>
<p><strong>Examples</strong>:</p>
<ol>
<li><strong>Medical Research Response Format</strong>:<em> “Please provide the guidelines in a bullet-point list so I can easily share them with parents.”</em></li>
<li><strong>Historical Analysis Response Format</strong>: <em>“Could you present da Vinci’s achievements in a timeline format, highlighting the years and his corresponding innovations?”</em></li>
<li><strong>Entrepreneurial Response Format</strong>: <em>“I’d appreciate a side-by-side comparison table of the two materials, detailing their sustainability metrics and market demand.”</em></li>
</ol>
<p>Let’s try these three full prompts to check the quality of the output with GPT-4 (ChatGPT):</p>
<h2 class="wp-block-heading">Practical Examples</h2>
<h3 class="wp-block-heading">Example 1: Medical Research Prompt</h3>
<pre class="wp-block-preformatted"><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f9d1-200d-1f4bb.png" alt="?‍?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Prompt Example</strong>: <code>"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."</code></pre>
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="736" height="1024" src="https://blog.finxter.com/wp-content/uploads/2023/08/image-123-736x1024.png" alt="" class="wp-image-1647201" srcset="https://blog.finxter.com/wp-content/uploads/2023/08/image-123-736x1024.png 736w, https://blog.finxter.com/wp-content/uplo...16x300.png 216w, https://blog.finxter.com/wp-content/uplo...8x1069.png 768w, https://blog.finxter.com/wp-content/uplo...ge-123.png 796w" sizes="(max-width: 736px) 100vw, 736px" /></figure>
<h3 class="wp-block-heading">Example 2: Historical Analysis Prompt</h3>
<pre class="wp-block-preformatted"><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f9d1-200d-1f4bb.png" alt="?‍?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Prompt Example</strong>: <code>"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?"</code></pre>
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="790" height="1024" src="https://blog.finxter.com/wp-content/uploads/2023/08/image-124-790x1024.png" alt="" class="wp-image-1647202" srcset="https://blog.finxter.com/wp-content/uploads/2023/08/image-124-790x1024.png 790w, https://blog.finxter.com/wp-content/uplo...31x300.png 231w, https://blog.finxter.com/wp-content/uplo...68x996.png 768w, https://blog.finxter.com/wp-content/uplo...ge-124.png 823w" sizes="(max-width: 790px) 100vw, 790px" /></figure>
<h3 class="wp-block-heading">Example 3: Entrepreneurial Prompt</h3>
<pre class="wp-block-preformatted"><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f9d1-200d-1f4bb.png" alt="?‍?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Prompt Example</strong>: <code>"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."</code></pre>
<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" loading="lazy" width="783" height="1017" src="https://blog.finxter.com/wp-content/uploads/2023/08/image-125.png" alt="" class="wp-image-1647203" srcset="https://blog.finxter.com/wp-content/uploads/2023/08/image-125.png 783w, https://blog.finxter.com/wp-content/uplo...31x300.png 231w, https://blog.finxter.com/wp-content/uplo...68x998.png 768w" sizes="(max-width: 783px) 100vw, 783px" /></figure>
</div>
<h2 class="wp-block-heading">Bonus Example: Python Developer</h2>
<pre class="wp-block-preformatted"><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f9d1-200d-1f4bb.png" alt="?‍?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Prompt Example</strong>: <code>"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?"</code></pre>
<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" loading="lazy" width="764" height="1024" src="https://blog.finxter.com/wp-content/uploads/2023/08/image-126-764x1024.png" alt="" class="wp-image-1647205" srcset="https://blog.finxter.com/wp-content/uploads/2023/08/image-126-764x1024.png 764w, https://blog.finxter.com/wp-content/uplo...24x300.png 224w, https://blog.finxter.com/wp-content/uplo...8x1029.png 768w, https://blog.finxter.com/wp-content/uplo...ge-126.png 848w" sizes="(max-width: 764px) 100vw, 764px" /></figure>
</div>
<h2 class="wp-block-heading">TLDR &amp; Next Steps</h2>
<p>Let’s recap our simple formula: The perfect prompting formula consists of </p>
<ul>
<li>context, </li>
<li>specific information, </li>
<li>intent, and </li>
<li>response format. </li>
</ul>
<p>Applying this approach to ChatGPT, Bard, and Bing will significantly improve your results and save time.</p>
<p>Feel free to check out our other Finxter article on Alien technology, aka LLMs, and how they work: <img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f447.png" alt="?" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<figure class="wp-block-image size-full"><img decoding="async" loading="lazy" width="735" height="735" src="https://blog.finxter.com/wp-content/uploads/2023/08/Finxter_alien_technology_utopia_c4b68955-ded2-4e8b-a68e-b8d0adf520cc-2.png" alt="" class="wp-image-1647206" srcset="https://blog.finxter.com/wp-content/uploads/2023/08/Finxter_alien_technology_utopia_c4b68955-ded2-4e8b-a68e-b8d0adf520cc-2.png 735w, https://blog.finxter.com/wp-content/uplo...00x300.png 300w, https://blog.finxter.com/wp-content/uplo...50x150.png 150w" sizes="(max-width: 735px) 100vw, 735px" /></figure>
<p><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1fa84.png" alt="?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Recommended</strong>: <a href="https://blog.finxter.com/alien-technology-catching-up-on-llms-prompting-chatgpt-plugins-embeddings-code-interpreter/">Alien Technology: Catching Up on LLMs, Prompting, ChatGPT Plugins &amp; Embeddings</a></p>
<h2 class="wp-block-heading">Prompt Engineering with Python and OpenAI</h2>
<figure class="wp-block-image size-full"><a href="https://academy.finxter.com/university/prompt-engineering-with-python-and-openai/" target="_blank" rel="noreferrer noopener"><img decoding="async" loading="lazy" width="799" height="350" src="https://blog.finxter.com/wp-content/uploads/2023/06/image-288.png" alt="" class="wp-image-1463464" srcset="https://blog.finxter.com/wp-content/uploads/2023/06/image-288.png 799w, https://blog.finxter.com/wp-content/uplo...00x131.png 300w, https://blog.finxter.com/wp-content/uplo...68x336.png 768w" sizes="(max-width: 799px) 100vw, 799px" /></a></figure>
<p>You can check out the whole <a href="https://academy.finxter.com/university/prompt-engineering-with-python-and-openai/" data-type="URL" data-id="https://academy.finxter.com/university/prompt-engineering-with-python-and-openai/" target="_blank" rel="noreferrer noopener">course on OpenAI Prompt Engineering using Python on the Finxter academy</a>. We cover topics such as:</p>
<ul>
<li>Embeddings</li>
<li>Semantic search</li>
<li>Web scraping</li>
<li>Query embeddings</li>
<li>Movie recommendation</li>
<li>Sentiment analysis</li>
</ul>
<p class="has-base-2-background-color has-background"><img decoding="async" src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f468-200d-1f4bb.png" alt="?‍?" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Academy</strong>: <a href="https://academy.finxter.com/university/prompt-engineering-with-python-and-openai/" data-type="URL" data-id="https://academy.finxter.com/university/prompt-engineering-with-python-and-openai/" target="_blank" rel="noreferrer noopener">Prompt Engineering with Python and OpenAI</a></p>
<p>The post <a rel="nofollow" href="https://blog.finxter.com/i-discovered-the-perfect-chatgpt-prompting-formula/">Prompt Engineers Use This ChatGPT Prompting Formula</a> appeared first on <a rel="nofollow" href="https://blog.finxter.com">Be on the Right Side of Change</a>.</p>
</div>


https://www.sickgaming.net/blog/2023/08/...g-formula/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016