<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prompt-Engineering on David Lang</title>
    <link>https://www.davidlang.tech/tags/prompt-engineering/</link>
    <description>Recent content in Prompt-Engineering on David Lang</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 14 Oct 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.davidlang.tech/tags/prompt-engineering/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Prompt Engineering Fundamentals for Developers</title>
      <link>https://www.davidlang.tech/posts/prompt-engineering-fundamentals-for-developers/</link>
      <pubDate>Sat, 14 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://www.davidlang.tech/posts/prompt-engineering-fundamentals-for-developers/</guid>
      <description>&lt;p&gt;Prompt engineering is the practice of designing inputs so LLMs produce reliable, useful outputs. Developers who treat prompts as code ship better AI features.&lt;/p&gt;&#xA;&lt;h2 id=&#34;structure-your-prompts&#34;&gt;Structure Your Prompts&lt;/h2&gt;&#xA;&lt;p&gt;Use clear sections: role, context, task, format, and constraints.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You are a code reviewer for a TypeScript React codebase.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Context: PR diff below.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Task: List bugs, security issues, and style problems.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Format: JSON array of { severity, file, message }.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Constraints: Max 10 items. No speculation beyond the diff.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;few-shot-examples&#34;&gt;Few-Shot Examples&lt;/h2&gt;&#xA;&lt;p&gt;Include 2–3 input/output pairs for classification or extraction tasks. Examples beat lengthy instructions for format adherence.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
