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.
- Higher Accuracy: ConSol improves OpenAI's GPT-o3-mini-medium performance on AIME24 Benchmark by 20 percentage points from 73% to 93%.
- Cost Efficiency: ConSol can reduce from 50% to 66% of output tokens of OpenAI's GPT-o3-mini-medium for AIME24 Benchmark. The number of output tokens is directly linked to the money cost. ConSol saves $50, $16, and $4 for o3-mini-high, o3-mini-medium, and o3-mini-low, respectively.
For the details, please refer to the publication.
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 consol-0.1.12.tar.gz.
File metadata
- Download URL: consol-0.1.12.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
121c08c4db558299b6ff37f30b731b3031e89ad9a4dfb746f81a4345962af433
|
|
| MD5 |
393fc990f9c8ebbfd66693a2f1f4a54b
|
|
| BLAKE2b-256 |
65896f626fae8d27e941371366ea3f576ac1939085e557abb2fad07f3b7ef65a
|
File details
Details for the file consol-0.1.12-py3-none-any.whl.
File metadata
- Download URL: consol-0.1.12-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8ea4bb00f7d4f8caaa12576ced416056825ae4d8147d002cd3f30b63915f16f
|
|
| MD5 |
5e53b100e4182b62d3a48e68b97b75b3
|
|
| BLAKE2b-256 |
dc847145c215850a5c087fa40f23afb79dc3cf5d13ce39e6238e971f71a96a4d
|