15. Tree-of-Thought
Chapter 15 of 25 · 15 min
Tree-of-Thought (ToT) prompting extends chain reasoning by exploring multiple solution branches simultaneously. Where chain reasoning commits to one path, ToT maintains parallel considerations and selects the strongest path after evaluation.
The mechanism uses explicit branching markers and evaluation criteria defined before reasoning begins. Each branch generates intermediate states that undergo criterion-based pruning before final synthesis.
EXERCISE
Implement ToT reasoning for a customer service escalation decision. Define three branching paths based on customer sentiment (negative/neutral/positive), generate reasoning steps for each, and write evaluation criteria for selecting the final response. Test with 5 customer scenarios.