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

🤗 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., "pvalue", "sprt", "bayesian".
# output_schema: The format of the output, e.g., "reasoned_float", "float".
consol = ConfidentSolver(
    llm_model="gpt-4o-mini",
    confidence_model="pvalue",
    output_schema="reasoned_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.1.5.tar.gz (5.5 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.1.5-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for consol-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2d0e5f521b3fea842bd0bed1b779fd21c4059f7ffa353abbf9e48734d600c37e
MD5 9b6dcdd55d01ac271a8f3c6aa4ddb2cf
BLAKE2b-256 163b32dd6369fa9cb7d7147bf5b642439ccab3c1ea64c70d04bcd5bae725d29f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: consol-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4a8bad8f586f5b42a1754a512b03e0774125eef9b681a3f1ad28513a9c3eb3
MD5 bbc34df33262c427929cd4d4fe45b2c6
BLAKE2b-256 1927c468f2582db81a6099875d43a46b9dbfe632f1711870072707ae14c588f4

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