Auditing 30 of My Posts with claude -p --json-schema
I had Haiku 5.5 audit 30 of my posts twice: once with --json-schema, once asking nicely for JSON. The shape held. The judgement moved, and that's the lesson.
22 articles
I had Haiku 5.5 audit 30 of my posts twice: once with --json-schema, once asking nicely for JSON. The shape held. The judgement moved, and that's the lesson.
Azure OpenAI caches prompt prefixes automatically, yet many apps see few cache hits. How to measure the hit rate and fix the prompt shapes that break it.
Eight prompt engineering myths worth dropping in 2026, from verbose prompts to reflexive chain-of-thought and temperature rules, and what to measure instead.
Poorly designed prompts lead to hallucinations, ignored context, or responses that fail to meet business requirements. A systematic approach to prompt…
Include examples in prompts to guide model behavior for domain-specific tasks. This is especially effective for classification and formatting tasks where…
Invest time in crafting and testing your system prompts. They are the foundation of consistent, high-quality AI interactions.
For even stricter control, use the structured outputs feature with a JSON schema. JSON mode transforms LLMs from conversational tools into reliable data…
When faced with multi-step problems, LLMs perform better when prompted to reason step-by-step rather than jump directly to answers.
A well-structured prompt includes context, instructions, examples, and output format specifications.
Track cache hit rates in your monitoring. Applications with high context reuse typically see 60-80% cache hit rates, dramatically reducing per-request costs.
Which prompt techniques still earn their place on Azure OpenAI in January 2025, which moved into the API, and which now work against reasoning models like o1.
GPT-4 has been available since March 2023 and the gap between practitioners who've put in real work with it and those still writing prompts by intuition is…
Master prompt engineering techniques for generating high-quality images with DALL-E 2 and other AI image models.
Tomorrow we'll explore semantic compression techniques in more depth. LLMLingua Prompt Compression Paper Token Optimization Guide
Provide specific line-by-line feedback.""", requiredvars=["databasetype", "query"] ) prompt = SQLREVIEWTEMPLATE.format( databasetype="Azure SQL Database"…
How temperature and top_p reshape token sampling in Azure OpenAI completions, why to tune one not both, and how to measure the effect before you ship.
Azure OpenAI completion models have no system role yet. How to design, budget, version and test an instruction preamble that does that job instead.
What the 2022 chain-of-thought papers show, how to apply zero-shot CoT and self-consistency on Azure OpenAI completions, and when the extra tokens don't pay.
How to pick, order and budget few-shot examples for Azure OpenAI completion models, with the biases to watch for and when to stop adding examples.
Four prompt rules that hold up against real user input on Azure OpenAI completions: positive instructions, strict formats, delimiters and roles, plus tests.
Poor prompt: "Write code for a website" Better prompt: "Write HTML and CSS for a responsive landing page for a SaaS product. Include a hero section with…
The trend is clear: models are becoming more capable at following instructions and engaging in dialogue-like interactions.