A Python toolkit for chain-of-thought prompting
Project description
Cogitatør is a Python toolkit for experimenting with chain-of-thought (CoT) prompting techniques in large language models (LLMs). CoT prompting improves LLM performance on complex tasks (like question-answering, reasoning, and problem-solving) by guiding the models to generate intermediate reasoning steps before arriving at the final answer. The toolkit aims to make it easy to try out different popular CoT strategies (or methods) and integrate them into your AI applications.
Features
- Simple unified API for different CoT prompting methods
- Support for remote and local LLM providers, including:
- OpenAI
- Ollama
- Supported CoT prompting methods include:
Getting Started
Installation
pip install cogitator
Examples
See the examples directory for usage examples of each CoT method.
Benchmarks
Check out the benches directory for benchmarks comparing the performance of the different CoT methods on various datasets.
Contributing
See CONTRIBUTING.md for details on how to make a contribution.
Logo
The logo is named the "Cognition" and originally was created by vectordoodle.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cogitator-0.1.0a2.tar.gz.
File metadata
- Download URL: cogitator-0.1.0a2.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.17 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ec587bc3bc907cc5184360218ff9d7a5f6b681379866d463b18d810402abe1a
|
|
| MD5 |
31aaaf614a65fb8f5b593d7af9770ea1
|
|
| BLAKE2b-256 |
c022e7fff09e4edf42eb06e6cb57bf3db2186975d0d810bd2d0f5a593d3b18bb
|
File details
Details for the file cogitator-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: cogitator-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.17 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6385bb10127e8ce5a287f0a81ae87e2e8598c0c82248b2d1dbe337b84ca84a79
|
|
| MD5 |
0e1b605a68e4fed5a68b07de9157bd2e
|
|
| BLAKE2b-256 |
00bb45e60d54f4e8d41622a447bbfb43dfef09d7a80a5b969245fe30dee8a996
|