evalsi
Evaluate AI before you ship, while it runs, and as you train it.
evalsi is the Python SDK and CLI of Evals.si, a pluggable, sandboxed and self-hosted evaluation service. Before you ship, it runs agents, RAG pipelines and models on datasets and sandboxed tasks and fails the build when a gate fails. While it runs, it scores live traces. As you train, the same evaluators become RL rewards and checkpoint checks. Agents come first, and a metric means the same thing in CI, in production and in training.
Documentation · GitHub · Changelog · Examples
Why Evals.si
- Built first for agents. Agents run on sandboxed tasks (SWE-bench, τ-bench, Terminal-Bench, BFCL) and a hidden checker grades the end state. Evaluators score tool calls, trajectories, loops, step budgets and policy violations, with pass@k and pass^k over trials, and gates fail the build when an agent gets worse.
- RAG, scored where it breaks. Retrieval (
context-precision,context-recall) and generation (faithfulness,answer-relevance) are scored separately, pluscitation-accuracy, which needs no judge. RAGAS and DeepEval metrics run through your judge. - Training, not only testing. Evaluators become RL rewards for TRL, verl and OpenRLHF, and every checkpoint is checked against the base model with regression gates.
- Live traffic. Production traces from LangGraph, CrewAI, the OpenAI Agents SDK, LlamaIndex and the Claude Agent SDK are scored as they arrive, and the scores go back to MLflow, Phoenix or Langfuse.
- Four ways in. Run an agent, a model or a RAG pipeline on a dataset with trials, gates and budgets, Watch live traces with online policies, Score outputs you have, and Reward RL training with the same evaluators.
- Honest numbers. Every mean has a confidence interval. Records an evaluator can't judge are skipped, never scored as zero, and evaluator failures are errors. There is no default judge, so nothing is billed by surprise.
- Pluggable. Your evaluators are Python functions or sandboxed Wasm modules; lm-evaluation-harness, Inspect AI, RAGAS and DeepEval run as adapters. DeepEval's 30 metrics include G-Eval and JevEval, whose decisions can come from token logprobs of a model you serve on vLLM, SGLang or Ollama.
- Fails closed. Untrusted code runs in Firecracker microVMs, bubblewrap, Landlock or hardened pods, never with weaker isolation than asked.
Install
pip install evalsi # SDK and CLI
pip install 'evalsi[anthropic]' # Claude as a judge or target
pip install 'evalsi[server]' # evalsi serve: the evaluator worker for the server
pip install 'evalsi[analytics]' # evalsi analyze: DuckDB across runs
Other extras: hf (hf:// datasets), grpc (streaming client), jsonschema, math (symbolic answer checks). Python 3.11 or newer.
On Linux (amd64 and arm64), pip installs a platform wheel that also carries the evalsid server and its static bubblewrap, so evalsi serve, sandboxed code evaluators and Wasm plugins need nothing else (evalsi evalsid-path shows the one in use). Elsewhere you get the pure-Python wheel; point EVALSID at an evalsid from the releases page when you need the server.
Quickstart
Score records you already have:
evalsi eval --data qa.jsonl --evaluators exact-match,numeric-match,latency
metric n mean 95% CI skipped errors
exact-match 6 0.333 [0.097, 0.700] 0 0
numeric-match 3 0.667 [0.208, 0.939] 3 0
latency 6 517.500 [276.409, 758.591] 0 0
Add a judge explicitly, any OpenAI-compatible server or Claude:
evalsi eval --data qa.jsonl --evaluators llm-judge \
--judge-provider anthropic --judge-model claude-opus-5-5 --param llm-judge.rubric=helpfulness
From Python, with your own evaluator beside the built-in ones:
import evalsi
from evalsi import Record, Score, evaluator
@evaluator(name="acme/polite", version="1.0.0")
def polite(record: Record) -> Score:
return Score(passed="please" in record.output.as_text().lower())
result = evalsi.evaluate("qa.jsonl", ["exact-match", polite])
print(result.table())
result.save("results.json") # manifest, summaries and every per-record result
Runs and CI gates
A run spec generates outputs from a target, scores them and checks gates. The same file runs in-process, on a server, or as a Kubernetes EvalRun; a failed gate exits 3, so CI fails.
evalsi run -f run.yaml # embedded
evalsi run -f run.yaml --server https://evalsi.example # on a server
evalsi compare --server https://evalsi.example <baseline-run> <candidate-run>
evalsi gate -f gate.yaml --server https://evalsi.example --release v42 # a deploy gate
On a server
evalsid serves the same evaluators over gRPC, HTTP/JSON and REST, with durable runs, online policies, trace sources, webhooks, auth and a web UI. From Python:
import evalsi
from evalsi.client import Client
with Client("https://evalsi.example") as client: # API key from EVALSI_API_KEY
print(client.evaluate("qa.jsonl", ["exact-match"]).table())
client.log_run(
evalsi.evaluate("qa.jsonl", ["exact-match"]), name="nightly"
) # store a local result
Client.evaluate() returns the same result as in-process evalsi.evaluate(), intervals included.
Rewards for RL
A reward spec turns evaluators into a weighted, gated reward, in-process or served to trainers:
from trl import GRPOConfig, GRPOTrainer
from evalsi.rewards.trl import reward_funcs
funcs, weights = reward_funcs("code-reward.yaml")
trainer = GRPOTrainer(
model=model,
reward_funcs=funcs,
args=GRPOConfig(..., reward_weights=weights),
train_dataset=dataset,
)
verl (evalsi.rewards.verl) and OpenRLHF (evalsi.rewards.openrlhf, or evalsi rewards serve) use the same spec. evalsi checkpoints evaluates every training checkpoint against the base model.
Evaluators
| Pack | Evaluators |
|---|---|
core |
exact, contains, fuzzy, numeric and regex match; JSON validity and schema; length; latency; tokens; cost |
judge |
llm-judge with rubrics |
text |
BLEU, ROUGE, chrF, token F1 |
rag |
faithfulness, answer relevance, context precision and recall, citation accuracy |
safety |
PII, secret and canary leaks; refusal; harmlessness |
agent |
tool-call accuracy, trajectory match, tool errors, loops, step budget, task success (pass@k, pass^k), code quality |
code |
unit tests in the sandbox, Python syntax |
rl |
format, math answers, sandboxed code tests, overlong penalty, reward models |
finetune |
diversity, calibration, contamination, reward hacking |
ml-classic |
classification, regression and ranking metrics |
ml-monitoring |
drift (PSI, KS, Jensen-Shannon), data quality, group fairness |
evalsi catalog lists every installed evaluator and its params. Third-party packs plug in through the evalsi.packs entry point, exactly like the built-in ones.
More
evalsi-harness: the built-in agent harness for agent runs.- Guides: agent runs, online evaluation, trace sources, fine-tuning and RL, Kubernetes, identity and more.
evalsi mcpserves Evals.si to coding agents over MCP.
Evals.si is pre-1.0: the API is v1alpha1 and can change between minor versions. Apache-2.0.
Metadata
Release files for evalsi 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evalsi-0.3.1.tar.gz | 570.8 kB | With provenance | Details for evalsi-0.3.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evalsi-0.3.1-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for evalsi-0.3.1-py3-none-manylinux_2_17_x86_64.whl |
| evalsi-0.3.1-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for evalsi-0.3.1-py3-none-manylinux_2_17_aarch64.whl |
| evalsi-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for evalsi-0.3.1-py3-none-any.whl |
Total release size: 43.8 MB
Release files / evalsi-0.3.1.tar.gz
| Download URL | evalsi-0.3.1.tar.gz |
|---|---|
| Size | 570.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72c27171933868aa0705f573b520646a1c69093c825cefb49f02a4fb60e39eaa
|
|
BLAKE2b-256 checksum How to use checksums |
7db79176d5bdc962757ebd8d9ea510d04ebed04acfcd4fd2ce51eff3712c32be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / evalsi-0.3.1-py3-none-manylinux_2_17_x86_64.whl
| Download URL | evalsi-0.3.1-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 22.4 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
482e9b6c6bee2a157e67f8e2bf162e928b8e891d44e82b7ea11b80a0daeea187
|
|
BLAKE2b-256 checksum How to use checksums |
295e6938c2066770df47445eca5bb810b70f222f77aa8bcc9b911aa2b55e9ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / evalsi-0.3.1-py3-none-manylinux_2_17_aarch64.whl
| Download URL | evalsi-0.3.1-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 20.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
dc5963da739c53cee91b16de37c176240baff91de28899bf774116cc22175545
|
|
BLAKE2b-256 checksum How to use checksums |
d29dccc47cb7bdc8b490b1f23c5a03f10c6520d072aa7b4a4f46cf58a3d41b14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / evalsi-0.3.1-py3-none-any.whl
| Download URL | evalsi-0.3.1-py3-none-any.whl |
|---|---|
| Size | 539.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2da96bab6952dc12ec709bf53e6d54da0edca62e82fcb92b6f98d4abe0bd45ba
|
|
BLAKE2b-256 checksum How to use checksums |
a28ba0fe8f88537794c47b186c6bbaec13a0c15812b68543b430c059885613c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for evalsi 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for evalsi-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.