AI engineering glossary · Prompt context engineering

What is prompt chaining?

Prompt chaining: Linking several prompts in sequence, where the output of one becomes part of the input to the next. Each step has a narrow job, which makes results easier to test and debug than one giant prompt. Frameworks such as LangChain popularised the pattern.

Level: intermediateTopic: Prompt context engineering

Prompt chaining: an example

Step 1 extracts claims from a news article, step 2 fact-checks each claim, step 3 writes a two-line verdict.

Related terms

More Prompt context engineering terms

Where you learn it

Prompt chaining is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.