What is prompt chaining?
IntermediateConceptPrompting & structured outputs
Answer
Prompt chaining splits a complex task into steps, each a separate call whose output feeds the next: for example extract errors from logs, then group them, then write a summary. Each step is simpler, easier to test and easier to debug than one giant prompt.