Home/LLM Frameworks/tree-of-thought-llm
tree-of-thought-llm logo

tree-of-thought-llm

princeton-nlp/tree-of-thought-llm

[NeurIPS 2023] Tree of Thoughts: Deliberate Problem Solving with Large Language Models

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

6.0k stars624 forksLast push Jan 16, 2025 Python MIT

Decision brief

Unverified catalog guidance: The 'Tree of Thoughts' approach provides a structured way to deliberate problem-solving using large language models and is well-suited for tasks requiring exploration through a tree-like structure.

Good fit when

  • Unverified catalog guidance: - Use 'tree-of-thought-llm' when you need an approach that handles deliberative reasoning problems, like the game of 24, leveraging large language models.
  • Unverified catalog guidance: - Prefer this framework if your application requires evaluating and selecting among multiple potential next steps in a problem-solving scenario.

Avoid when

  • Unverified catalog guidance: - Avoid using 'tree-of-thought-llm' for problems that do not benefit from tree-like exploration or where the solution does not involve deliberate reasoning or step-by-step evaluation.
  • Unverified catalog guidance: - If real-time decision-making is critical and computational resources are limited, this tool might be too slow due to its reliance on large language models like GPT-4 which may introduce latency.
Requirements:
Min 4 GB RAM

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (577d since push)
As of Aug 17, 2026
Provenance
Not a fork · Organization account
As of Aug 17, 2026
Security (OSV)
90 low
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

Package installation is not established from the available documentation. Check the source repository for setup instructions.

git clone https://github.com/princeton-nlp/tree-of-thought-llm
Source repository

Relationship proposals(7)

Relationship types and rationales are stored proposals, not independently verified integrations, migration guidance or endorsements.

Integrations

Related tools

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Relationship types and rationales are stored proposals, not independently verified integrations, migration guidance or endorsements.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A repository that implements the 'Tree of Thoughts' approach to deliberate problem-solving using large language models, demonstrated with examples like solving the game of 24.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Aug 17, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 17, 2026)

```python import argparse
Source link

Tags

README

Quick Start The following minimal script will attempt to solve the game of 24 with (might be a bit slow as it's using GPT 4): And the output would be something like (note it's not deterministic, and sometimes the output can be wrong):

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.