Prompt Engineering

Prompt Engineering

Deep technical articles on this topic.

50Articles
50Topics covered
Articles in this category

All 50 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Advanced RAG

Beyond basic top-K retrieval. Techniques for hard questions.

Read article
ARTICLE · 02

Agentic Prompting

Structure prompts for autonomous multi-step task completion.

Read article
ARTICLE · 03

Chain-of-Thought (CoT) Prompting

'Let's think step by step.' Unlocks reasoning in large models.

Read article
ARTICLE · 04

Chain-of-Verification (CoVe)

Model generates → generates verification questions → answers them → revises. Reduces hallucination.

Read article
ARTICLE · 05

Constitutional AI

Model critiques + revises its output per explicit principles. Bootstraps harmlessness.

Read article
ARTICLE · 06

Constrained Decoding

Force model to produce output matching a grammar. Zero-cost format guarantees.

Read article
ARTICLE · 07

Context Window Management

Chunking, summarization, retrieval. When your data doesn't fit.

Read article
ARTICLE · 08

Cost Optimization

Route by difficulty. Cache. Compress. 10-50x cost savings possible.

Read article
ARTICLE · 09

Emergent Abilities

Some capabilities appear only above threshold model size. Contested but influential.

Read article
ARTICLE · 10

Dynamic Few-Shot

For each query, retrieve most similar examples from bank. Big accuracy jump on hard tasks.

Read article
ARTICLE · 11

Few-Shot Prompting

Show the model the format via examples. Foundation of in-context learning.

Read article
ARTICLE · 12

Function Calling

Define tool schemas, model produces JSON call. Foundation of modern agents.

Read article
ARTICLE · 13

Grounding + Citations

Hallucination defense: model must quote provided sources with tags.

Read article
ARTICLE · 14

Instruction Hierarchy

OpenAI's formalization. Model trusts sources by role. Foundation of injection defense.

Read article
ARTICLE · 15

Long Context Prompting

Gemini/Claude/GPT-5 support 200K-2M tokens. New patterns emerge.

Read article
ARTICLE · 16

Meta-Prompting

Use LLM to generate/refine prompts for other tasks. Iterative prompt improvement.

Read article
ARTICLE · 17

Model-Specific Tricks

Each model family has quirks. Prompts that win on one may lose on another.

Read article
ARTICLE · 18

Multi-Agent Orchestration

Team of specialized agents. Orchestrator routes. Cheaper than one giant agent.

Read article
ARTICLE · 19

Negative Prompting

Explicit prohibitions. Sometimes works, sometimes highlights the forbidden.

Read article
ARTICLE · 20

Prompt A/B Testing in Production

Route traffic split. Measure metric. Statistical significance before shipping.

Read article
ARTICLE · 21

Analogical Prompting

'Think of a similar problem you've solved.' Model retrieves similar patterns.

Read article
ARTICLE · 22

Anatomy of a Prompt

Every modern LLM uses 3 roles. What each role does, when to use what.

Read article
ARTICLE · 23

Prompt Caching

APIs cache prefix tokens. 90% cost reduction on repeated system prompts.

Read article
ARTICLE · 24

Prompt Chaining

Multiple LLM calls, each doing one thing. Cheaper + more reliable than one mega-prompt.

Read article
ARTICLE · 25

Prompt Compression

Compress prompts 2-20x preserving downstream task quality.

Read article
ARTICLE · 26

Debate Prompting

Two agents argue different positions. Judge picks winner. Improves reasoning.

Read article
ARTICLE · 27

Debugging Broken Prompts

When prompt fails: minimal example, ablation, model comparison. Not vibes.

Read article
ARTICLE · 28

Prompt Delimiters

Separate instructions from data. Reduces injection + confusion.

Read article
ARTICLE · 29

Prompting for Code Generation

Language, style, tests, review. Foundation of Copilot, Cursor.

Read article
ARTICLE · 30

Domain-Specific Prompts

Schema, hints, few-shot examples, self-correction loop. Text-to-SQL production patterns.

Read article
ARTICLE · 31

Prompt Engineering Team Structure

Who owns prompts? How to review + ship. Emerging discipline.

Read article
ARTICLE · 32

Prompt Evaluation

How to measure prompt changes objectively. Reject vibes-based improvement.

Read article
ARTICLE · 33

Extraction Prompts

Given text, extract entities, relationships, key-value pairs. JSON schema-guided.

Read article
ARTICLE · 34

Multilingual Prompting

Cross-lingual tasks. English pivot. Translation fidelity.

Read article
ARTICLE · 35

DSPy

Declare task signatures. Framework compiles prompts + optimizes. No hand-tuning.

Read article
ARTICLE · 36

Prompt Design for Streaming UX

How prompt affects streamed output quality. First-token latency. Format for progressive rendering.

Read article
ARTICLE · 37

Temperature, Top-p, Top-k

Randomness parameters. When to crank, when to zero out.

Read article
ARTICLE · 38

Prompt Template Libraries

Reusable prompt templates. Variables. Composition. Trade-offs.

Read article
ARTICLE · 39

Prompt Versioning

Version-control prompts. Track eval metrics per version. Prevent silent drift.

Read article
ARTICLE · 40

ReAct

Model alternates Thought → Action → Observation. Foundation of agentic prompting.

Read article
ARTICLE · 41

Reflexion

Agent learns across attempts via natural language memory of past mistakes.

Read article
ARTICLE · 42

RAG

Retrieve relevant docs from vector DB, feed to LLM. Foundation of KB Q&A.

Read article
ARTICLE · 43

Role Prompting

'You are a senior security engineer…' Real gain or superstition?

Read article
ARTICLE · 44

Self-Consistency

Sample N CoT solutions, take majority answer. Boosts accuracy 5-15%.

Read article
ARTICLE · 45

Self-Refine

Model generates → model critiques → model rewrites. 1-3 iterations.

Read article
ARTICLE · 46

Structured Output

Force LLM output into machine-parseable format. Table stakes for production.

Read article
ARTICLE · 47

Summarization Prompts

Extractive vs abstractive. Length. Focus. Audience. Get precisely what you asked for.

Read article
ARTICLE · 48

Task Decomposition

Split hard problem into subproblems, solve smallest first, compose.

Read article
ARTICLE · 49

Tree of Thoughts

Explore multiple reasoning branches, prune, backtrack. RL-flavored prompting.

Read article
ARTICLE · 50

Zero-Shot Prompting

Ask the model directly, no examples. When it works, when it fails.

Read article