Skip to content

Tree of Thoughts

A prompting technique: instead of one chain of reasoning, the model generates several options at each step, evaluates them, and explores the most promising ones — like a decision tree.

Difference from Chain-of-Thought

Chain-of-Thought Tree of Thoughts
Path One linear Branches out
Search Proceeds forward Can return and try another branch
Cost Low Higher (more generations)

When Useful

For tasks where it's important to explore options: puzzles, planning, solution finding. Overkill for simple questions.

See Also

← All terms