Moyan AI Training Institution LogoMoyan AI

Practice · Emerging · Advanced

Tree of Thought

A prompting strategy that explores multiple reasoning branches, evaluates them and backtracks rather than committing to one linear chain.

What Tree of Thought is

Where chain-of-thought walks a single path, tree-of-thought treats reasoning as search over partial solutions with explicit evaluation at each step.

How it works

The model proposes candidate next steps, scores them, expands the promising branches and prunes the rest, guided by breadth-first or best-first search.

Why it matters

It helps on puzzles and planning problems where the first plausible step is often wrong, at a significant cost in tokens.

Common uses

  • Planning and puzzle solving
  • Complex code refactoring plans
  • Strategy exploration

Strengths

  • Better on problems needing backtracking

Watch for

  • Expensive
  • Complex orchestration for modest gains on many tasks

Continue exploring

More in this collection

Browse all AI Concepts