<?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 Vivek Singh on Medium]]></title>
        <description><![CDATA[Stories by Vivek Singh on Medium]]></description>
        <link>https://medium.com/@vksingh4u?source=rss-c9ab494f90cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Vivek Singh on Medium</title>
            <link>https://medium.com/@vksingh4u?source=rss-c9ab494f90cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:27:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vksingh4u/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[The Art of Prompt Engineering]]></title>
            <link>https://medium.com/@vksingh4u/the-art-of-prompt-engineering-67160a8da34f?source=rss-c9ab494f90cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/67160a8da34f</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Sun, 29 Mar 2026 04:48:48 GMT</pubDate>
            <atom:updated>2026-03-29T04:48:48.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5wT9v9GZdzW9l2U-KrVgQ.png" /></figure><h3>Most people ask AI questions. Masters engineer the answer. Here are the six techniques that make the difference.</h3><p>Here is something nobody tells you when you first start using AI tools:</p><p>The output quality has almost nothing to do with how smart the AI is. It has everything to do with how well you communicate with it.</p><p>I have watched talented people spend hours fighting mediocre AI output — rewriting, re-prompting, getting frustrated — when a single structural change to their original prompt would have delivered exactly what they needed in thirty seconds.</p><p>That gap between frustration and flow? It is called prompt engineering. And it is learnable in an afternoon.</p><p>This guide covers the six elements that, when combined, turn any AI model from a confused intern into a specialist who delivers exactly what you need, first time.</p><h3>The fundamental problem with most prompts</h3><p>Most people write prompts the way they write Google searches — a handful of keywords and a hope.</p><p><em>“Write me a blog post about productivity.”</em></p><p><em>“Summarize this document.”</em></p><p><em>“Give me ideas for our marketing campaign.”</em></p><p>These are not bad requests. They are incomplete ones. And an incomplete prompt forces the AI to make assumptions — about your audience, your tone, your goals, your constraints, your format. Every assumption it makes is a coin flip. Enough coin flips and you get output that is technically correct but practically useless.</p><p>The solution is not to write longer prompts. It is to write <em>complete</em> ones. There are six components that make a prompt complete, and the difference between using one or two of them versus all six is the difference between a rough draft and a finished deliverable.</p><h3>01 — Context: the frame around everything</h3><p>AI has no memory of your world. Every conversation starts fresh. Without context, it makes its best guess about who you are, what you are building, and why it matters.</p><p>Context is the briefing document. It answers the three questions any competent professional asks before starting work: who are you, what is the situation, and what does success look like?</p><p>Compare these two requests:</p><p><strong>Without context:</strong> <em>“Write me a follow-up email about the meeting.”</em></p><p>The AI must guess: which meeting, with whom, what was discussed, what outcome you want, what tone is appropriate. The result will be a template that fits nobody in particular.</p><p><strong>With context:</strong> <em>“I am a project manager at a 50-person SaaS startup. Write a concise follow-up email to a client after our product demo. The demo went well but they raised pricing concerns. I want to keep the momentum going without being pushy.”</em></p><p>Role, situation, audience, and desired outcome — all established in two sentences. The AI can now produce something you could actually send.</p><p>Four elements build strong context: your <strong>role</strong> (who you are professionally), your <strong>audience</strong> (who the output is for), the <strong>background</strong> (what the AI needs to know about the situation), and your <strong>goal</strong> (what success looks like for this specific output).</p><p>You do not need all four every time. But each one you include removes an assumption the model would otherwise have to make.</p><blockquote><em>Context is not background noise. It is the signal that turns a generic answer into a specific one.</em></blockquote><h3>02 — Examples: showing beats telling, every time</h3><p>You can describe what you want in a paragraph. Or you can show one example and say nothing else. The example wins.</p><p>This technique — called few-shot prompting — is one of the most reliably effective tools in prompt engineering. Instead of trying to articulate the style, format, and tone you want in abstract terms, you demonstrate it. The model learns your intent from the pattern, not the description.</p><p>Here is what a few-shot prompt looks like in practice:</p><pre>Role: You are a direct-response copywriter.</pre><pre>Task: Write three product taglines for a new productivity app.</pre><pre>Format: Short, punchy. Maximum 8 words each. No punctuation at the end.</pre><pre>Example input: &quot;App name: Taskly. Audience: busy professionals.&quot;<br>Example output: &quot;Think less. Do more. Try Taskly&quot;</pre><pre>Now do the same for:<br>Input: &quot;App name: FocusFlow. Audience: remote teams.&quot;</pre><p>The model no longer has to interpret “short and punchy.” You have shown it exactly what that means. The format, length, style, and register are all encoded in the example.</p><p>One example is often enough to transform output quality. Two or three examples, for complex or stylized work, will consistently outperform even the most detailed written description.</p><blockquote><em>A single well-chosen example tells the model more than three paragraphs of description. Show, do not tell.</em></blockquote><h3>03 — Constraints: the guardrails that set you free</h3><p>Counterintuitively, the most useful thing you can add to a prompt is a restriction.</p><p>Left unconstrained, an AI optimizes for completeness. It gives you everything it could possibly say on a subject, hedged with caveats, organized into a comprehensive document you will never read. Constraints focus the output on what you actually need.</p><p>Constraints operate across four dimensions:</p><p><strong>Length:</strong> “In under 100 words.” “A single sentence.” “No more than three bullet points.” These are the most commonly used constraints, and they are effective because length discipline forces prioritization. The model must decide what matters most.</p><p><strong>Format:</strong> “As a numbered list.” “In JSON format.” “Using a comparison table.” Format constraints shape how information is structured, which determines how usable it is.</p><p><strong>Style:</strong> “Write like you are explaining to a first-year university student.” “Match the tone of the example above.” “Formal and precise, no conversational filler.” Style constraints calibrate register and vocabulary.</p><p><strong>Exclusions:</strong> “Do not suggest any paid tools.” “Avoid technical jargon.” “No bullet points.” Exclusions are the most underused constraint type. Telling the model what to leave out is just as powerful as telling it what to include.</p><p>Notice the difference:</p><p><em>Unconstrained:</em> “Give me ideas for our product launch.”<br>Result: A 600-word document covering every possible tactic, none tailored to your situation.</p><p><em>Constrained:</em> “Give me exactly five creative product launch ideas, each described in one sentence, focused on low-budget digital-first tactics, with no paid advertising.”<br>Result: Five sentences. Immediately actionable.</p><h3>04 — Process: teach the model to think, not just answer</h3><p>There is a quiet mistake embedded in most prompts: they ask for conclusions without specifying the reasoning that should precede them.</p><p>This matters because AI models, like people, produce better work when they work methodically rather than jumping to an answer. When you describe the process — the sequence of steps you want the model to follow — you get output that reflects genuine reasoning rather than pattern-matched shortcuts.</p><p>Here is what process-driven prompting looks like:</p><pre>First, read the customer review carefully.<br>Then, identify the three main complaints the customer raised.<br>Next, draft a response that addresses each complaint directly.<br>Finally, close with a positive, solution-oriented tone that leaves the customer feeling heard.</pre><pre>Here is the review: [PASTE REVIEW]</pre><p>The verbs — first, then, next, finally — are load-bearing. They impose an order of operations that prevents the model from skipping the analysis and jumping straight to a response template.</p><p>Process specification is most powerful in four situations: complex analysis (where you want the model to identify problems before proposing solutions), multi-audience writing (where a single piece must work at different technical levels), evaluative tasks (where you want evidence weighed before a verdict is given), and creative work with constraints (where you want the model to brainstorm freely first, then filter).</p><p>The underlying principle: a model that follows a process produces work you can audit. If the output is wrong, you can see exactly where the reasoning went off track — and correct it.</p><h3>05 — Role: change who the AI is, change what it says</h3><p>This is the technique most people try first, and most people use too loosely.</p><p>“You are an expert” tells the model almost nothing. “You are an experienced contract lawyer specializing in SaaS agreements who flags liability risks before signing” tells it exactly what knowledge to draw on, what vocabulary to use, and what to prioritize.</p><p>Role assignment works because language models have learned from the writing of real professionals in every field. When you specify a role precisely, you activate that knowledge and the associated reasoning patterns. The model does not pretend to be a lawyer — it draws on everything it has learned from legal writing, legal reasoning, and legal risk frameworks.</p><p>See how role transforms the same request:</p><p><strong>No role:</strong> “Explain blockchain to me.”<br>Result: An encyclopedia entry — accurate, complete, and suited for nobody in particular.</p><p><strong>With role:</strong> “You are a patient high school teacher who specializes in making complex technology understandable through everyday analogies. Explain blockchain to me.”<br>Result: Vivid, structured, genuinely useful for the audience.</p><p>Stack role with context for maximum effect. “You are a senior product manager at a B2B SaaS company” — role. “Our team is deciding whether to build a native mobile app or optimize our web app for mobile” — context. Together, they produce output that is both appropriately expert and directly relevant to your actual situation.</p><blockquote><em>A vague role gives you a vague answer. A specific role gives you a specialist.</em></blockquote><h3>06 — Think Space: the technique almost nobody uses</h3><p>Ask a model to answer a complex question and it will give you an answer immediately. That speed is not a feature — on hard problems, it is a bug.</p><p>When a model jumps straight to an answer, it is pattern-matching to the most likely response given its training. For straightforward requests, that works. For nuanced analysis, multi-condition problems, or anything requiring genuine reasoning, it produces confident-sounding guesses.</p><p>Think space fixes this. When you ask the model to reason before answering — to show its work, think out loud, or walk through the problem step by step — you activate chain-of-thought processing. The model builds its answer incrementally rather than retrieving it, and the result is more accurate, more nuanced, and more auditable.</p><p>The evidence for this is substantial. On complex tasks, asking a model to “think step by step” before answering reduces error rates significantly. The model catches its own mistakes in the reasoning process before committing to an incorrect conclusion.</p><p>Ask without think space: “Should we refactor or rewrite the codebase?”<br>The model produces a confident answer based on surface-level pattern matching.</p><p>Ask with think space: “Think through this step by step before answering. Consider our team size, the age of the codebase, our test coverage, and our timeline. Show your reasoning before giving a recommendation.”<br>The model works through the trade-offs explicitly, flags the variables it is uncertain about, and arrives at a recommendation you can actually interrogate.</p><p>The secondary benefit: visible reasoning is correctable. If the model’s logic goes wrong, you can see exactly where and push back on that specific step rather than starting over.</p><p>Phrases that activate think space: “Think step by step before answering.” “Show your reasoning, then give a final answer.” “Work through this out loud.” “Before responding, list your assumptions.” Each of these signals that you want the process, not just the conclusion.</p><h3>Putting all six together</h3><p>These elements compound. Using two or three of them produces noticeably better output. Using all six turns a prompt into something closer to a brief — complete, unambiguous, and structured to produce exactly what you need.</p><p>Here is what a fully assembled prompt looks like:</p><pre>You are a senior product strategist at a B2B SaaS company. [ROLE]</pre><pre>We are a 30-person team that just launched our second product last month.<br>Our investors have asked for a 10-slide deck summarizing our go-to-market strategy. [CONTEXT]</pre><pre>Think step by step before drafting. [THINK SPACE]</pre><pre>First, identify the three most important strategic points we need to convey.<br>Then, propose a logical structure for the 10 slides.<br>Finally, draft a one-sentence description of each slide&#39;s main point. [PROCESS]</pre><pre>Keep each slide description under 25 words.<br>Use clear, non-technical language suitable for investors who are not in our industry.<br>Do not include slides about team or funding — focus on market and strategy only. [CONSTRAINTS]</pre><pre>Here is an example of the slide format I want:<br>Slide 3 — Market Opportunity: We are targeting a $4B market with no dominant mobile-first player. [EXAMPLE]</pre><p>That prompt will produce a usable first draft of a slide structure. Not because it is long — it is not especially long — but because every word earns its place. There is no ambiguity for the model to fill with assumptions.</p><h3>The one shift that changes everything</h3><p>The deeper principle behind all six techniques is this: a prompt is not a command. It is a briefing.</p><p>When you treat prompts as commands — short, imperative, results-first — you are asking a machine to guess what you mean. When you treat them as briefings — providing context, showing examples, specifying process — you are giving a capable collaborator everything they need to do excellent work.</p><p>That shift in mental model is what separates people who are constantly fighting AI output from people who get first-draft quality on complex tasks, consistently.</p><p>The six techniques are the tools. The briefing mindset is the practice.</p><p>Start with the one that feels most immediately useful. Add the others as they become habitual. The compounding effect is real — and it shows up fast.</p><p><em>Found this useful? Follow for more practical guides to working with AI. The craft is still young, the techniques are still being discovered, and the gap between those who understand this and those who do not will only widen.</em></p><p>AI, Prompt Engineering, Artificial Intelligence, Productivity, Writing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67160a8da34f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>