Home/Archive/Prompts

The archive

48 posts
Showing 1–8 of 8
Anatomy of a production system promptPROMPTS

Anatomy of a production system prompt

Role, context, rules, tools, format, fallbacks and examples. A section-by-section guide to writing system prompts that behave predictably at scale.

SPSana PatelNov 08 · 6 min
Structured output without JSON mode: 7 patterns that hold upPROMPTS

Structured output without JSON mode: 7 patterns that hold up

Schemas in the prompt, sentinels, validate-and-repair loops and smaller output shapes. Patterns that make any model return parseable data.

MOMira OkaforOct 31 · 6 min
Few-shot examples that don’t backfirePROMPTS

Few-shot examples that don’t backfire

Models copy examples more faithfully than instructions, including their mistakes. How to pick, order and test few-shot examples that help.

MOMira OkaforOct 17 · 6 min
The "red-team yourself" prompt: self-critique that works, and when it backfiresPROMPTS

The "red-team yourself" prompt: self-critique that works, and when it backfires

Asking a model to attack its own draft can catch real errors, or talk it out of a right answer. What the research says, and the variants worth using.

SPSana PatelOct 15 · 6 min
System prompt templates for production: six copy-ready examplesPROMPTS

System prompt templates for production: six copy-ready examples

Support, extraction, grounded Q&A, code review, summaries and classification. Templates you can adapt, with the failure each line prevents.

JLJonas LindSep 28 · 6 min
Prompting for citations that actually check outPROMPTS

Prompting for citations that actually check out

Source IDs, quote-then-answer, automatic quote checks and a real "not found" path. How to make every claim traceable and verify it in code.

RKRafael KimSep 21 · 6 min
Decomposition prompts for long, messy tasksPROMPTS

Decomposition prompts for long, messy tasks

One giant prompt fails in ways you cannot see. Chaining, map-reduce and plan-then-execute turn long tasks into steps you can test and fix.

JLJonas LindAug 30 · 6 min
Why "don't do X" instructions fail, and what to write insteadPROMPTS

Why "don't do X" instructions fail, and what to write instead

Telling a model what not to do often plants the idea. Why negative instructions misfire, and five rewrites that work better.

SPSana PatelJul 18 · 6 min

Get the Sunday Diff — every post worth reading, once a week.