tree-of-thought-llm
Tree of Thoughts LLM is an open-source Python package providing the official implementation of the Tree of Thoughts framework, as presented in the NeurIPS 2023 paper Deliberate Problem Solving with Large Language Models. Designed to enhance large language model reasoning, this tool enables systematic problem-solving by exploring multiple reasoning paths in a tree-like structure rather than relying on linear sequences. It supports diverse search strategies including Breadth-First Search and Depth-First Search, along with flexible state evaluation methods such as value estimation and voting. The library includes pre-configured templates for complex tasks like the Game of 24, creative writing generation, and crossword puzzle solving. Users can easily integrate their own tasks by defining custom thought generation and evaluation logic. The codebase is compatible with Python 3.7 and above, released under the MIT license, and supports various backends including OpenAI GPT models. Its architecture allows researchers