Tree of Thoughts

ToT, Tree-of-Thoughts prompting

Foundations

Evaluation

Soft glowing orange and yellow light with a gradient blending into black background.
TL;DR
A structured reasoning framework that enables large language models to explore multiple decision paths, evaluate intermediate ideas, and self-correct using backtracking.

In depth

The Tree of Thoughts framework extends linear prompting approaches by structuring model reasoning as a non-linear search over a tree of intermediate steps. It generates multiple candidate thoughts at each decision branch, evaluates their feasibility, and navigates the solution space using classical search algorithms. If a reasoning path leads to an unproductive outcome, the system can backtrack to a previous node and try a different branch.

Why this matters for your business

It significantly improves model accuracy on complex, high-stakes tasks like legal compliance or scientific discovery where early errors can compound and lead to failures.

Ready to scale AI across your organization?

Talk to an AI expert