One prompt's output feeds the next prompt. Which technique is this?
Why B is the answer
Prompt chaining
Chaining breaks a task into linked steps.
In detail
- Feeding one output into the next prompt is prompt chaining.
- Check each step's output.
Use case
An illustrative scenario, not a real incident.
A first prompt extracts facts, a second writes a summary, and a third translates it.
See it in different ways
flowchart LR A["Zero-shot"] --> B["One-shot"] B --> C["Few-shot"] C --> D["Prompt chaining"] D --> E["Chain of thought and ReAct"]
mindmap
root((Prompting))
Examples
Zero-shot
One-shot
Few-shot
Persona
Role prompting
Steps
Prompt chaining
Tools
ReActflowchart LR S0["Extract"] --> S1["Summarize"] --> S2["Translate"]
Key point: Chaining links prompts.
Why the other options are wrong
- A. Grounding with Google Search
- Grounding adds facts.
- C. Zero-shot prompting
- Zero-shot uses no examples.
- D. Role prompting
- Role prompting sets a persona.

