AI Calibrator
Turn your knowledge and standards into a tested, reliable AI — without writing prompts, code, or datasets. You bring your materials and answer questions; the tool builds, tests, and proves an AI that behaves the way you want.
Think of it like onboarding a brilliant new hire: it interviews you about how you want the job done, writes the playbook, then quizzes itself against that playbook until it reliably passes.
How it works
- State the goal — what should this AI do?
- Upload your materials — docs, examples, policies. The tool indexes them and finds the gaps they don't cover.
- Answer a short interview — only about the gaps; it drafts likely answers for you to approve or correct.
- It compiles a behavior spec → system prompt + knowledge lookup (RAG) + an eval rubric + test cases.
- It tests and scores the AI against your standards, fixes failures, and loops until it passes.
- You get a finished, runnable AI plus the saved spec and tests.
Guided mode (default) does all of this with configuration — runs on any machine. Advanced mode (opt-in, technical users) adds a fine-tuning toolchain on top, gated on actually beating the configured baseline.
Bring-your-own-key: the engine defaults to Claude via your own API key,
but works equally with OpenAI (<model>@openai, incl. OpenAI-compatible
endpoints) or a local Ollama model (no key / offline). The app runs on your
machine and no secrets ship in this repo.
Status
Alpha (v0.0.2) — but the whole pipeline is built and tested:
the Guided loop (init → ingest → interview → compile → eval → export, CLI +
local web UI), a deep verification surface (spec lint, deterministic checks,
LLM-judge with self-consistency + human judge calibration, coverage, red-team,
drift, golden snapshots, weighted scoring — composed into one calibrate ci
gate), and the Advanced tier (fine-tuning + Engine-Trainer with prove-it gates).
calibrate compare runs your suite against the same model without the
calibration, so "the calibrated AI is better" is a measured delta on your own
tests, not a claim. The test suite runs engine-free with fakes; the pipeline is
also verified end-to-end against a real local model via Ollama.
Build plan: docs/BUILD-PLAN.md · Architecture: docs/ARCHITECTURE.md ·
Contributing: CONTRIBUTING.md
Quickstart
python3 -m venv .venv && source .venv/bin/activate # required on stock macOS / modern Debian (PEP 668)
pip install 'ai-calibrator[cloud]' # or '[all]' for every engine + the web UI (note: [all] pulls a multi-GB ML stack via [rag])
export ANTHROPIC_API_KEY=<your-key> # your own key; nothing is stored in the repo
calibrate --help
calibrate init my-support-ai --goal "Answer customer product questions in our voice."
calibrate status my-support-ai
The engine defaults to Claude (cloud, bring-your-own key). To use OpenAI,
set OPENAI_API_KEY and bind roles to <model>@openai. To run locally with
no key, install Ollama, pull a model (e.g.
ollama pull qwen2.5:7b), and point every role at it:
calibrate engines my-support-ai --all qwen2.5:7b@ollama
--all points the judge at that model too, so it grades its own answers.
That works, and it is often the only option locally — but the pass rate is then
one model's opinion of itself, and the failures it cannot see are exactly the
ones it cannot report. calibrate lint says so, and there are two ways to earn
a stronger number: bind the judge to a different model
(calibrate engines my-support-ai judge <model@provider>), or make the criteria
that matter deterministic with calibrate add-check, which does not consult a
judge at all.
📖 Full walkthrough: docs/USAGE.md — engine setup for
Claude / OpenAI / local, the step-by-step workflow, and current build status.
License: MIT.
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 ai_calibrator-0.0.2.tar.gz.
File metadata
- Download URL: ai_calibrator-0.0.2.tar.gz
- Upload date:
- Size: 399.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad4fa6c60004ddf20849e916e9ea95721e5d3e9f690e5d19a8eed03ce3c2a82c
|
|
| MD5 |
2d710614c68ccb1f38fbe5473b3c9b36
|
|
| BLAKE2b-256 |
c3c014c1c4ef8d07d26b04d98c29dada6f5326428a0706406b5883bedfae84f8
|
Provenance
The following attestation bundles were made for ai_calibrator-0.0.2.tar.gz:
Publisher:
release.yml on tanveerkanala-cmd/ai-calibrator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_calibrator-0.0.2.tar.gz -
Subject digest:
ad4fa6c60004ddf20849e916e9ea95721e5d3e9f690e5d19a8eed03ce3c2a82c - Sigstore transparency entry: 2519673243
- Sigstore integration time:
-
Permalink:
tanveerkanala-cmd/ai-calibrator@0e1bb02580713cc45aac88d0e78aa2463fb84412 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/tanveerkanala-cmd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0e1bb02580713cc45aac88d0e78aa2463fb84412 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ai_calibrator-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ai_calibrator-0.0.2-py3-none-any.whl
- Upload date:
- Size: 239.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
841b201c29c37a5b29dbaafdd6b0485b79f09e538051d27178ddfbea4bb46586
|
|
| MD5 |
402f054361af7c7f2f0c514857884468
|
|
| BLAKE2b-256 |
158ec647d49c8862205b41b858180649880445f479957f9e69a8bdea2d944c99
|
Provenance
The following attestation bundles were made for ai_calibrator-0.0.2-py3-none-any.whl:
Publisher:
release.yml on tanveerkanala-cmd/ai-calibrator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_calibrator-0.0.2-py3-none-any.whl -
Subject digest:
841b201c29c37a5b29dbaafdd6b0485b79f09e538051d27178ddfbea4bb46586 - Sigstore transparency entry: 2519673278
- Sigstore integration time:
-
Permalink:
tanveerkanala-cmd/ai-calibrator@0e1bb02580713cc45aac88d0e78aa2463fb84412 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/tanveerkanala-cmd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0e1bb02580713cc45aac88d0e78aa2463fb84412 -
Trigger Event:
release
-
Statement type: