princeton-nlp/tree-of-thought-llm
[NeurIPS 2023] Tree of Thoughts: Deliberate Problem Solving with Large Language Models observed · 2026-08-28
Health v2 · maintenance only
20/100
- Activity 1
- Release rhythm 8
- Longevity 86
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1204
- days_rel: n/a
- days_push: 594
- n_releases_24m: 0
Adoption not part of the score
6057 stars · 624 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Official implementation of the Tree of Thoughts (ToT) framework for deliberate LLM problem solving, generalizing chain-of-thought prompting with tree search over intermediate reasoning steps. It provides the `tot` Python package with BFS/DFS search methods, thought generation and evaluation strategies, and tasks like Game of 24, Creative Writing, and Mini Crosswords.
Use cases
- improve LLM reasoning on planning-heavy problems with tree search
- run tree-of-thoughts prompting instead of plain chain-of-thought
- solve the Game of 24 puzzle with GPT-4
- compare IO sampling, CoT sampling, and ToT search on benchmark tasks
- implement custom tasks with thought generation, evaluation, and selection
- reproduce NeurIPS 2023 Tree of Thoughts paper experiments
When to choose
- you need deliberate multi-step reasoning with lookahead and backtracking over chain-of-thought
- you want the reference implementation of the ToT paper with prompts and model outputs
- your task benefits from exploring multiple reasoning paths and self-evaluation
When to avoid
- you need cheap, low-latency inference since ToT makes many LLM calls per problem
- your task is simple enough that standard prompting or CoT suffices
- you need a production agent framework with tool use and memory rather than a research codebase
Facets
library · maturity stable
llm-inference prompt-engineering agent-framework search-engine large-language-models artificial-intelligence python cli tree-of-thoughts tree-search chain-of-thought reasoning bfs dfs research-code neurips-2023 natural-language-processing algorithms
6 sources
- readme: https://github.com/princeton-nlp/tree-of-thought-llm · fetched 2026-08-28 · 32f7814b5469
- homepage: https://arxiv.org/abs/2305.10601 · fetched 2026-08-29 · f10c7e9453c5
- site_page: https://info.arxiv.org/about/donate.html · fetched 2026-08-29 · cca9c3a11c56
- site_page: https://info.arxiv.org/about/ourmembers.html · fetched 2026-08-29 · 47cbc55ff1de
- site_page: https://info.arxiv.org/about · fetched 2026-08-29 · a1f16f915a9a
- site_page: https://info.arxiv.org/labs/index.html · fetched 2026-08-29 · b14a8d05a0ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| princeton-nlp/tree-of-thought-llm | main | 20 |
For agents
markdown · JSON · MCP: product_card(name="princeton-nlp/tree-of-thought-llm")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem