Artificial Intelligence

Prompt Chaining

A technique where the output of one LLM call becomes the input for the next, creating a pipeline of prompts that together accomplish a complex task.

Why It Matters

Prompt chaining breaks complex tasks into reliable steps. Each step can be validated independently, making the overall system more robust and debuggable.

Example

Step 1: Extract key claims from an article. Step 2: For each claim, generate a search query. Step 3: Search and retrieve evidence. Step 4: Fact-check each claim against evidence.

Think of it like...

Like a relay race where each runner handles one leg — the baton (output) passes from one to the next, and each runner focuses on their specific stretch.

Related Terms