Skip to main content

consol: Confident Solver to use LLM to solve various problems confidently and efficiently with a statistical approach.

Project description

🎮 ConSol: Confident Solver

Solve problems confidently and efficiently using a statistical approach with LLM

PyPI version

🤗 Getting Started

# This command installs the ConSol package from PyPI.
pip install consol

Usage as a CLI

$ consol --prompt "1 + 1 = ?"
2

Usage as a SDK

from consol import ConfidentSolver

# Initialize the ConfidentSolver with the following parameters:
# llm_model: The language model to use, e.g., "gpt-4o-mini", "o3-mini-low".
# confidence_model: The statistical model to determine confidence, e.g., "msprt", "sprt", "pvalue", "bayesianposterior", "vote".
# output_schema: The format of the output, e.g., "abced", "float".
consol = ConfidentSolver(
    llm_model="gpt-4o-mini",
    confidence_model="pvalue",
    output_schema="float",
)
answer = consol.invoke("1 + 1 = ?")
print(answer)
# => 2

🤔 What is ConSol?

ConSol is a framework designed to solve various problems, primarily mathematical, by leveraging a statistical approach. This approach suppresses randomness and results in higher accuracy cost-efficiently.

For the details, please refer to the publication.

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

consol-0.2.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

consol-0.2.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file consol-0.2.3.tar.gz.

File metadata

  • Download URL: consol-0.2.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for consol-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4613c19f0c834038a31d08c9669723849409391d5ca4e6c8346e56c0b830b838
MD5 d8c9d0c6783c2a28238d9e5206a1ff3f
BLAKE2b-256 33760133da9aa6b1c055ffb3ac77caabcb3e5468be84e54cc7b8786ef0ce4db5

See more details on using hashes here.

File details

Details for the file consol-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: consol-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for consol-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 530dd9bba4851c62cd6e6d4d14b6b711f8db97da0d2d380d9c90f3e7e1bf4efd
MD5 a6f9e6917de588e0b52cab2b6c870d63
BLAKE2b-256 b8d80e1d1ffd0fa29fead0ba90e1035058a3afd6a1b8fc02ba296542a185a3d0

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