Blog

Prompt Engineering

Every technique that works — with real examples

Prompt Engineering9 min read

Prompting for Translation: Context-Aware Output That DeepL Cannot Match

Where LLMs outperform traditional MT tools on translation tasks - tone, idioms, domain context - and where they fall short, plus practical techniques including style guides, glossaries, audience specs, and back-translation QA.

Prompting for Translation: Context-Aware Output That DeepL Cannot Match
Prompt Engineering9 min read

Prompting for Creative Writing: Getting Less Generic Output

How to escape generic AI writing - using specific stylistic constraints, exclusion lists, tone references, temperature settings, and iterative generate-critique-revise loops to get genuinely distinctive creative output.

Prompting for Creative Writing: Getting Less Generic Output
Prompt Engineering8 min read

Chain of Density Prompting: How to Get Information-Dense Summaries from LLMs

Chain of Density produces better summaries by iteratively densifying a sparse draft. Each pass adds missing information without increasing length. Here is how it works.

Chain of Density Prompting: How to Get Information-Dense Summaries from LLMs
Prompt Engineering8 min read

Prompting for Summarization: Techniques That Actually Work

Learn how to write prompts that produce accurate, concise summaries - covering length control, chain-of-density compression, source citation, and prompt differences across email, meeting, and document contexts.

Prompting for Summarization: Techniques That Actually Work
Prompt Engineering9 min read

Prompting Misconceptions: What Does Not Work Despite the Hype

A research-backed examination of prompting techniques that underperform their reputation - chain-of-thought on simple tasks, longer prompts, role prompting, threats, and jailbreaks - and what actually works instead.

Prompting Misconceptions: What Does Not Work Despite the Hype
Prompt Engineering9 min read

Getting Structured Output From LLMs: JSON, XML, and Format Control

Getting reliable structured output from LLMs requires more than asking for JSON. Three methods from least to most reliable, with real prompt examples and failure modes for each.

Getting Structured Output From LLMs: JSON, XML, and Format Control
Prompt Engineering9 min read

Prompting for Code Generation: Techniques That Actually Improve Output Quality

Code prompting is different because outputs are verifiably correct or wrong. Six techniques that consistently improve code quality, with specific examples and the most underused application.

Prompting for Code Generation: Techniques That Actually Improve Output Quality
Prompt Engineering6 min read

Prompt Injection Attacks: What They Are and How to Prevent Them

Prompt injection is when malicious input overrides your system prompt. Two attack types, documented real-world examples, and five defense strategies ranked by effectiveness.

Prompt Injection Attacks: What They Are and How to Prevent Them
Prompt Engineering8 min read

Tree of Thought Prompting: When to Use It and When It's Overkill

Tree of Thought has the model explore multiple reasoning paths and pick the best. Yao et al. 2023 showed significant gains on hard problems. Most tasks don't need it - here's when they do.

Tree of Thought Prompting: When to Use It and When It's Overkill
Prompt Engineering9 min read

Prompt Chaining: How to Break Complex Tasks Into Reliable Steps

Prompt chaining passes the output of one LLM call as input to the next. Four patterns with real examples, and when chaining is worth the complexity vs. a single prompt.

Prompt Chaining: How to Break Complex Tasks Into Reliable Steps
Prompt Engineering8 min read

Role Prompting: How to Use Personas to Get Better LLM Outputs

Role prompting assigns a persona to the model to shift its responses toward domain-specific language and reasoning. When it helps, when it backfires, and real before-and-after examples.

Role Prompting: How to Use Personas to Get Better LLM Outputs
Prompt Engineering8 min read

Self-Consistency Prompting: How to Improve Accuracy Through Multiple Samples

Self-consistency runs the same prompt multiple times and takes the majority answer. Wang et al. showed 5-40% accuracy improvements on reasoning tasks. When the cost is worth it.

Self-Consistency Prompting: How to Improve Accuracy Through Multiple Samples
Prompt Engineering17 min read

Prompt Engineering Complete Guide 2026: Every Technique That Actually Works

Every major prompt engineering technique with real before-and-after examples. Zero-shot, CoT, system prompts, RAG, ReAct, and what does not work despite the hype.

Prompt Engineering Complete Guide 2026: Every Technique That Actually Works
Prompt Engineering10 min read

Chain of Thought Prompting: 8 Patterns With Real Before-and-After Examples

Chain of thought prompting improves accuracy on multi-step reasoning by 10-40%. Eight specific CoT patterns with real before-and-after prompt examples.

Chain of Thought Prompting: 8 Patterns With Real Before-and-After Examples
Prompt Engineering9 min read

How to Write a System Prompt That Actually Works: Examples for Every Use Case

System prompts set the model's role, constraints, and output format. Six complete system prompt examples for customer support, code review, research, writing, data analysis, and project management.

How to Write a System Prompt That Actually Works: Examples for Every Use Case
Prompt Engineering8 min read

Few-Shot Prompting: When It Works, When It Fails, With Real Examples

Few-shot prompting uses 3-5 examples to show the model the pattern you want. When it outperforms fine-tuning, when it fails, and how format sensitivity affects output quality.

Few-Shot Prompting: When It Works, When It Fails, With Real Examples
Prompt Engineering9 min read

Tree of Thoughts: Let LLMs Explore Multiple Reasoning Paths

Tree of Thoughts treats problem-solving as a search problem, having the LLM generate multiple reasoning branches, self-evaluate each, and backtrack when stuck - dramatically improving on hard reasoning tasks.

Tree of Thoughts: Let LLMs Explore Multiple Reasoning Paths
Prompt Engineering9 min read

Chain-of-Thought Prompting: The Google Paper That Made LLMs Better at Math

Wei et al. 2022 showed that prompting LLMs to show their reasoning steps - chain-of-thought - dramatically improves performance on arithmetic and logical reasoning tasks.

Chain-of-Thought Prompting: The Google Paper That Made LLMs Better at Math
PrevPage 2Next