Skip to main content

A Python toolkit for chain-of-thought prompting

Project description

Cogitator Logo

Cogitatør

Tests Code Coverage Code Quality PyPI Version Downloads Python Version Documentation License Status

A Python toolkit for chain-of-thought prompting


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


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cogitator-0.1.0a2.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cogitator-0.1.0a2-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

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

Hashes for cogitator-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 1ec587bc3bc907cc5184360218ff9d7a5f6b681379866d463b18d810402abe1a
MD5 31aaaf614a65fb8f5b593d7af9770ea1
BLAKE2b-256 c022e7fff09e4edf42eb06e6cb57bf3db2186975d0d810bd2d0f5a593d3b18bb

See more details on using hashes here.

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

Hashes for cogitator-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 6385bb10127e8ce5a287f0a81ae87e2e8598c0c82248b2d1dbe337b84ca84a79
MD5 0e1b605a68e4fed5a68b07de9157bd2e
BLAKE2b-256 00bb45e60d54f4e8d41622a447bbfb43dfef09d7a80a5b969245fe30dee8a996

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page