habedi/cogitator
A Python toolkit for chain-of-thought prompting 🐍
Implements six peer-reviewed CoT strategies (Self-Consistency, Tree of Thoughts, Graph of Thoughts, and others) with unified sync/async APIs across multiple LLM providers including OpenAI, Ollama, and OpenRouter. Features Pydantic-validated structured output and includes a benchmarking framework for evaluating strategies on datasets like GSM8K and StrategyQA.
184 stars. Available on PyPI.
Stars
184
Forks
5
Language
Python
License
MIT
Category
Last pushed
Dec 13, 2025
Commits (30d)
0
Dependencies
6
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/habedi/cogitator"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
kyegomez/tree-of-thoughts
Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large...
spcl/graph-of-thoughts
Official Implementation of "Graph of Thoughts: Solving Elaborate Problems with Large Language Models"
kyegomez/the-compiler
Seed, Code, Harvest: Grow Your Own App with Tree of Thoughts!
amazon-science/auto-cot
Official implementation for "Automatic Chain of Thought Prompting in Large Language Models"...
atfortes/Awesome-LLM-Reasoning
From Chain-of-Thought prompting to OpenAI o1 and DeepSeek-R1 🍓