dave1010/tree-of-thought-prompting
A prompt engineering technique extending Chain-of-Thought to boost LLMs' reasoning by exploring multiple paths and self-correcting errors.

This repository implements Tree-of-Thought Prompting, a technique that extends Chain-of-Thought reasoning by enabling LLMs to explore multiple reasoning paths and self-correct errors. It demonstrates practical improvements, showing ChatGPT 3.5 with ToT prompting can match ChatGPT 4 on complex spatial reasoning tasks. The project provides examples and implementations of prompting strategies for improving LLM performance on difficult questions.