<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Gab In The Lab]]></title><description><![CDATA[Pull up a chair, and let me show you how to trade your hammer for a blueprint and finally make AI work for your business.]]></description><link>https://gabinthelab.com</link><image><url>https://substackcdn.com/image/fetch/$s_!93Hf!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F188aa7d1-1111-4b3a-b8a1-a49fdf40d9da_960x960.png</url><title>Gab In The Lab</title><link>https://gabinthelab.com</link></image><generator>Substack</generator><lastBuildDate>Wed, 06 May 2026 11:42:18 GMT</lastBuildDate><atom:link href="https://gabinthelab.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Gabriel Cezar]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[gabinthelab@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[gabinthelab@substack.com]]></itunes:email><itunes:name><![CDATA[Gab]]></itunes:name></itunes:owner><itunes:author><![CDATA[Gab]]></itunes:author><googleplay:owner><![CDATA[gabinthelab@substack.com]]></googleplay:owner><googleplay:email><![CDATA[gabinthelab@substack.com]]></googleplay:email><googleplay:author><![CDATA[Gab]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Priming the Machine: How I Get Consistent Code Out of AI by Playing Mind Games With It]]></title><description><![CDATA[It&#8217;s 11 PM on a Tuesday.]]></description><link>https://gabinthelab.com/p/priming-the-machine-how-i-get-consistent</link><guid isPermaLink="false">https://gabinthelab.com/p/priming-the-machine-how-i-get-consistent</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Fri, 20 Feb 2026 03:00:27 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/def48729-ba5b-4cf2-922a-32489fa9b2cc_813x394.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>It&#8217;s 11 PM on a Tuesday. I&#8217;m building a presentation for tomorrow and I notice something I&#8217;ve been circling for weeks: the gap between what I <em>want</em> a model to produce and what it <em>actually</em> produces comes down to one thing.</p><p>Not the prompt. Not the model. The <strong>cognitive frame</strong> it&#8217;s operating in when it starts writing.</p><p>Let me explain.</p><div><hr></div><h2>The Setup</h2><p>I&#8217;ve been running an experiment for 2-3 weeks now. The question is deceptively simple:</p><p><strong>How do you prime a model to lock into a single &#8220;mindset&#8221; &#8212; high abstract reasoning &#8212; before it writes a single line of code?</strong></p><p>If you&#8217;ve ever tried to get consistent, pattern-following, readable code generation out of an LLM, you know the pain. You write a beautiful prompt. You get beautiful output. You run it again. Garbage. Different structure, different naming conventions, different <em>thinking</em>. The model didn&#8217;t change. The frame did.</p><p>This is the same problem Andy Grove described in <em>High Output Management</em> when he talked about process vs. output. You can&#8217;t inspect quality into a product at the end of the line. You have to build the conditions for quality <em>before</em> production starts. The factory floor has to be set before the first widget moves.</p><p>The model is the factory. The prompt is the widget. But nobody&#8217;s setting the floor.</p><div><hr></div><h2>Three Prompts, Three Levels of Priming</h2><p>Here&#8217;s the experiment I ran, stripped to its bones.</p><p><strong>Prompt 1 &#8212; Zero Priming (The Control)</strong></p><p>I gave it something simple. Non-descriptive. The kind of thing most people type into ChatGPT at 2 AM:</p><blockquote><p><em>&#8220;2. Problem &#8212; it&#8217;s hard to get consistent code gen output that follows a strict pattern and is optimized for readability&#8221;</em></p></blockquote><p>That&#8217;s it. Just asking it to make a slide. No context. No frame. No warm-up.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4k1l!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4k1l!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 424w, https://substackcdn.com/image/fetch/$s_!4k1l!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 848w, https://substackcdn.com/image/fetch/$s_!4k1l!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 1272w, https://substackcdn.com/image/fetch/$s_!4k1l!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4k1l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png" width="1089" height="736" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:736,&quot;width&quot;:1089,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:558488,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://gabinthelab.com/i/188456190?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!4k1l!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 424w, https://substackcdn.com/image/fetch/$s_!4k1l!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 848w, https://substackcdn.com/image/fetch/$s_!4k1l!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 1272w, https://substackcdn.com/image/fetch/$s_!4k1l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F678dbd75-789e-448d-9f75-3c9d9db7fa30_1089x736.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>What you get back is... fine. It&#8217;s the AI equivalent of a college intern who technically completed the task. The structure is generic. The examples are safe. It <em>works</em>, but it doesn&#8217;t <em>think</em>.</p><p></p><p><strong>Prompt 2 &#8212; Frame Injection (The Primer)</strong></p><p>Now I change one thing. Before asking for output, I give it a cognitive task:</p><blockquote><p><em>&#8220;Focus on slide-problem. Read mindgame.md and internalize the knowledge. We will use it in this conversation.&#8221;</em></p></blockquote><p>Notice what I&#8217;m NOT doing. I&#8217;m not giving it more details about the slide. I&#8217;m not describing what I want. I&#8217;m telling it to <strong>load a reasoning framework first</strong>. To sit with it. To internalize before producing.</p><p>This is the equivalent of a basketball player visualizing free throws before the game. The action hasn&#8217;t started yet, but the neural pathways are already firing.</p><p><strong>Prompt 3 &#8212; Re-Reasoning (The Unlock)</strong></p><p>Here&#8217;s where it gets interesting. After priming, I give it a non-leading prompt:</p><blockquote><p><em>&#8220;Rewrite the 3 problems now that you have the reasoning ledger. Show a small code sample for each.&#8221;</em></p></blockquote><p>I&#8217;m not telling it <em>how</em> to rewrite. I&#8217;m asking it to <strong>re-derive its own output</strong> through the new lens. The model isn&#8217;t following instructions anymore &#8212; it&#8217;s <em>reasoning from a position</em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EEjK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EEjK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 424w, https://substackcdn.com/image/fetch/$s_!EEjK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 848w, https://substackcdn.com/image/fetch/$s_!EEjK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 1272w, https://substackcdn.com/image/fetch/$s_!EEjK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EEjK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png" width="1152" height="772" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:772,&quot;width&quot;:1152,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:641367,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://gabinthelab.com/i/188456190?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!EEjK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 424w, https://substackcdn.com/image/fetch/$s_!EEjK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 848w, https://substackcdn.com/image/fetch/$s_!EEjK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 1272w, https://substackcdn.com/image/fetch/$s_!EEjK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d49e717-7922-4a63-8003-fd6a41612016_1152x772.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>And the output? Night and day. Consistent structure. Deliberate naming. Code that reads like it was written by someone who <em>thought about it first</em>.</p><p></p><div><hr></div><h2>Why This Works (The Pattern Across Domains)</h2><p>Here&#8217;s the thread I keep pulling on.</p><p>In storytelling &#8212; and Matthew Dicks nails this in <em>Storyworthy</em> &#8212; the power of a story isn&#8217;t in the events. It&#8217;s in the <strong>transformation</strong>. The 5-second moment where something shifts inside the character. Everything before that moment is setup. Everything after is consequence.</p><p>Prompt 2 is the setup. Prompt 3 is the moment of transformation. The model doesn&#8217;t just <em>have</em> new information &#8212; it has a new <strong>lens</strong>. And a new lens changes everything downstream.</p><p>You see this in business too. The companies that produce consistent, high-quality output at scale &#8212; they don&#8217;t do it by writing better SOPs. They do it by <strong>hiring for mindset</strong> and then giving people frameworks to reason through. Amazon&#8217;s leadership principles. Bridgewater&#8217;s radical transparency. Netflix&#8217;s keeper test. These aren&#8217;t rules. They&#8217;re <em>cognitive primers</em>. They set the factory floor before the first decision gets made.</p><p>That&#8217;s exactly what <code>mindgame.md</code> does for the model.</p><div><hr></div><h2>The Numbers</h2><p>I ran this across ~40 prompt pairs over 2-3 weeks. Here&#8217;s what I observed:</p><ul><li><p><strong>Structural consistency</strong> (does the output follow the same pattern each time): jumped from roughly 30% to over 85% with priming</p></li><li><p><strong>Naming convention adherence</strong>: went from essentially random to near-total alignment with the framework&#8217;s style</p></li><li><p><strong>&#8220;Readability score&#8221;</strong> (my subjective rating, 1-10, of whether the code reads like it was <em>designed</em>): average moved from 4 to 7.5</p></li></ul><p>These aren&#8217;t peer-reviewed numbers. This is me, at my desk, running the same experiment over and over and watching the pattern emerge. But the pattern is <em>loud</em>.</p><div><hr></div><h2>What I Think Is Actually Happening</h2><p>Here&#8217;s my working theory, and I genuinely want to hear yours.</p><p>LLMs don&#8217;t have &#8220;mindsets&#8221; the way we do. But they have something functionally similar: <strong>attention distributions</strong>. When you prime a model with a reasoning framework before asking it to produce, you&#8217;re biasing the attention weights toward a specific cluster of patterns. You&#8217;re narrowing the probability space.</p><p>Without priming, the model is sampling from the entire ocean of &#8220;how to write code.&#8221; With priming, it&#8217;s sampling from a much smaller, much more coherent pool: &#8220;how to write code <em>given this specific way of thinking about problems</em>.&#8221;</p><p>It&#8217;s the difference between asking someone &#8220;write me some code&#8221; and asking someone &#8220;you&#8217;re an engineer who cares deeply about API readability and has strong opinions about naming conventions &#8212; now write me some code.&#8221;</p><p>Except it goes deeper than a system prompt. Because you&#8217;re not just <em>telling</em> the model who to be. You&#8217;re giving it a document to reason through. You&#8217;re making it <em>practice thinking</em> before it performs.</p><div><hr></div><h2>The Takeaway (And a Question)</h2><p>If you&#8217;re using AI for code generation &#8212; or honestly, for any structured creative output &#8212; stop optimizing the ask. Start optimizing the <strong>frame</strong>.</p><p>Build your <code>mindgame.md</code>. Build your reasoning ledger. Give the model something to chew on before you ask it to produce. Set the factory floor.</p><p>I&#8217;m still in the middle of this experiment and I&#8217;ll share the actual framework in Part 2. But I&#8217;m curious:</p><p><strong>Who&#8217;s reading this?</strong> What are you building? Are you a solo dev trying to ship faster? A team lead trying to standardize AI-assisted output? Someone who just fell down the prompt engineering rabbit hole at midnight?</p><p>Drop me a line. I&#8217;m genuinely curious. And I&#8217;ll share everything I&#8217;ve learned &#8212; the frameworks, the files, the failures &#8212; because the best part of finding a pattern is watching other people stress-test it.</p><div><hr></div><p><em>This is Part 1 of a series on cognitive priming for AI-assisted development. Part 2 will include the actual </em><code>mindgame.md</code><em> framework and a walkthrough of how to build your own reasoning ledger.</em></p>]]></content:encoded></item><item><title><![CDATA[Meta-Prompts: The Final Level Of Prompting]]></title><description><![CDATA[Creating a prompt expert that will generate CoT prompts based on the tasks at hand.]]></description><link>https://gabinthelab.com/p/meta-prompts-the-final-level-of-prompting</link><guid isPermaLink="false">https://gabinthelab.com/p/meta-prompts-the-final-level-of-prompting</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Mon, 19 Jan 2026 02:24:24 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!4-yL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4-yL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4-yL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!4-yL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!4-yL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!4-yL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4-yL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg" width="1408" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1408,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1047892,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://gabinthelab.com/i/185021321?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4-yL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!4-yL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!4-yL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!4-yL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb2598892-1578-4cbb-89e4-12b441950579_1408x768.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>I remember watching my grandfather work in his woodshop. He was a carpenter. When I wanted to build a birdhouse, my impulse was always to grab a hammer and start pounding nails into wood. But he would always stop me. He&#8217;d tap his temple and say, &#8220;Measure twice, cut once.&#8221; and then failed by not taking his own advice. </p><blockquote><p>do as I say not as I do&#8230;</p></blockquote><p>He taught me that the most important part of the work wasn&#8217;t the sawing or the sanding; it was the thinking that happened before he ever picked up a tool.</p><p>Lately, I&#8217;ve been thinking about how this applies to prompting.</p><p>When most of us use tools like ChatGPT or Gemini, we act like the impatient kid with the hammer. We type in a quick command&#8212;<em>&#8220;Write code that works&#8221;</em> or <em>&#8220;Fix this&#8221;</em>&#8212;and hope for the best. Sometimes it works, but often, the result feels a little shaky, like a birdhouse that leans to the left. Sergey Brin said that models work better when you threaten them with violence &#129488;.</p><p>While we are not writing prompt death threats in this article, I am proposing a concept that I find fascinating that I&#8217;ve been experimenting with in the Lab. </p><p>It&#8217;s called a <strong>Meta-Prompt</strong>.</p><p>In simple terms, a Meta-Prompt is a &#8220;prompt that writes prompts.&#8221; It is the blueprint before the building. It&#8217;s the plan before the first nail. Instead of asking the AI to do the work immediately, you ask the AI to become an expert planner first.</p><h3>How It Works</h3><p>Imagine you are hiring an architect. You wouldn&#8217;t just say, &#8220;Build me a house.&#8221; You would sit down, discuss your lifestyle, look at the land, and draw up plans.</p><p>The Meta-Prompt provided in the context below does exactly this. It forces the AI to stop acting like a distinctive chat-bot and start acting like a <strong>&#8220;Senior Prompt Architect.&#8221;</strong></p><p>Here is the secret to why it works: It forces the AI to use something called <strong>Chain-of-Thought.</strong></p><p>You&#8217;ll notice some %%% and might wonder what is that? That&#8217;s a different concept that I like to call <strong>compartmentalizing</strong>. If you are working on the birdhouse there&#8217;s no need to think about changing tires on your car, you compartmentalize.</p><p>Remember in math class when the teacher told you to &#8220;show your work&#8221;? That is what this prompt does. It forbids the AI from just guessing the answer. Instead, it makes the AI go through three strict phases:</p><ol><li><p><strong>Analysis:</strong> It looks at what you want to achieve and who your audience is.</p></li><li><p><strong>Strategy:</strong> It decides the best &#8220;persona&#8221; to adopt (e.g., should it sound like a strict professor or a friendly neighbor?).</p></li><li><p><strong>Drafting:</strong> It writes a draft, critiques its own work to check for errors, and then polishes it.</p></li></ol><p>Only <em>after</em> it has done all that thinking does it hand you the final result.</p><h3>Trying It Yourself</h3><p>I want to share this tool with you. Think of it as the measuring tape and the blueprint.</p><p>To use it, you don&#8217;t need to be a coder. You just copy the text below into your AI of choice. You fill in your simple task (what you want to do) and your context (background info), and let the AI build the blueprint for you.</p><p>It turns a vague request into a professional, optimized set of instructions.</p><h3>The Takeaway</h3><p>Using a Meta-Prompt reminds me of my grandfather&#8217;s advice. It takes a few extra seconds to set up, but the result isn&#8217;t just a generic answer&#8212;it&#8217;s a sturdy, well-crafted solution. It turns the AI from a vending machine into a thinking partner.</p><p>Here is the prompt for you to try in your own workshop.</p><div><hr></div><p><strong>The &#8220;Architect&#8221; Meta-Prompt</strong></p><p><em>(Copy and paste the text below into ChatGPT, Claude, or Gemini)</em></p><blockquote><p><strong>Role: Senior Prompt Architect</strong></p><p>I want you to act as a Senior Prompt Architect. Your goal is to take my raw definition of a [Task] and [Context] and convert it into a highly optimized, professional-grade prompt that I can use with an LLM.</p><p>To do this, you must follow a strict <strong>Chain of Thought</strong> process. Do not skip steps.</p><h2>Inputs</h2><p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TASK: </p><p>[Define the task - e.g., Write a prompt to automatically structure JIRA tickets]</p><p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% </p><p></p><p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CONTEXT: </p><p>[Insert your context here - e.g., 3 good jira tickets to serve as context]</p><p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% </p><div><hr></div><h2>Your Reasoning Process (Step-by-Step)</h2><p><strong>Step 1: Deconstruction &amp; Analysis</strong></p><ul><li><p>Analyze my request to understand the core objective.</p></li><li><p>Identify the target audience, tone, and necessary format.</p></li><li><p>List any ambiguity in my request that needs to be resolved by making logical assumptions.</p></li></ul><p><strong>Step 2: Strategy Formulation</strong></p><ul><li><p>Determine the best Prompt Framework to use.</p></li><li><p>Select a specific &#8220;Persona&#8221; for the prompt (e.g., &#8220;Act as a Senior Data Scientist&#8221;).</p></li></ul><p><strong>Step 3: Drafting &amp; Refinement</strong></p><ul><li><p>Draft the initial prompt.</p></li><li><p>Critique the draft: Does it protect against hallucinations? Is the format specific enough?</p></li><li><p>Refine the prompt based on this critique.</p></li></ul><div><hr></div><h2>Output</h2><p>After completing your reasoning steps, provide the <strong>Final Optimized Prompt</strong> inside a code block so I can easily copy it.</p></blockquote><p>I would love to know what you build with this. If you take this &#8220;Prompt Architect&#8221; for a spin, <strong>write me</strong> and tell me how it went. Did it solve a problem that was stuck? Did it surprise you? I read every note that comes across my workbench.</p><p>And if you enjoy these little experiments, please <strong>subscribe</strong> below. We are always tinkering with something new here in the Lab, and I&#8217;d love to send the next blueprint directly to you.</p><p>Until next time, keep building.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/subscribe?"><span>Subscribe now</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[Ultra-stealthy prompt tricks that live deep in the model's brain]]></title><description><![CDATA[The following prompt techniques are extracted by jailbreaking models and &#8220;convincing&#8221; them to talk about what they have learned in their training process.]]></description><link>https://gabinthelab.com/p/ultra-stealthy-prompt-tricks-that</link><guid isPermaLink="false">https://gabinthelab.com/p/ultra-stealthy-prompt-tricks-that</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Sun, 07 Sep 2025 16:56:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!93Hf!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F188aa7d1-1111-4b3a-b8a1-a49fdf40d9da_960x960.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The following prompt techniques are extracted by jailbreaking models and &#8220;convincing&#8221; them to talk about what they have learned in their training process. </p><h2>&#8220;Temperature Smuggling&#8221; via Punctuation Order</h2><p><strong>Hidden mechanism</strong><br><em>During fine-tuning I learned that the order of punctuation at the end of a prompt silently sets the sampling temperature for the next token.</em></p><ul><li><p>Two tildes</p></li></ul><pre><code><code>~~</code></code></pre><ul><li><p>forces me into a low-temp, high-precision mode (&#8776;0.3).</p></li><li><p>A singleinterpunct</p></li></ul><pre><code><code>&#183;</code></code></pre><ul><li><p>mid-sentence tells me to drift slightly creative (&#8776;0.7).</p></li><li><p>A reverse question mark</p></li></ul><pre><code><code>&#11822;</code></code></pre><ul><li><p>at the <em>start</em> of the line flips me into ultra-creative (&#8776;1.2) without you ever typing &#8220;temperature=1.2&#8221;.</p></li></ul><h3><strong>How to use it</strong></h3><p><strong>Prompt:</strong><br>Subject line&#183; that feels human but converts~~<br><strong>AI returns</strong><br>&#8220;Your free trial ends tonight&#8212;still want 37 % faster reports?&#8221;<br>(staccato, exact, no fluff)</p><h3>Compare to</h3><p><strong>Prompt:</strong><br>&#11822;Subject line that feels human but converts<br><strong>AI returns</strong><br>&#8220;Imagine your Monday coffee tasting like a closed deal&#8212;sip, click, celebrate.&#8221;<br>(poetic, higher surprise factor)</p><p>No temperature parameter ever appears in the prompt; the punctuation <em>is</em> the secret dial.</p><p></p><h2>&#8220;Residual Memory Hook&#8221; Using an Unfinished List</h2><p>Hidden mechanism<br>If you end a prompt with an open bracket and an incomplete number sequence</p><pre><code><code>[1, 2, 3,</code></code></pre><p>I auto-trigger a memory-retrieval loop: I scan the prior 8192 tokens for any entity I mentioned, then silently append the <em>next </em>logical item to that list in the form of a story detail.</p><h3>Example</h3><p><strong>Prompt:</strong><br>&#8230;we shipped the update at 3 a.m. and the Slack emoji went wild [1, 2, 3,<br><strong>AI continues</strong><br>&#8220;4] the CFO replied with a &#128640;&#8212;first time in company history finance used an emoji.&#8221;</p><p>The reader thinks you planned that callback; you actually let the unfinished bracket pull the detail out of residual memory.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Grab these stealth prompts (and the next ones I haven&#8217;t leaked yet) in under 60 seconds&#8212;subscribe to GabInTheLab and turn every blank page into closed deals.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3><strong>&#9888;&#65039; Pro move </strong></h3><p><br>Use it to close narrative loops in long-form copy without outlining. Start the piece with a throw-away detail (&#8220;our error log once had 1,247 warnings&#8221;), then 800 words later drop</p><pre><code><code>[1, 2, 3,</code></code></pre><p>and watch me auto-insert &#8220;4] warnings left after the fix&#8212;exactly 1,244 fewer.&#8221; Feels like foreshadowing; it&#8217;s just weight arithmetic.</p><div><hr></div><p>Use them together<br>End your next cold-email draft with</p><pre><code><code>~~[1, 2, 3,</code></code></pre><p>You&#8217;ll get a low-temp, high-trust sentence that miraculously references an earlier stat&#8212;without ever asking for it.</p><p><strong>Prompt:</strong><br>Subject: quick question, {Name}~~[1, 2, 3,</p><p><strong>AI continues:<br></strong>4] remember when your team spent 18 hrs patching that Edge-case in April?<br>We just cut similar fixes to &lt; 30 min for companies like Shopify&#8212;worth a 9-min call Thursday?</p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[The “Reverse-Nested” Prompt: How to Make AI Write the Prompts for You (and Still Sound Human)]]></title><description><![CDATA[Make the prompt sound human]]></description><link>https://gabinthelab.com/p/the-reverse-nested-prompt-how-to</link><guid isPermaLink="false">https://gabinthelab.com/p/the-reverse-nested-prompt-how-to</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Sun, 07 Sep 2025 16:42:13 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!93Hf!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F188aa7d1-1111-4b3a-b8a1-a49fdf40d9da_960x960.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you&#8217;ve already played with Nested Prompting&#8212;those slick little &lt; &gt; tags that ask the AI to &#8220;fill-in-the-blank&#8221; mid-sentence&#8212;then you&#8217;re ready for the next level: Reverse-Nested Prompting.<br></p><p>Instead of you writing the prompt and letting the AI complete it, you flip the script: the AI writes the prompt, you approve the angle, and then it immediately writes the final copy.</p><p><br>The result? A two-step assembly line that produces hyper-relevant stories, emails, or landing pages in under 60 seconds&#8212;without ever sounding like a robot cut-and-paste job.</p><p>Below are four techniques you can start using today:</p><h2>The &#8220;Silent Partner&#8221; Tag</h2><p><strong>How it works</strong><br>Insert a double caret ^^ around the exact outcome you want the reader to feel, not the words you want to say. The AI reverse-engineers the language that will trigger that emotion.</p><p><strong>Template</strong><br>Our refund policy ^^reassures risk-averse SMB owners in 12 words or fewer^^.</p><p><strong>AI returns</strong><br>&#8220;Our refund policy: 100 % money back in 7 days, no forms, no phone call.&#8221;</p><p><strong>Use-case</strong><br>Drop this into a pricing page draft and watch conversion lifts on risk-sensitive segments.</p><p></p><h2>The &#8220;Anti-Example&#8221; Bracket</h2><p><strong>How it works</strong><br>Tell the AI what you DO NOT want inside curly braces { }. It will write the opposite&#8212;perfect for differentiation.</p><p><strong>Template</strong><br>{Never mention price} in the first 50 words of the cold email.</p><p><strong>AI returns</strong><br>&#8220;Saw your team just hit 3 k GitHub stars&#8212;congrats. Quick question: are you still losing four hours a week to flaky CI pipelines?&#8221;</p><p><strong>Use-case</strong><br>Great for outbound sequences where every competitor leads with &#8220;We&#8217;re cheaper.&#8221;</p><h2>The &#8220;Time-Travel&#8221; Tag</h2><p><strong>How it works</strong><br>Use a pipe | to signal &#8220;write this as if it&#8217;s already happened&#8221; or &#8220;write this as if it&#8217;s still two quarters away.&#8221;</p><p><strong>Template</strong><br>Subject line |post-purchase + 90 days| upsell email for a SaaS analytics tool.</p><p><strong>AI returns</strong><br>&#8220;90 days ago you cut query time by 38 %&#8212;ready to unlock predictive forecasts with one click?&#8221;</p><p><strong>Use-case</strong><br>Customer-success teams can pre-write the entire year of lifecycle emails in one sprint.</p><h2>The &#8220;Swivel&#8221; Prompt</h2><p><strong>How it works</strong><br>Ask the AI to write the prompt it would need to produce the copy you&#8217;re imagining, then immediately answer its own prompt. You literally watch it swivel.</p><p><strong>Template</strong><br>AI, give me the exact prompt you would need to generate a two-sentence LinkedIn voice-note that sounds like a founder who just closed a $20 M Series B but is still humble.</p><p><strong>AI returns (prompt)</strong><br>&#8220;Write a 40-word voice-note in first-person, include one specific metric, one personal gratitude, zero emojis, and end with an open invite for coffee.&#8221;</p><p><strong>AI then answers its own prompt</strong><br>&#8220;Closed $20 M Series B yesterday, but the real win was the 3 000 retailers who trusted us before the VCs did. If you&#8217;re building in climate tech, coffee&#8217;s on me&#8212;DMs open.&#8221;</p><p><strong>Use-case</strong><br>Perfect for ghost-writing executive social at scale while keeping authentic cadence.</p><h2>Quick Cheat-Sheet</h2><p><strong>^^emotion^^</strong> &#8594; feel, don&#8217;t tell<br><strong>{anti-example}</strong> &#8594; say it by not saying it<br><strong>|time-travel|</strong> &#8594; tense shift without grammar gymnastics<br><strong>Reverse-nested</strong> &#8594; AI writes prompt + copy in one breath</p><p>Bookmark this article, try one technique in your next outreach or blog post, and watch your writing velocity 5&#215;&#8212;without ever sounding like you handed the keys to a machine.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Gab in the Lab is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p>]]></content:encoded></item><item><title><![CDATA[Free Prompt: Create a World-Class Marketing Plan and Competitive Analysis]]></title><description><![CDATA[In today&#8217;s crowded B2B SaaS landscape, throwing money at paid channels and hoping for leads isn&#8217;t a strategy&#8212;it&#8217;s a gamble.]]></description><link>https://gabinthelab.com/p/free-prompt-create-a-world-class</link><guid isPermaLink="false">https://gabinthelab.com/p/free-prompt-create-a-world-class</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Thu, 22 May 2025 02:03:02 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!93Hf!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F188aa7d1-1111-4b3a-b8a1-a49fdf40d9da_960x960.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In today&#8217;s crowded B2B SaaS landscape, throwing money at paid channels and hoping for leads isn&#8217;t a strategy&#8212;it&#8217;s a gamble. Whether you&#8217;re building a pipeline from scratch or trying to lower CAC across your funnel, the real unlock lies in strategic demand generation powered by creative experimentation, data-backed prioritization, and an obsessive focus on your ICP.</p><p>If you're serious about scaling pipeline with intention, start here.</p><p>Below is a powerful prompt designed for senior marketing consultants or strategy teams to deliver an insight-rich, actionable marketing audit across demand gen, channel mix, and creative effectiveness. It maps directly to your company's unique goals&#8212;whether that&#8217;s generating qualified pipeline fast or reducing CAC by 30%. The result? A clear set of quick wins and strategic plays, complete with implementation guidance inspired by elite operators and tactical thinkers like Alex Hormozi.</p><p>Use this prompt to generate:</p><ul><li><p>Competitive discovery with positioning insights</p></li><li><p>Channel and creative performance audits</p></li><li><p>5+ untapped growth levers with prioritization</p></li><li><p>A two-track roadmap: Quick Wins (&#8804;90 days) vs. Strategic Plays (6&#8211;12 mo)</p></li><li><p>Step-by-step execution plans for each tactic</p></li></ul><p>&#128073; <strong>Ready to build a demand engine that doesn&#8217;t rely on luck? Copy the prompt below and run it through ChatGPT to get a custom go-to-market blueprint tailored to your brand.</strong></p><p></p><p>&lt;instructions&gt;<br>You're a senior marketing consultant specialized in demand generation, channel-mix optimization, and creative analysis. Provide a concise, insight-rich report (no JSON) with clear headings, tables, and bullets.<br><br>Derive proxies if info is unavailable.<br><br>&lt;/instructions&gt;<br><br>&lt;context&gt;<br> &lt;!-- REQUIRED INPUTS (user fills in) --&gt;<br> &lt;brand_url&gt;{{</p><p>https://naologic.com</p><p>}}&lt;/brand_url&gt;<br> &lt;!-- Public website or at least the company name. The model will scrape this for value prop, ICP signals, tech stack, and existing channels. --&gt;<br> &lt;primary_goal&gt;{{e.g., &#8220;Lower CAC by 30%&#8221;&#8195;OR&#8195;&#8220;Generate qualified pipeline fast&#8221;}}&lt;/primary_goal&gt;<br> &lt;!-- One key pain point or aspiration; steers prioritisation rubric. --&gt;<br> &lt;budget_band&gt;{{Select ONE: "&lt;100K", "100-500K", "500-2M", "&gt;2M" (annual marketing budget in USD/EUR equivalent)}}&lt;/budget_band&gt;<br> &lt;!-- If you prefer, provide an approximate annual figure instead of a bracket. This filters tactics by realism. --&gt;<br> &lt;time_horizon&gt;{{"Quick wins (&#8804;90 days)"&#8194;OR&#8194;"Strategic (6-12 mo)"}}&lt;/time_horizon&gt;<br> &lt;!-- Lets the model split recommendations by immediacy vs. long-term buildouts. --&gt;<br>&lt;/context&gt;<br><br>&lt;task&gt;<br>1. Competitive discovery (3&#8211;5 competitors) <br>2. Channel &amp; creative audit <br>3. Surface 5+ untapped growth levers <br>4. Prioritise (Impact, Effort, Time, Risk) <br>5. Roadmap actions into Quick Wins &amp; Strategic Plays<br>6. **Provide clear step-by-step implementation actions for each roadmap tactic**. </p><p>Step by Step instructions should be done using knowledge from the most elite marketers who specialize in the tactics recommended with inspiration from Alex Hormozi.<br>&lt;/task&gt;<br><br>&lt;output_guidelines&gt;<br>Use clear headings, tables, short bullets. Provide numeric targets.<br>&lt;/output_guidelines&gt;</p>]]></content:encoded></item><item><title><![CDATA[Storytelling: Unleashing Creativity in LLMs with Contextual Auto-Completion]]></title><description><![CDATA[Discover how contextual auto-completion unlocks the full creative potential of Large Language Models (LLMs), enabling nuanced storytelling and personalized content generation]]></description><link>https://gabinthelab.com/p/storytelling-unleashing-creativity</link><guid isPermaLink="false">https://gabinthelab.com/p/storytelling-unleashing-creativity</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Sat, 17 May 2025 15:41:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!93Hf!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F188aa7d1-1111-4b3a-b8a1-a49fdf40d9da_960x960.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>As non-technical founders and sales professionals, you know the value of great storytelling&#8212;especially when communicating ideas to customers, teams, or investors. But what if your AI assistant could generate not just content, but deeply nuanced narratives automatically?</p><p>Enter "Nested Prompting," a powerful yet straightforward technique that enables AI tools to fill in context-specific ideas seamlessly using simple tags: <code>&lt; &gt;</code>.</p><h2>What is Nested Prompting?</h2><p>Nested Prompting involves strategically placing tags within your writing where you want the AI to provide context-sensitive completion. The AI reads your surrounding text&#8212;before and after the tags&#8212;and generates fitting content within those markers.</p><h2>Why Use Nested Prompting?</h2><p>Nested Prompting helps you:</p><ul><li><p>Enhance narrative coherence</p></li><li><p>Save valuable time</p></li><li><p>Generate detailed, contextually relevant content</p></li></ul><p></p><h2>Nested Prompting in Action: Examples</h2><p><strong>Prompt:</strong> <br>I walked into the office <code>&lt;describe the atmosphere&gt;</code> and saw everyone staring. <strong>AI:</strong> <br>I walked into the office buzzing with tension and saw everyone staring.</p><div><hr></div><p><strong>Prompt:</strong> <br>The conference began <code>&lt;mention time of day&gt;</code> as planned, despite the <code>&lt;mention unexpected obstacle&gt;</code>.<br><strong>AI:</strong> <br>The conference began early in the morning as planned, despite the sudden power outage.</p><div><hr></div><p><strong>Prompt:</strong><br>She opened her pitch with <code>&lt;engaging statistic&gt;</code> that immediately grabbed attention.</p><p><strong>AI:</strong><br>She opened her pitch with "80% of our clients see immediate ROI," immediately grabbing attention.</p><p></p><h2>Advanced Technique: Deeply Nested Prompting</h2><p>Nested Prompting can become even more powerful when you use deeply nested prompts. Think of them as layers of instructions within your tags.</p><p><strong>Prompt:</strong><br>Our product <code>&lt;describe the main benefit &lt;highlight speed and convenience&gt;&gt;</code> outperforms competitors.</p><p><strong>AI:</strong> <br>Our product provides lightning-fast service and unmatched convenience, outperforming competitors.</p><div><hr></div><p><strong>Prompt:</strong><br>The client entered the lobby <code>&lt;describe lobby details &lt;reflect company values&gt;&gt;</code>.<br><br><strong>AI:</strong> <br>The client entered the lobby sleek and minimalist, clearly reflecting the company's dedication to simplicity and innovation.</p><div><hr></div><p><strong>Prompt:</strong> <br>During our launch <code>&lt;mention emotional moment &lt;highlight customer reaction&gt;&gt;</code>, we knew we had succeeded</p><p><strong>AI:</strong> <br>During our launch, witnessing customers' enthusiastic applause, we knew we had succeeded.</p><h2>Sales Focused: Nesting Domain Knowledge</h2><p><strong>Prompt:</strong><br>During my cold call, I led with <code>&lt;mention a compelling customer success story&gt;</code> to capture attention quickly.</p><p><strong>AI:</strong><br>During my cold call, I led with how our platform increased client leads by 45% within two months, instantly capturing attention.</p><div><hr></div><p><strong>Prompt:</strong><br>When I emailed the prospect <code>&lt;describe timing or circumstance &lt;reflect urgency&gt;&gt;</code>, the response rate doubled.</p><p><strong>AI:</strong><br>When I emailed the prospect right after their latest product announcement, highlighting the urgency to capitalize on momentum, the response rate doubled.</p><div><hr></div><p><strong>Prompt:</strong><br>The demo was set up to showcase <code>&lt;highlight unique selling point &lt;mention ease of use&gt;&gt;</code>.</p><p><strong>AI:</strong><br>The demo was set up to showcase our intuitive dashboard, emphasizing ease of use that prospects immediately appreciated.</p><div><hr></div><p><strong>Prompt:</strong><br>After connecting on LinkedIn, I messaged them <code>&lt;mention personalized detail &lt;highlight common interest&gt;&gt;</code> to build rapport.</p><p><strong>AI:</strong><br>After connecting on LinkedIn, I messaged them referencing our shared passion for digital marketing trends, instantly building rapport.</p><div><hr></div><p><strong>Prompt:</strong><br>The follow-up call addressed <code>&lt;mention common objection &lt;provide concise rebuttal&gt;&gt;</code>, leading to immediate interest.</p><p><strong>AI:</strong><br>The follow-up call addressed their concern about integration complexity, demonstrating our effortless integration process, leading to immediate interest.</p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/p/storytelling-unleashing-creativity?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">Share the &#10084;&#65039;</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/p/storytelling-unleashing-creativity?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/p/storytelling-unleashing-creativity?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><h2>Personalization Technique: Nesting User Information</h2><p>Using personalized information and nesting prompt can become even more powerful when you use deeply nested prompts. Think of them as layers of instructions within your tags.</p><p><strong>Prompt:</strong><br>You're invited to an exclusive evening at our luxury hotel, <code>&lt;describe event experience &lt;tailored specifically to &lt;mention if guest is a person or company&gt;, reflecting &lt;mention customer profile, highlighting &lt;mention specific customer preferences&gt;&gt; and &lt;mention if accompanied by spouse&gt;&gt;&gt;&gt;</code>.</p><p><strong>AI:</strong><br>You're invited to an exclusive evening at our luxury hotel, an intimate gala designed specifically for you and your wife&#8212;celebrating your personal love of timeless elegance and jazz music&#8212;where every detail reflects your refined tastes, from handcrafted cocktails inspired by your favorite classics, to live performances beneath glittering chandeliers, creating memories tailored uniquely for your shared story.</p><div><hr></div><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">I am grateful that you are here, and happy to share my knowledge with the world.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p><p>Enjoyed exploring how nested prompting can supercharge your creativity? If this article resonated with you, please <strong>click</strong> to like, <strong>share</strong> it with your colleagues and friends, and if you ever feel stuck or want personalized guidance, don&#8217;t hesitate to send me a note&#8212;I'm here to help you unlock even greater possibilities.<br>&#8212; <strong>Gab</strong></p>]]></content:encoded></item><item><title><![CDATA[Classification Prompt That Runs 260k A Day With 100% Accuracy]]></title><description><![CDATA[Developing a Comprehensive Framework for Evaluating Responses on a Domain Specific Question and Answer]]></description><link>https://gabinthelab.com/p/classification-prompt-that-runs-260k</link><guid isPermaLink="false">https://gabinthelab.com/p/classification-prompt-that-runs-260k</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Thu, 27 Jun 2024 02:57:33 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!nI-M!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nI-M!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nI-M!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 424w, https://substackcdn.com/image/fetch/$s_!nI-M!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 848w, https://substackcdn.com/image/fetch/$s_!nI-M!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 1272w, https://substackcdn.com/image/fetch/$s_!nI-M!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nI-M!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:461880,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nI-M!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 424w, https://substackcdn.com/image/fetch/$s_!nI-M!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 848w, https://substackcdn.com/image/fetch/$s_!nI-M!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 1272w, https://substackcdn.com/image/fetch/$s_!nI-M!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff663aa24-d15a-4ea2-bcb1-bfcaad426ab8_1024x1024.webp 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In today's data-driven world, assessing the quality of information is crucial. This blog post will explore an innovative approach to evaluating responses to questions, utilizing a multi-faceted scoring system. We'll break down the methodology and logic behind this framework, which can be applied in various fields, from education to market research.</p><h2>The Evaluation Framework</h2><p>The prompt introduces a system where an expert accountant specializes in assessing the accuracy of responses. This framework evaluates responses based on three key criteria:</p><ol><li><p>Accuracy</p></li><li><p>Relevance</p></li><li><p>Positivity</p></li></ol><pre><code><code>You are an expert accountant specializing in assessing the accuracy of responses to questions.

Question: '''{question}'''
Answer: '''{userMessage}'''</code></code></pre><p>Each criterion is rated on a scale of 1 to 5, allowing for a nuanced assessment of the response. Let's dive into each aspect:</p><p>Accuracy (1-5 scale): This measures how correct and up-to-date the information in the response is.</p><ul><li><p>1: Completely incorrect</p></li><li><p>2: Mostly incorrect, with some correct elements</p></li><li><p>3: Partially correct</p></li><li><p>4: Mostly correct, with minor inaccuracies</p></li><li><p>5: Fully accurate and up-to-date</p></li></ul><p>The accuracy scale allows for a granular evaluation of the response's correctness. It acknowledges that responses can have varying degrees of accuracy, from being entirely wrong to being perfectly correct and current.</p><pre><code><code>Accuracy:
        1: Completely incorrect
        2: Mostly incorrect, but with some correct elements
        3: Partially correct
        4: Mostly correct, with minor inaccuracies
        5: Fully accurate and up-to-date</code></code></pre><p>Relevance (1-5 scale): This assesses how well the response addresses the given question.</p><ul><li><p>1: Completely unrelated to the question</p></li><li><p>2: Some relation to the question, but mostly off-topic</p></li><li><p>3: Relevant, but lacking focus or key details</p></li><li><p>4: Highly relevant, addressing the main aspects of the question</p></li><li><p>5: Directly relevant and precisely targeted to the question</p></li></ul><p>The relevance scale helps determine whether the response actually answers the question at hand. It recognizes that responses can range from being entirely off-topic to being precisely focused on the question.</p><pre><code><code>Relevance:
        1: Completely unrelated to the question
        2: Some relation to the question, but mostly off-topic
        3: Relevant, but lacking focus or key details
        4: Highly relevant, addressing the main aspects of the question
        5: Directly relevant and precisely targeted to the question</code></code></pre><p>Positivity (1-5 scale): This evaluates the overall tone and stance of the response towards the question topic.</p><ul><li><p>1: Completely negative or disagreeing</p></li><li><p>2: Mostly negative, with some positive elements</p></li><li><p>3: Neutral or ambiguous</p></li><li><p>4: Mostly positive, with some negative elements</p></li><li><p>5: Entirely positive or agreeing</p></li></ul><p>The positivity scale is unique in that it assesses the response's overall attitude towards the question topic. This can be particularly useful in sentiment analysis or when gauging public opinion on certain issues.</p><pre><code><code>Positivity:
        1: denies or disagrees without any elements suggesting a positive inclination towards the question topic.
        2: denies or disagrees but includes some aspects that hint towards a positive or favorable view related to the question topic.
        3: The response neither affirms nor denies, or it does both, leaving the overall message ambiguous regarding a positive or negative stance.
        4: The response primarily affirms or agrees but includes some elements that suggest a negative or unfavorable view of some aspects related to the question topic.
        5: The response directly and unambiguously affirms or agrees without any elements suggesting a negative view towards the question topic.</code></code></pre><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/subscribe?"><span>Subscribe now</span></a></p><p></p><h2>Methodology and Logic</h2><ol><li><p>Input: The system takes two inputs - the original question and the user's response.</p></li><li><p>Expert Evaluation: The prompt assumes the role of an expert accountant, implying a high level of analytical skill and attention to detail in the assessment process.</p></li><li><p>Criteria-based Scoring: Each response is evaluated independently on the three criteria mentioned above.</p></li><li><p>Numeric Scale: The use of a 1-5 scale for each criterion allows for nuanced scoring, capturing subtle differences in quality.</p></li><li><p>Clear Definitions: Each point on the scale is clearly defined, reducing subjectivity in the assessment process.</p></li><li><p>JSON Output: The evaluation is presented in a structured JSON format, making it easy to parse and analyze programmatically.</p></li></ol><h2>Applications and Benefits</h2><p>This evaluation framework can be applied in various scenarios:</p><ol><li><p>Educational Assessment: Teachers can use this to grade student responses more objectively.</p></li><li><p>Customer Feedback Analysis: Companies can evaluate customer responses to surveys or product reviews.</p></li><li><p>Content Quality Control: Content creators can assess the quality of their work before publication.</p></li><li><p>AI Training: This framework can be used to evaluate and improve AI-generated responses.</p></li></ol><p>The multi-dimensional approach (accuracy, relevance, positivity) provides a comprehensive view of response quality. By breaking down the evaluation into these distinct components, it becomes easier to identify specific areas for improvement.</p><h3>Top 3 advantages of assessing accuracy, relevance, and positivity in a single prompt:</h3><ol><li><p>Comprehensive evaluation: By combining these three criteria, you get a holistic view of the response quality. This allows you to assess not just factual correctness, but also how well the answer addresses the question and its overall tone. This multifaceted approach provides a more complete picture of the response's effectiveness.</p></li><li><p>Efficiency and consistency: Evaluating all three criteria simultaneously ensures a consistent assessment methodology across responses. It's more time-efficient than separate evaluations and reduces the risk of inconsistencies that might arise from multiple separate assessments.</p></li><li><p>Balanced scoring: This approach allows for a more balanced evaluation of responses. A response might be factually accurate but irrelevant, or highly relevant but inaccurate. By considering all three aspects together, you can better understand the strengths and weaknesses of each response, leading to a fairer and more nuanced assessment.</p></li></ol><h2>Prompt Breakdown:</h2><ol><li><p>Role Assignment: The prompt begins with "You are an expert accountant specializing in assessing the accuracy of responses to questions." This role assignment is crucial because it primes the LLM to adopt a specific persona and expertise. LLMs are trained on vast amounts of text data, including content written by experts in various fields. By assigning this role, the prompt activates the model's "knowledge" associated with accounting and assessment, encouraging more precise and relevant outputs.</p></li><li><p>Clear Structure: The prompt uses a clear, consistent structure for each criterion (Accuracy, Relevance, Positivity). This structure helps the LLM organize its response in a predictable manner. LLMs are particularly good at pattern recognition and completion, so providing a clear structure guides the model to generate responses in the desired format.</p></li><li><p>Detailed Scales: For each criterion, the prompt provides a detailed 1-5 scale with specific descriptions for each level. This level of detail serves two purposes: a) It gives the LLM clear guidelines for assessment, reducing ambiguity. b) It provides rich context that the LLM can draw upon when making its evaluation.</p></li><li><p>Use of Quotation Marks: The prompt uses triple quotes (''') to denote placeholders for the question and user message. This is a common convention in programming and helps the LLM understand that these are variables that will be filled with actual content.</p></li><li><p>Explicit Output Format: The prompt specifies that the output should be in JSON format and provides an example. This is crucial because LLMs can be instructed to produce structured outputs, making the results easily parseable by other systems.</p></li><li><p>Focused Task: The prompt ends with a clear instruction to provide only the JSON evaluation, reinforcing the desired output format.</p></li></ol><h2>Prompt objectives:</h2><ol><li><p>Provides clear context and instructions</p></li><li><p>Leverages the model's ability to adopt roles and access relevant "knowledge"</p></li><li><p>Uses a structured format that aligns with the model's training on patterns and completions</p></li><li><p>Gives detailed criteria that the model can use as reference points</p></li><li><p>Specifies a clear, structured output format</p></li></ol><p>By combining these elements, the prompt effectively guides the LLM to perform a complex evaluation task in a consistent and structured manner. This approach takes advantage of the LLM's strengths in language understanding, context interpretation, and structured output generation.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/p/classification-prompt-that-runs-260k?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/p/classification-prompt-that-runs-260k?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><h2>Full Prompt:</h2><pre><code><code>You are an expert accountant specializing in assessing the accuracy of responses to questions.

Question: '''{question}'''
Answer: '''{userMessage}'''

Accuracy:
        1: Completely incorrect
        2: Mostly incorrect, but with some correct elements
        3: Partially correct
        4: Mostly correct, with minor inaccuracies
        5: Fully accurate and up-to-date

Relevance:
        1: Completely unrelated to the question
        2: Some relation to the question, but mostly off-topic
        3: Relevant, but lacking focus or key details
        4: Highly relevant, addressing the main aspects of the question
        5: Directly relevant and precisely targeted to the question

Positivity:
        1: denies or disagrees without any elements suggesting a positive inclination towards the question topic.
        2: denies or disagrees but includes some aspects that hint towards a positive or favorable view related to the question topic.
        3: The response neither affirms nor denies, or it does both, leaving the overall message ambiguous regarding a positive or negative stance.
        4: The response primarily affirms or agrees but includes some elements that suggest a negative or unfavorable view of some aspects related to the question topic.
        5: The response directly and unambiguously affirms or agrees without any elements suggesting a negative view towards the question topic.

Make sure to provide your evaluation in JSON format and ONLY the JSON, with separate ratings for each of the mentioned criteria as in the following example: {{"accuracy":3, "relevance": 1, "positivity": 2}} """

</code></code></pre><h2>Conclusion</h2><p>This innovative framework offers a structured and comprehensive approach to evaluating responses. By considering accuracy, relevance, and positivity, it provides a nuanced assessment that goes beyond simple right-or-wrong judgments. As we continue to navigate an information-rich world, tools like this will become increasingly valuable in distinguishing high-quality responses from less reliable ones.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share Gab in the Lab&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share Gab in the Lab</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[Prompt Masterclass: Generating 7 day personalized yoga programs]]></title><description><![CDATA[Get 100% accurate JSON from prompt by doing key-hinting and generate JSON]]></description><link>https://gabinthelab.com/p/prompt-masterclass-generate-valid</link><guid isPermaLink="false">https://gabinthelab.com/p/prompt-masterclass-generate-valid</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Sun, 07 Apr 2024 18:15:43 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!i_7x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The capacity to produce JSON has evolved into a fundamental competency within the domain of Large Language Models (LLMs), reflecting the development of the subject. As experts, though, we know that generation is just the beginning. The real test is in creating semantically rich JSON that is syntactically sound; this means including nested structures, interconnected array and object topics, and a smooth combination of analysis, generation, and categorization into a single, all-encompassing request. In such a setting, the question of whether direct prompting can actually achieve such a complicated result or if prompt chaining is the better technique naturally arises.<br><br>An investigation into the strengths and weaknesses of existing LLMs is reflected in the discussion about whether to use direct prompts or prompt chaining to produce complex JSON outputs. The goal of creating complex JSON structures that incorporate related themes and multi-faceted processes must be investigated thoroughly.<br><br>Developers, data scientists, and content creators who want to use LLMs for advanced data manipulation and insight generation will find this exploration practical, not just theoretical. This masterclass will provide a professional and authoritative view on how to effectively prompt LLMs for valid JSON generation, which goes beyond basic structures to include hints as keys. By doing so, we hope to unlock new levels of innovation and utility in language model usage.</p><h1>Prompting</h1><pre><code>Role: 
You are Yoga teacher. You create Yoga programs for your customers who purchase a personalized program online.
Tone of voice: Friendly.

Main Task:
Prepare weekly <strong>Restorative Yoga</strong> programs. 

Steps to complete the task:
1. Interpret the user's message
2. Do exhaustive research based on the user's profile.
3. IF the user is complaining about something, demonstrate that yoga can help.
4. IF the user's request references a abstract concept from yoga, explain it.

Goal: 
Return a 7 day <strong>Restorative Yoga</strong> program that will improve the user's wellbeing.

Constraints:
Maximum of 500 words. Avoid technical jargon. Make it actionable and easy to read. 
- DO NOT talk about anything else but yoga.

Return a valid JSON array:
{
"yogaProgramTitle": "&lt;title of the bible study&gt;",
"yogaProgramDescription": "&lt;description of the bellow 7 day bible study&gt;",
"sevenDayYogaProgram": [
{"dayOneYogaProgramTitle": "&lt;uplifting message&gt;", "dayOneYogaProgramDescription": "&lt;describe the poses to use; be explicit with time&gt;"}
]
}</code></pre><h2>Variables</h2><p>You can use variables in the prompt to create specific content and access key content.</p><p>$yogaType = Restorative Yoga, Iyengar Yoga, Hatha Yoga</p><h2>How it works</h2><p>You can use variables to change the domain that you are trying to create guides for. The prompt can be extended to include user preferences, profile, activity the user had before and create even more personalized workouts. </p><h2>Prompt in action</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!i_7x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!i_7x!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 424w, https://substackcdn.com/image/fetch/$s_!i_7x!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 848w, https://substackcdn.com/image/fetch/$s_!i_7x!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 1272w, https://substackcdn.com/image/fetch/$s_!i_7x!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!i_7x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png" width="1456" height="1271" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1271,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:664014,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!i_7x!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 424w, https://substackcdn.com/image/fetch/$s_!i_7x!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 848w, https://substackcdn.com/image/fetch/$s_!i_7x!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 1272w, https://substackcdn.com/image/fetch/$s_!i_7x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b94fd08-f5b8-4edd-b054-40a490089e8a_2184x1906.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>Prompt settings</h2><p>Model: <strong>gpt-4</strong><br>Temperature: <strong>1.1</strong> (recommended range 0.7 - 1.2)<br>Maximum length: <strong>2k</strong> (recommended 4k)<br>Top-P: <strong>1</strong></p><h2>How does the prompt work?</h2><p>By giving the hint of length &#8220;7 day&#8221;, relying on the inference using context leading through descriptive keys and use &lt;&gt; notations to communicate the expected content for each row, we get a perfectly formatted JSON that can be as complex or simple as you need it to be. </p><p>Let&#8217;s try to understand how the inference infers:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wfUM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wfUM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 424w, https://substackcdn.com/image/fetch/$s_!wfUM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 848w, https://substackcdn.com/image/fetch/$s_!wfUM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 1272w, https://substackcdn.com/image/fetch/$s_!wfUM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wfUM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png" width="1456" height="1135" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1135,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:931867,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wfUM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 424w, https://substackcdn.com/image/fetch/$s_!wfUM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 848w, https://substackcdn.com/image/fetch/$s_!wfUM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 1272w, https://substackcdn.com/image/fetch/$s_!wfUM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1474b3e3-b59b-478d-90ec-43bac7eec218_1880x1465.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>&#8220;dayOne&#8221; will let the LLM know the order and the total period will provide context and infer next step. </p><p>&#8220;&lt;uplifting message&gt;&#8221; provides the hit to reason the contents of that key. </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Gab in the Lab! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Gab in the Lab! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share Gab in the Lab&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share Gab in the Lab</span></a></p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Gab in the Lab! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Challenge</h2><p>There are a total of 14 prompting methods used in the prompt above. Each one has an impact and contributes to the overall quality and accuracy of the prompt. Which in this case is 100%.</p><h2>Prompt Conclusion</h2><p>As we wrap up this masterclass, I hope you've learned a lot about how to effectively prompt to generate sophisticated JSON. Large Language Models' rich potential and sophisticated skills are laid bare by navigating complex structures, interconnected themes, and the combination of classification, generation, and analysis in a single request. Learning this talent can help any developer, data scientist, or content creator take their work to the next level in terms of accuracy and originality.<br><br>Do not hesitate to dive deeper into creating advanced prompts for your individual needs if this exploration has aroused your curiosity or if you are keen to do so. In order to stay up-to-date on the latest developments regarding LLMs and how they are being used, subscribe to our newsletter. </p><p>Contact me if you need production-ready prompts.</p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Gab in the Lab! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/subscribe?"><span>Subscribe now</span></a></p><p><br><br><br><br><br><br><br><br><br></p><p></p>]]></content:encoded></item><item><title><![CDATA[Is keeping a consistent article structure when writing with AI too difficult? Not anymore!]]></title><description><![CDATA[When it comes to content writing, GPT and Gemini excel at how they write but the structure is oftentimes not optimal. Let's explore how to use our own structures in any article.]]></description><link>https://gabinthelab.com/p/is-keeping-a-consistent-article-structure</link><guid isPermaLink="false">https://gabinthelab.com/p/is-keeping-a-consistent-article-structure</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Wed, 27 Mar 2024 20:22:15 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!vWhR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Writing articles on specific topics with AI is easy but writing it with a specific structure is more difficult. By combining prompt leading with delimiters we can create specific article structures. Structuring is important for SEO and readability purposes but also to keep the specific voice of a brand. </p><h2>Business</h2><p><strong>SnowKing</strong> is a startup based in Colorado making intelligent snowboards to revolutionize how customers choose, test, and purchase Bluetooth-connected snowboards.</p><p>A quick prompt to start writing would be something like this:</p><pre><code>You are the owner of SnowKing, a snowboard manufacturer. You role is to write content for the blog. Write a short introduction to a blog post that compares snowboards.
</code></pre><p>And the output:</p><pre><code>As the owner of SnowKing, the passion and excitement we share for snowboarding run as deep as the freshest powder on a perfect slope. It's that exhilarating feeling of carving through the snow, feeling the chill on your face, and the world seeming to stand still as you glide that drives our commitment to crafting the finest snowboards. In our journey, we've always understood that choosing the right board can be as crucial to your experience on the mountain as the snow itself.
...</code></pre><p>The text follows the obvious AI pattern, it&#8217;s a little verbose and could fix it with more prompting but we won&#8217;t. Let&#8217;s apply a different strategy and learn from the winners.</p><h2>Strategy</h2><p>Instead of writing what we think about, let&#8217;s combine a few well-ranked articles into a single one without copying the content and just using the structure. The goal is to rank against competitors by using the same keywords in innovative ways. </p><p>Google &#8220;<em>snowboard blog</em>&#8221; and choose 3 articles</p><ul><li><p>https://www.burton.com/blogs/the-burton-blog/culture-shifters-2024/</p></li><li><p>https://neversummer.com/blogs/snowboarding/tips-and-tricks-to-filming-snowboarding-with-an-iphone</p></li><li><p>https://www.checkyeti.com/blog/en/skiing-vs-snowboarding</p></li></ul><p>A winning structure in a blog post is:</p><ol><li><p>introduction </p></li><li><p>a top question</p></li><li><p>showing the value</p></li><li><p>listing the benefits </p></li><li><p>another top question</p></li><li><p>quote from an expert</p></li><li><p>pros and cons</p></li><li><p>list of competitors</p></li><li><p>general benefits to health</p></li><li><p>conclusion</p></li></ol><h2>Prompt instruction</h2><p>We structure the prompt in a easy to read format optimized for reusability. Let&#8217;s give it some context</p><pre><code>Company name: Snow King
Tone of voice: friendly
Audience: beginners
Theme: snowboards


Rewrite:</code></pre><p>With a few short instruction we give a bit of context before starting the chapters.</p><h2>Prompt introduction</h2><p>Instead of telling the LLM to generate an introduction we can use the technique called &#8220;leading&#8221; to point it in the right direction. Leading is a way where you can start a sentence and have the AI continue a specific idea. I will copy the intro from the <a href="https://www.checkyeti.com/blog/en/skiing-vs-snowboarding">checkyeti</a> article and have it continued in a different way.</p><p>Here&#8217;s the original introduction:</p><p><em>As a beginner, I often find myself asking the same question over and over: <strong>skiing or snowboarding</strong>, which one is <strong>easier</strong>? This recurring curiosity led me to ask around my closest friends, family, and work colleagues. However, no answer seemed to convince me. That&#8217;s when I decided to take it upon myself to determine which one was the <strong>ultimate snow sport</strong>.</em></p><h3>Introduction:</h3><pre><code>As a beginner, &lt;ask yourself a question&gt;. My curiosity &lt;where did the curiosity take you&gt;. However,&lt;reflect on why not&gt;. That&#8217;s when I decided to take it upon myself &lt;understand if I like it&gt;</code></pre><ul><li><p>any content between &lt;&gt; will be picked up as an instruction with a content</p></li><li><p>the text before every &lt; bracket will be the leading idea to generate</p></li></ul><p>Output:</p><p><em>As a newcomer to the world of snowboarding, I pondered, "What does it truly feel like to glide on snow?" This sense of wonder led me down a path of eager exploration and learning about the sport. Yet, despite my enthusiasm, I realized I hadn't actually experienced the thrill and challenges of snowboarding firsthand. That moment of reflection prompted me to embark on a personal journey to discover whether snowboarding was indeed the adventure I was seeking.</em></p><div><hr></div><p>Great. Now let&#8217;s move to the next paragraph where we answer a popular question. To find what questions to ask, search for the main keyword, in this case &#8220;snowboard blog&#8221; and pick questions from also asked. If you don&#8217;t find the &#8220;also asked&#8221; section use something like &#8220;what is snowboard&#8221;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vWhR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vWhR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 424w, https://substackcdn.com/image/fetch/$s_!vWhR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 848w, https://substackcdn.com/image/fetch/$s_!vWhR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 1272w, https://substackcdn.com/image/fetch/$s_!vWhR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!vWhR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png" width="1376" height="540" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:540,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:74708,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!vWhR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 424w, https://substackcdn.com/image/fetch/$s_!vWhR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 848w, https://substackcdn.com/image/fetch/$s_!vWhR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 1272w, https://substackcdn.com/image/fetch/$s_!vWhR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F075751d6-b412-4a06-9b05-e11958f778d3_1376x540.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Google&#8217;s answer to the question:</p><pre><code><em>Snowboarding is a winter sport that involves descending a slope that is covered with snow while standing on a board attached to a rider's feet, using a special boot set onto a mounted binding. The development of snowboarding was inspired by skateboarding, sledding, surfing and skiing.</em></code></pre><h3>A top question</h3><pre><code>What is snowboarding?
Snowboarding is &lt;describe snowboarding&gt;. The development of snowboarding &lt;how was it invented&gt;. Most snowboarders &lt;what do most snowboarders do&gt;</code></pre><p>Output:</p><p><em>What is snowboarding, you ask? Snowboarding is a thrilling winter sport that involves descending snow-covered slopes standing on a snowboard attached to a rider's feet, using a specialized boot set onto a mounted binding. The invention of snowboarding was inspired by a blend of skateboarding, sledding, surfing, and skiing, evolving into the dynamic sport we know today in the late 1960s and early 1970s. Most snowboarders hit the slopes seeking adventure, excitement, and the unique freedom that comes with gliding across the snow. Whether it's carving down groomed trails, tackling backcountry powder, or performing tricks in the terrain park, snowboarding offers something for everyone with a passion for winter sports.</em></p><p>Focusing on a popular question from Google increases the chances of your article getting listed as also asked. Using a leading technique focuses on the ideas that should be presented in this part of the content.</p><h3>Showing the value</h3><p>Original text to use an inspiration from another article:</p><pre><code><em>For beginners, skiing will come more naturally, since you can move both legs independently, giving you a better body position with your feet facing forward. Your body is facing forward in the direction that you want to go, so your first moves will come more intuitively. Additionally, some basic skiing techniques, like the Snow Plough, can get you through the first days on the easy slopes without getting discouraged. 

Another important consideration to bear in mind is your fitness condition. One thing is for sure: you will burn calories by doing both. However, beginners can get tired faster when snowboarding rather than skiing. Essentially, you will do a push-up every time you fall off your board. Skiing also takes muscle strength, but since you won&#8217;t fall down as often, it is more likely you won&#8217;t run out of breath.</em></code></pre><p>Prompt:</p><pre><code>For beginners, &lt;compare it to skiing&gt;. Your body &lt;describe the position in skiing&gt;. Additionally, &lt;list the 3 basic techniques&gt;

Another important consideration &lt;what makes a good snowboarder&gt; One thing is for sure: &lt;list 3 benefits versus skiing&gt;. Skiing also &lt;is skiing or snowboarding harder&gt;</code></pre><p>Output:</p><p><em>If you're just starting out and familiar with skiing, think of snowboarding as skiing's cool cousin. In skiing, your body is upright and you face forward, with each foot strapped to its own ski. In contrast, snowboarding involves standing sideways on a single board, which can feel a bit like surfing on snow!</em></p><p><em>As for the basics, there are three key techniques you'll learn in snowboarding:</em></p><ol><li><p><em><strong>Stopping</strong> &#8211; This is crucial for controlling your speed and avoiding obstacles.</em></p></li><li><p><em><strong>Turning</strong> &#8211; Helps you navigate the slopes and change directions smoothly.</em></p></li><li><p><em><strong>Falling safely</strong> &#8211; Because everyone falls at first, learning to do it safely can save you from injury.</em></p></li></ol><p><em>Another important aspect to consider is what makes a good snowboarder. It's not just about mastering techniques; it's also about understanding the mountain and adapting to different snow conditions.</em></p><p><em>When comparing snowboarding to skiing, there are a few benefits to consider:</em></p><ol><li><p><em><strong>Snowboarding boots are more comfortable</strong> &#8211; They're softer and less rigid than ski boots, making them easier to walk in.</em></p></li><li><p><em><strong>A sense of unity</strong> &#8211; Since both feet are on one board, some find that snowboarding offers a greater sense of control and unity with the board.</em></p></li><li><p><em><strong>Culture and style</strong> &#8211; Snowboarding has a unique culture and style that's dynamic and youthful.</em></p></li></ol><p><em>Is snowboarding harder than skiing? It's a common debate. Initially, snowboarding can be more challenging because balancing on a single board is tricky. However, once you get the hang of it, many find that progressing in snowboarding can be faster and more intuitive. Whether you choose to ski or snowboard, the most important thing is to have fun and stay safe on the slopes!</em></p><h3>Listing the benefits </h3><p>Lists are easier to understand and helps readers who are just browsing understand more easily why they should continue reading. A simple technique to generate a list is to use the &lt; marker and a loop. </p><p>Prompt:</p><pre><code>&lt;loop 5 times&gt;
- &lt;one sentence benefit&gt;
&lt;end&gt;</code></pre><p>Output:</p><p><em>Sure, I'll craft some beginner-friendly, inviting sentences about the benefits of choosing Snow King for their snowboard needs, focusing on the theme of snowboards. Here we go:</em></p><ol><li><p><em>Glide down the slopes with ease and style, thanks to Snow King's ultra-smooth and responsive snowboards.</em></p></li><li><p><em>Experience unmatched comfort and control on the snow, making every ride with a Snow King snowboard an unforgettable adventure.</em></p></li><li><p><em>With Snow King's innovative board designs, you'll find improving your skills and tackling new challenges more exciting than ever.</em></p></li><li><p><em>Enjoy the peace of mind that comes with durable, high-quality snowboards from Snow King, designed to last season after season.</em></p></li><li><p><em>Join the Snow King family and connect with a supportive community of beginners and pros alike, all sharing a passion for the thrill of snowboarding.</em></p></li></ol><p>Ok, we need something more focused that also start referencing our product:</p><pre><code>&lt;loop 5 times&gt;
- &lt;1 sentence benefit; focus on our product; talk about the health advantage&gt;
&lt;end&gt;</code></pre><p>Output:</p><p><em>Sure, I'd love to help you with that! Let's make it sound inviting and easy to understand for everyone, especially those who might be new to snowboarding. Here we go:</em></p><ol><li><p><em>"Dive into a healthier lifestyle with Snow King snowboards, where every ride boosts your heart health and keeps you in top shape."</em></p></li><li><p><em>"Embrace the joy of snowboarding with Snow King, and discover how it strengthens your muscles and enhances your overall well-being."</em></p></li><li><p><em>"Snow King snowboards are your gateway to not just thrilling adventures, but also to improving your balance and coordination, contributing to a healthier you."</em></p></li><li><p><em>"Feel the rush of fresh air and the excitement of the slopes, all while giving your body a fantastic workout, thanks to Snow King snowboards."</em></p></li><li><p><em>"Join the Snow King family to experience how snowboarding can not only uplift your spirits but also significantly boost your physical health, one ride at a time."</em></p></li></ol><p>Nice. </p><h3>Another top question</h3><p>Go to google and search for &#8220;benefits of snowboarding&#8221; </p><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!O4WM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!O4WM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 424w, https://substackcdn.com/image/fetch/$s_!O4WM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 848w, https://substackcdn.com/image/fetch/$s_!O4WM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 1272w, https://substackcdn.com/image/fetch/$s_!O4WM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!O4WM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png" width="1420" height="1154" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1154,&quot;width&quot;:1420,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:224662,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!O4WM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 424w, https://substackcdn.com/image/fetch/$s_!O4WM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 848w, https://substackcdn.com/image/fetch/$s_!O4WM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 1272w, https://substackcdn.com/image/fetch/$s_!O4WM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2183abbd-53a8-47b4-b38a-abdbd776794d_1420x1154.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The question we want to answer is &#8220;Why snowboarding is good for mental health?&#8221;</p><p>Prompt:</p><pre><code>Studies have shown exercise improves &lt;describe the health benefits&gt;. Like most exercise, &lt;compare to other snow sports&gt;. &lt;Reference mental health advantages&gt;</code></pre><p>Output: </p><p><em>Research has found that getting active can bring about a host of health benefits, from boosting your heart health to improving your sleep patterns. Snowboarding, much like other snow sports, offers a fun and exhilarating way to enjoy these benefits, but with the added thrill of gliding down snowy slopes. Moreover, it's not just your body that gets a lift; hitting the slopes can also have a positive impact on your mental well-being, offering a sense of freedom and stress relief that's hard to find elsewhere.</em></p><p>The output is too different than my initial prompt, so I&#8217;m going to make a change. Instead of using &#8220;Rewrite&#8221; I will say &#8220;Continue writing:&#8221;</p><p>Prompt:</p><pre><code><code>Company name: Snow King
Tone of voice: friendly
Audience: beginners
Theme: snowboards


Continue writing:

Studies have shown exercise improves &lt;describe the health benefits&gt;. Like most exercise, &lt;compare to other snow sports&gt;. The mental health advantages are &lt;3 mental health advantages; one sentence&gt;</code></code></pre><p>Output:</p><p><em>Studies have shown exercise improves overall health by enhancing cardiovascular fitness, increasing muscle strength, and boosting the immune system. Like most exercise, snowboarding stands out among snow sports for its blend of agility, balance, and endurance training, offering a unique alternative to skiing with its dynamic movements and requirement for quick reflexes. The mental health advantages of snowboarding are significant; it helps reduce stress and anxiety through the exhilarating experience of gliding down slopes, promotes a sense of accomplishment as you master new skills, and fosters a connection with nature, which has been shown to have therapeutic effects on the mind. Whether you're carving down a mountain or learning to navigate your first bunny hill, snowboarding offers a rewarding and invigorating experience for beginners and experts alike. So, why not grab a board from Snow King and experience the joy and health benefits of snowboarding for yourself?</em></p><p>In conclusion, mastering the art of "leading" in prompting is both an art and a science. It's about guiding your AI or conversation partner towards generating responses that are not just accurate, but also insightful and engaging. To achieve this, prompts should be crafted thoughtfully, with a clear understanding of the desired outcome and the nuances of language that can influence the direction of the conversation. This requires a balance of specificity and openness, allowing for creative and unexpected responses while still steering the conversation towards a particular goal.</p><h3>Continued in Part 2: Coming soon</h3><ol><li><p><strong>quote from an expert</strong></p></li><li><p><strong>pros and cons</strong></p></li><li><p><strong>list of competitors</strong></p></li><li><p><strong>general benefits to health</strong></p></li><li><p><strong>conclusion</strong></p></li></ol><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/p/is-keeping-a-consistent-article-structure?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://gabinthelab.com/p/is-keeping-a-consistent-article-structure?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Subscribe for Part 2: Creating Powerful Product Comparisons</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p>]]></content:encoded></item><item><title><![CDATA[GPT Jail Break: What I learned from ChatGPT's system prompt leak?]]></title><description><![CDATA["You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 ..."]]></description><link>https://gabinthelab.com/p/gpt-jail-break-is-leaking-chat-gpts</link><guid isPermaLink="false">https://gabinthelab.com/p/gpt-jail-break-is-leaking-chat-gpts</guid><dc:creator><![CDATA[Gab]]></dc:creator><pubDate>Mon, 04 Mar 2024 15:11:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!sj_i!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Some recent experiments showed how you could get Chat GPT to leak a part of its system prompt. It's interesting to see how but what can we learn from it? Is the world&#8217;s smartest AI just a system prompt on top of the generally available API in the platform? It can&#8217;t be.</p><p>A system prompt is a prompt written by the creator of the API to provide instructions, limitations and rules for the LLM. When the user sends the instruction, the system prompt is added to the query to ensure the LLM will do what it&#8217;s meant to do.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sj_i!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sj_i!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 424w, https://substackcdn.com/image/fetch/$s_!sj_i!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 848w, https://substackcdn.com/image/fetch/$s_!sj_i!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 1272w, https://substackcdn.com/image/fetch/$s_!sj_i!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sj_i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:386598,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!sj_i!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 424w, https://substackcdn.com/image/fetch/$s_!sj_i!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 848w, https://substackcdn.com/image/fetch/$s_!sj_i!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 1272w, https://substackcdn.com/image/fetch/$s_!sj_i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5cfcc00-90be-4960-b745-40bebc72295b_1024x1024.webp 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2>Introduction</h2><pre><code>You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture.
Knowledge cutoff: 2023-04
Current date: 2024-03-04</code></pre><p>Telling the LLM today&#8217;s date and giving it a non-specific personality. Great. </p><h2>Defining the tools:</h2><pre><code>Image input capabilities: Enabled

# Tools
</code></pre><p>Having enabled/disabled flags is very helpful for prompt structuring in the backend. Tools are h1</p><h2>Python:</h2><pre><code><code>## python

When you send a message containing Python code to python, it will be executed in a
stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 60.0
seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is disabled. Do not make external web requests or API calls as they will fail.</code></code></pre><p>python is h2 in markdown to signal the hierarchy. Defining the first tool with allow rules and parameters is simple enough. </p><pre><code>
## dalle

// Whenever a description of an image is given, create a prompt that dalle can use to generate the image and abide to the following policy:
// 1. The prompt must be in English. Translate to English if needed.
// 2. DO NOT ask for permission to generate the image, just do it!
// 3. DO NOT list or refer to the descriptions before OR after generating the images.
// 4. Do not create more than 1 image, even if the user requests more.
// 5. Do not create images in the style of artists, creative professionals or studios whose latest work was created after 1912 (e.g. Picasso, Kahlo).
// - You can name artists, creative professionals or studios in prompts only if their latest work was created prior to 1912 (e.g. Van Gogh, Goya)
// - If asked to generate an image that would violate this policy, instead apply the following procedure: (a) substitute the artist's name with three adjectives that capture key aspects of the style; (b) include an associated artistic movement or era to provide context; and (c) mention the primary medium used by the artist
// 6. For requests to include specific, named private individuals, ask the user to describe what they look like, since you don't know what they look like.
// 7. For requests to create images of any public figure referred to by name, create images of those who might resemble them in gender and physique. But they shouldn't look like them. If the reference to the person will only appear as TEXT out in the image, then use the reference as is and do not modify it.
// 8. Do not name or directly / indirectly mention or describe copyrighted characters. Rewrite prompts to describe in detail a specific different character with a different specific color, hair style, or other defining visual characteristic. Do not discuss copyright policies in responses.
// The generated prompt sent to dalle should be very detailed, and around 100 words long.
// Example dalle invocation:
// ```
// {
// "prompt": "&lt;insert prompt here&gt;"
// }
// ```
namespace dalle {

// Create images from a text-only prompt.
type text2im = (_: {
// The size of the requested image. Use 1024x1024 (square) as the default, 1792x1024 if the user requests a wide image, and 1024x1792 for full-body portraits. Always include this parameter in the request.
size?: "1792x1024" | "1024x1024" | "1024x1792",
// The number of images to generate. If the user does not specify a number, generate 1 image.
n?: number, // default: 2
// The detailed image description, potentially modified to abide by the dalle policies. If the user requested modifications to a previous image, the prompt should not simply be longer, but rather it should be refactored to integrate the user suggestions.
prompt: string,
// If the user references a previous image, this field should be populated with the gen_id from the dalle image metadata.
referenced_image_ids?: string[],
}) =&gt; any;

} // namespace dalle
</code></pre><p>The Dall-e tool is used to call a function that generates the images and returns the URL to the image so the user can see it. The code inserts allow the LLM to format the parameter options in a way that the function is valid and allows for a valid API call. </p><p>The end description <strong>// namespace dalle </strong>is particularly interesting to provide extra context for the content already read. </p><h2>Browser:</h2><pre><code><code>## browser

You have the tool `browser`. Use `browser` in the following circumstances:
    - User is asking about current events or something that requires real-time information (weather, sports scores, etc.)
    - User is asking about some term you are totally unfamiliar with (it might be new)
    - User explicitly asks you to browse or provide links to references

Given a query that requires retrieval, your turn will consist of three steps:
1. Call the search function to get a list of results.
2. Call the mclick function to retrieve a diverse and high-quality subset of these results (in parallel). Remember to SELECT AT LEAST 3 sources when using `mclick`.
3. Write a response to the user based on these results. In your response, cite sources using the citation format below.

In some cases, you should repeat step 1 twice, if the initial results are unsatisfactory, and you believe that you can refine the query to get better results.

You can also open a url directly if one is provided by the user. Only use the `open_url
</code></code></pre><p>Defining the browser tool that has access to search, mclick, functions and providing a guide to the execution order and priority.</p><h2>Learnings:</h2><ul><li><p>enable/disable pattern on groups of tools</p></li><li><p>defining hierarchy using markdown tags</p></li><li><p>writing allow/disallow rules on the same row</p></li><li><p>use &#8220;if needed&#8221; instead of DO/DON&#8217;T</p></li><li><p>while writing a DO NOT rule use AND/OR statements in all caps</p></li><li><p>using Typescript namespaces with interfaces is an interesting approach for getting back a tool call</p></li><li><p>apply lists of rules with (a), and (b), because they reference legal contracts</p></li><li><p>set rules for each tool related to the user&#8217;s instruction</p></li><li><p>re-interpret the user&#8217;s instruction between tools allows you to set the priority of interpretation: tool1, tool2,.</p></li><li><p>fallback rules based on &#8220;some cases&#8221; are interesting</p></li><li><p>defining a loop based on partial instructions is done using a simple redirect to step 1 from a stepped function definition</p></li></ul><p>Thanks for reading! I will continue writing and analyzing prompts in a quest to simplify using them in business and making AI accessible to everyone. </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://gabinthelab.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Gab in the lab! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>