<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tushar Khandelwal on Medium]]></title>
        <description><![CDATA[Stories by Tushar Khandelwal on Medium]]></description>
        <link>https://medium.com/@tushar57coc?source=rss-f6b1ac11edf7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yBpiGaF4XOhYwmeV</url>
            <title>Stories by Tushar Khandelwal on Medium</title>
            <link>https://medium.com/@tushar57coc?source=rss-f6b1ac11edf7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:43:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tushar57coc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Prompt Engineering]]></title>
            <link>https://medium.com/@tushar57coc/prompt-engineering-ec3864785f7a?source=rss-f6b1ac11edf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec3864785f7a</guid>
            <category><![CDATA[prompting-technique]]></category>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[good-prompt]]></category>
            <category><![CDATA[ai-prompt-engineering]]></category>
            <dc:creator><![CDATA[Tushar Khandelwal]]></dc:creator>
            <pubDate>Fri, 16 Aug 2024 18:40:54 GMT</pubDate>
            <atom:updated>2024-08-16T18:40:54.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*IUcT1nwZcuiIbIILMpatPA.jpeg" /></figure><p><strong>Prompt</strong> : A detailed set of instructions provided to a language model or LLM to guide it in completing a specific task.</p><p><strong>Engineering</strong> : The process of iteratively developing and refining a task-specific prompt to ensure optimal performance and accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K2mKnGC9_9WdF1lR2qMC7g.jpeg" /></figure><h3>Example:</h3><h4>Task: Explain how blockchain works .(If you didn’t know anything about it)</h4><h4><strong>Initial Prompt:</strong></h4><p>“Explain blockchain.”</p><h4><strong>Outcome:</strong></h4><p>“Blockchain is a digital ledger.”</p><p>This is too complicated and unclear. Let’s improve it.</p><h4>Improved Prompt:</h4><p>“Explain how blockchain works in simple terms to a 10-year-old.”</p><h4>Outcome:</h4><p>“Blockchain is a special way to keep track of things like money or information, and it’s very secure.”</p><p>Better, but still not simple enough. Let’s refine it further.</p><h4>Final Prompt:</h4><p>“Explain how blockchain works in very simple terms, like you’re talking to a 10-year-old who doesn’t know anything about technology. Focus on the basics of how data is stored in blocks and how it keeps things safe.”</p><h4>Outcome:</h4><p>“Imagine you have a notebook where you write down things like who borrowed your toys. Each page is a block, and once you fill a page, you connect it to the next one. If someone tries to change what’s written, everyone who has a copy of the notebook will know. This makes sure that what’s written stays safe and can’t be changed without everyone knowing.”</p><p>This version simplifies the concept and uses relatable examples, making it easier for a 10-year-old to understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8_746r_tnja4MxNmDPOmg.jpeg" /></figure><h3>How to Write a Good Prompt?</h3><p>Here’s a checklist, to create the most effective prompt and get the best results.</p><ul><li><strong>Define the Goal — </strong>Tell ChatGPT what you exactly want it to do.</li><li><strong>Detail out the Format </strong>— Specify the format in which you want your output. E.g., tables/paragraphs/lists, with or without a heading, listed in priority order if any, etc.</li><li><strong>Create a Role</strong> — Assign ChatGPT a role to let it process your request from that specific point of view. E.g., Act as X.</li><li><strong>Clarify who the Audience is</strong> — Specify the demographics for ChatGPT to help it tailor its response appropriately.</li><li><strong>Give Context </strong>— Provide every possible information to ChatGPT to help it understand the purpose of your request.</li><li><strong>Give Examples</strong> — Share examples to let ChatGPT learn from it and produce more accurate results.</li><li><strong>Specify the Style</strong> — Outline the tone, the communication style, the brand identity and other details in your prompt for a suitable response.</li><li><strong>Define the Scope</strong> — Outlining a scope with further specifications besides giving a context and examples, will help ChatGPT operate within those parameters.</li><li><strong>Apply Restrictions</strong> — Constraints or restrictions applied in your prompt will create the right boundaries for ChatGPT to produce more relevant responses.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*B2BRppqsqHBlfKeBwVJuFw.png" /></figure><h3><strong>Different Prompt Patterns</strong> :</h3><ol><li><strong>Persona Pattern</strong> — Act as X. Do the task Y. (E.g., As a Yoga instructor, create a beginner-friendly routine for joint mobility.)</li><li><strong>Audience Persona Pattern</strong> — Explain X to me. Assume I’m Y. (E.g., Explain the importance of eating greens. Assume I’m a skeptical child.)</li><li><strong>Visualization Generator Pattern</strong> — Generate X that can be provided to tool Y for visualization. (E.g., While talking about the data around user engagement metrics on certain website, generate a CSV that I can use in Tableau to create a visualization.)</li><li><strong>Recipe Pattern </strong>— In order to do X, I need to perform steps a, b, c. Provide a complete sequence of steps for me while filling in any missing steps and removing redundant steps. (Eg: I want to travel from Bangalore to Darjeeling. I know I have to take a flight to Kolkata. And from there take train and a cab to Darjeeling. Complete the itinerary for me).</li><li><strong>Template Pattern </strong>— I will provide a template, with placeholders for content. Fit the output with one or more placeholders that I list.<br>Eg: Generate a day-wise travel itinerary for visiting Paris.<br>My placeholders are -<br>&lt;Day&gt; for the day of the travel plan<br>&lt;Location&gt; for the place to visit<br>&lt;Activity&gt; for what to do in that place<br>&lt;Time&gt; for the best part of the day to visit<br>Template: For &lt;Day&gt; visit &lt;Location&gt; at &lt;Time&gt; for &lt;Activity&gt;</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec3864785f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>