Skip to main content

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, plus citation-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

python -m venv .venv
. .venv/bin/activate
python -m pip install evalsi

On Windows, activate with .venv\Scripts\Activate.ps1 instead. Reuse your application's existing activated environment when integrating its callable.

Python 3.11 or newer. Basic recorded-output scoring needs only this SDK, not the harness, server, Docker, Kubernetes or a model API key.

Install extras only for a capability you choose: anthropic for Claude, server for the server's evaluator worker, analytics for DuckDB, hf for Hugging Face datasets, grpc for streaming, jsonschema for JSON Schema, and math for symbolic checks.

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

Save these synthetic records as cases.jsonl, or use your application's approved records with the same fields:

{"id":"correct","input":"What is the return window?","output":"30 days","reference":"30 days"}
{"id":"regression","input":"What is the return window?","output":"7 days","reference":"30 days"}
evalsi eval --data cases.jsonl --evaluators exact-match --output results.json
evalsi report results.json -o report.html

Open report.html. One check passes; inspect regression for the incorrect answer. Exact match checks literal agreement, not semantic quality. An exit code of 0 means scoring completed, not that every check passed or a release was approved. Two synthetic examples do not establish release safety. Choose appropriate checks and explicit gates for your own application.

The guided setup explains connecting an application, version availability, and optional harness execution. No source checkout is needed for this recorded-output quickstart.

Add a judge explicitly, any OpenAI-compatible server or Claude:

evalsi eval --data cases.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("cases.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("cases.jsonl", ["exact-match"]).table())
    client.log_run(
        evalsi.evaluate("cases.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 mcp serves 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for evalsi 0.3.2
File Size Uploaded Provenance Actions
evalsi-0.3.2.tar.gz 617.9 kB With provenance Details for evalsi-0.3.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for evalsi 0.3.2
File Interpreter ABI Platform Actions
evalsi-0.3.2-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for evalsi-0.3.2-py3-none-manylinux_2_17_x86_64.whl
evalsi-0.3.2-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for evalsi-0.3.2-py3-none-manylinux_2_17_aarch64.whl
evalsi-0.3.2-py3-none-any.whl Python 3 none any Details for evalsi-0.3.2-py3-none-any.whl

Total release size: 47.0 MB

Release files / evalsi-0.3.2.tar.gz

Download URL evalsi-0.3.2.tar.gz
Size 617.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f51d06ed6551ec168dcc0f572bb3d88ec1d6feb3b7eafbc6a375401f4384a99d
BLAKE2b-256 checksum
How to use checksums
6c6ca893352600a3c2c45d6830af03ab70bd04ddafb4c6733b1258a40899bf04
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 28, 2026.

Transparency log

Release files / evalsi-0.3.2-py3-none-manylinux_2_17_x86_64.whl

Download URL evalsi-0.3.2-py3-none-manylinux_2_17_x86_64.whl
Size 24.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
fc2daf5ef7c399b72b458f073d32d1f09113ddcf75faae00826375253295209a
BLAKE2b-256 checksum
How to use checksums
c828adddb1223bdc3e01d222afa8a85ad8d97bb8f623469e85e547fd6a641e8b
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 28, 2026.

Transparency log

Release files / evalsi-0.3.2-py3-none-manylinux_2_17_aarch64.whl

Download URL evalsi-0.3.2-py3-none-manylinux_2_17_aarch64.whl
Size 21.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8a82939e86e6f398c9c8ed3981d442920a47018b090b137b4a3148ee3b9f8f52
BLAKE2b-256 checksum
How to use checksums
c2df2a37204aa82e60e3971bf5305fd83aae2a52e002697453a32d128add030a
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 28, 2026.

Transparency log

Release files / evalsi-0.3.2-py3-none-any.whl

Download URL evalsi-0.3.2-py3-none-any.whl
Size 574.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
345c428475cbee452005590d9db9d5135fb5a922864ef3404e508e1d38d66702
BLAKE2b-256 checksum
How to use checksums
3a53b77f1300804b31ec3563373eb9f2883d5d23550b858a92967ac66033865f
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 28, 2026.

Transparency log

Security for evalsi 0.3.2

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.

Select from 4 files

Attestation for evalsi-0.3.2.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 28, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page