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

pip install cogitator[dev]

Examples

File Description
run_least_to_most.py Example of using the Least-to-Most prompting method
run_sc_cot.py Example of using the Self-Consistency prompting method
run_auto_cot.py Example of using the Automatic CoT prompting method
run_tree_of_thoughts.py Example of using the Tree of Thoughts prompting method
run_graph_of_thoughts.py Example of using the Graph of Thoughts prompting method
run_cdw_cot.py Example of using the Clustered Distance-Weighted CoT prompting method
shared.py Shared utilies and settings for the examples

Contributing

See CONTRIBUTING.md for details on how to make a contribution.

Logo

The logo is named the "Cognition" and 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.0a1.tar.gz (21.9 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.0a1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file cogitator-0.1.0a1.tar.gz.

File metadata

  • Download URL: cogitator-0.1.0a1.tar.gz
  • Upload date:
  • Size: 21.9 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.0a1.tar.gz
Algorithm Hash digest
SHA256 a84652ecd2682d94f4859fab8e671b52d1112b0d1795469d2f5e45680eeb3e24
MD5 244f5bae26af358e1068cca02609d58c
BLAKE2b-256 3775fb2401db539ae931367dcf035d3d1bf2977d9586248067263a8706addc00

See more details on using hashes here.

File details

Details for the file cogitator-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: cogitator-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 24.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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff50ad386ce5080eabb479e10c5c091e7990365d95bdc85be00a494259ffb55
MD5 7b4326ac349880daa4c1f35cb2e2fa3f
BLAKE2b-256 26d073ff5ecaba9373da00213f35b334f4ad45886d6ae34a35a8343eee9d6af3

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