Prompt Chaining
Definition
Prompt chaining is a technique used in AI to generate more complex and accurate responses by breaking down a task into smaller, more manageable sub-tasks. It involves creating a series of related prompts that build upon each other to achieve a specific goal.
Diagram
Prompt 1
Extract
pull the complaints out of 200 reviews
→ list of complaints
Prompt 2
Group
cluster them into themes
→ themes with counts
Plain code
Check
code: do the counts add up?
→ verified themes
Prompt 3
Write
draft a one-page summary
→ summary for the team