TreeQuest, developed by SakanaAI, is a versatile Python library implementing adaptive tree search algorithms—such as AB‑MCTS—for enhancing inference-time performance of large language models (LLMs). It allows developers to define custom state-generation and scoring functions (e.g., via LLMs), and then efficiently explores possible answer trees during runtime. With support for multi-LLM collaboration, checkpointing, and mixed policies, TreeQuest enables smarter, trial‑and‑error question answering by leveraging both breadth (multiple attempts) and depth (iterative refinement) strategies to find better outputs dynamically

Features

  • AB‑MCTS-A and AB‑MCTS‑M algorithms
  • Support for multi‑LLM generation strategies
  • Custom node-generation and scoring via user functions
  • Efficient checkpointing and resume capabilities
  • Pythonic, lightweight API for search control
  • Built-in utilities for extracting top‑k states

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow TreeQuest

TreeQuest Web Site

Other Useful Business Software
Propel Software: Product Value Management Platform for Manufacturers Icon
Propel Software: Product Value Management Platform for Manufacturers

For modern product companies that need to connect product and commercial teams successfully

Propel is a cloud-native Product Value Management platform that unifies PLM, QMS, and PIM in one connected system, giving manufacturers complete visibility and control across the entire product lifecycle. It provides a single source of truth for all product data, streamlines change management, strengthens quality and compliance processes, and accelerates time-to-market by eliminating the silos and manual steps that slow teams down.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of TreeQuest!

Additional Project Details

Programming Language

Python

Related Categories

Python Artificial Intelligence Software

Registered

2025-07-04