Skip to content

Get started

Install, grade your first outputs, run evaluators from Python or as a server, then take a tour of runs, agents and online evaluation.

Each release publishes (see the Kubernetes guide to verify the signatures):

  • Server and CLI binaries: Linux amd64 and arm64 archives on the releases page.
  • Python: pip install evalsi (SDK and CLI) and pip install evalsi-harness (the agent harness) from PyPI; the same wheels and sdists are attached to the release. Since v0.2.0, releases also publish Linux (amd64, arm64) platform wheels that carry evalsid and its sandbox’s bwrap, so evalsi serve and code evaluators need nothing else; v0.1.0 and other platforms get the pure-Python wheel and a separate evalsid.
  • Kubernetes: multi-architecture images at ghcr.io/abhishek-rnjn/evalsi and the three Helm charts as OCI artifacts, oci://ghcr.io/abhishek-rnjn/charts/evalsi, evalsi-crds and evalsi-sandboxd.

To contribute from source, use the development setup below. It is not required for the installed SDK quickstart.

The shell example uses Bash. For Windows activation and creating the input file in an editor, follow guided setup.

No clone, no server and no API key. You need Python 3.11+.

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

Save these two synthetic examples as cases.jsonl, or use your own approved records with input, output and reference 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"}
Terminal window
evalsi eval --data cases.jsonl --evaluators exact-match --output results.json
evalsi report results.json -o report.html

Open report.html locally. One answer matches and the other does not; inspect the regression case to see expected versus actual output. Exact match checks literal agreement, not general semantic correctness. Choose checks appropriate to your application before making a release decision.

The scoring command exits 0 when scoring completes, even when a check fails; it is not a release gate. Two synthetic examples are not release evidence. Nothing calls a model unless you explicitly configure one.

Next, replace the sample with a few cases from your application. See guided setup for the application-first workflow, version availability and explicit CI gates. Advanced sandbox/server prerequisites are not prerequisites for this quickstart.

Additional examples: recorded agent tools and RAG outputs

Score two recorded agent runs on their tool calls:

Terminal window
pip install evalsi
cat > agent-runs.jsonl <<'JSONL'
{"id": "refund-ok", "input": "Refund order 42", "output": "Refunded order 42.", "reference": {"tool_calls": [{"name": "lookup_order", "arguments": {"id": 42}}, {"name": "refund", "arguments": {"id": 42}}]}, "trajectory": {"steps": [{"type": "tool", "name": "lookup_order", "input": {"json": {"id": 42}}, "output": {"text": "paid"}}, {"type": "tool", "name": "refund", "input": {"json": {"id": 42}}, "output": {"text": "ok"}}]}}
{"id": "refund-loop", "input": "Refund order 7", "output": "Sorry, I could not do that.", "reference": {"tool_calls": [{"name": "lookup_order", "arguments": {"id": 7}}, {"name": "refund", "arguments": {"id": 7}}]}, "trajectory": {"steps": [{"type": "tool", "name": "lookup_order", "input": {"json": {"id": 7}}, "error": "timeout"}, {"type": "tool", "name": "lookup_order", "input": {"json": {"id": 7}}, "error": "timeout"}, {"type": "tool", "name": "lookup_order", "input": {"json": {"id": 7}}, "error": "timeout"}]}}
JSONL
evalsi eval --data agent-runs.jsonl --evaluators tool-call-accuracy,tool-errors,loop-detection
2 records · 3 evaluators
metric n mean 95% CI skipped errors
tool-call-accuracy.recall 2 0.750 [0.000, 1.000] 0 0
tool-call-accuracy.precision 2 0.667 [0.000, 1.000] 0 0
tool-errors (lower is better) 2 0.500 [0.000, 1.000] 0 0
loop-detection 2 0.500 [0.095, 0.905] 0 0

The first run made both expected calls. The second called lookup_order three times in a row, failed each time and never refunded. The table shows what that does to each metric, and how wide the interval is with two runs.

Check a RAG pipeline’s recorded answers, then gate on them:

Terminal window
cat > rag.jsonl <<'JSONL'
{"id": "refund-window", "input": "How long is the refund window?", "output": "Refunds are accepted for 30 days [1].", "context": ["Our policy allows refunds within 30 days of purchase.", "Shipping takes 3-5 business days."], "reference": "30 days"}
{"id": "shipping-time", "input": "How long does shipping take?", "output": "Shipping takes 3-5 business days [4].", "context": ["Our policy allows refunds within 30 days of purchase.", "Shipping takes 3-5 business days."], "reference": "3-5 business days"}
JSONL
evalsi eval --data rag.jsonl --evaluators citation-accuracy
2 records · 1 evaluator
metric n mean 95% CI skipped errors
citation-accuracy 2 0.500 [0.095, 0.905] 0 0

The second answer cites passage [4], but only two passages were retrieved. Add a judge and the faithfulness, answer-relevance, context-precision and context-recall metrics tell you whether retrieval or generation is at fault (guide).

For the setup commands (0.4.0) and maintained GitHub Action, see guided setup. For dataset version review and digest-pinned runs, see dataset snapshots. Validate the evaluator itself with judge calibration: freeze human labels, select prompts/models/thresholds on tuning cases, then measure held-out validity and fresh-call repeatability. Try the offline example. Turn production incidents into reviewed regression cases with the failure inbox, then share approved immutable dataset versions and pin them in server runs. Compare a candidate with a reviewed baseline using enforced release decisions, or configure and investigate the check in the browser release workbench. Start an agent suite from the support and refund starter: synthetic tasks graded on the final state of a simulated shop.

Compare two results files with evalsi compare baseline.json candidate.json, or gate inside your test suite with assert_eval.

Next: gate an agent in CI (free and offline, with a failing gate and a GitHub Actions workflow), evaluate a RAG pipeline, run an agent on sandboxed tasks, score live traces, train with evaluators as rewards, or score plain model outputs. The docs are at evalsi.dev.

First time? The tutorials walk through installing Evalsi and its agent harness and driving a fake tool-calling model through every feature, offline, with the rough edges a first install hit in an onboarding study.

A run spec generates outputs from a target, scores them and checks gates. The same file runs embedded, on a server, or as a Kubernetes EvalRun:

Terminal window
uv run evalsi run -f ../examples/runs/capitals.yaml # embedded
uv run evalsi run -f ../examples/runs/capitals.yaml --server http://localhost:8080
uv run evalsi compare --server http://localhost:8080 <baseline-run> <candidate-run>

trials: 3 adds pass@3 and pass^3, gates fail the command with exit code 3 (so CI fails), and budgets cap tokens. Server runs are durable: a run interrupted by a restart resumes without redoing finished work. A project can subscribe to signed webhooks for finished runs, failed gates, scored traces and alerts. See examples/ci for a pull-request gate.

Each task gets its own environment: an OCI image, files, setup and a sandbox policy. The agent works in it, a checker grades the end state, and evaluators score the trajectory and the diff.

Terminal window
uv run evalsi run -f ../examples/agents/swebench-verified.yaml --server http://localhost:8080
uv run evalsi promote <run> --dataset regressions --when 'scores["task-success"] < 1' --server http://localhost:8080

swebench://, taubench://, harbor://, terminal-bench:// and bfcl:// datasets are graded by each benchmark’s own code. The harness adds MCP tools, mocks and fault injection, a simulated user, and record and replay. See the agent runs guide.

Send traces to the server’s OTLP endpoint, or read them from where they already are, then apply a policy: a CEL selector, deterministic sampling, cascades (the judge runs only after cheap checks pass), windowed alerts, and promotion of bad traces into datasets.

Terminal window
uv run evalsi policy apply -f ../examples/watch/support-policy.yaml --server http://localhost:8080
uv run evalsi source apply -f ../examples/sources/studio-mlflow.yaml --server http://localhost:8080
Framework Tested instrumentations
LangGraph / LangChain OpenInference, LangSmith’s OTel export, MLflow autolog
CrewAI MLflow autolog, OpenInference, OpenLLMetry
OpenAI Agents SDK OpenInference, OpenLLMetry
LlamaIndex OpenInference
Claude Agent SDK OpenInference, Claude Code’s own traces

Each row is a real run of the framework, checked in and tested; the agent frameworks guide has the setup and what each instrumentation records. Trace sources read MLflow, Phoenix, Langfuse, LangSmith or Collector ClickHouse tables (history included), score the traces, and write back assessments, annotations, feedback or companion score rows. The ClickHouse source supports the Collector Map schema and latest-score queries with FINAL; it passed bounded live checks on ClickHouse 25.8.33.6. Self-hosted Langfuse 4.56.0 passed the recorded two-stage check; Databricks numeric-experiment bearer-token downloads are built and contract-tested, not live-verified. LangSmith has server/worker fixture coverage and an opt-in live check; live verification still needs credentials. To add Evalsi to an agent platform, follow the integration guide and the reference demos, which evaluate Deep Agents and DeepSeek Harness agents end to end.

Pack Evaluators
core exact, contains, fuzzy, numeric and regex match; JSON validity and schema; length; latency; token usage; cost
judge llm-judge with rubrics
text BLEU, corpus BLEU, ROUGE-1/2/L, 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, loop detection, step budget, goal completion; task success (pass@k, pass^k), code quality, policy violations, efficiency
code unit tests run in the sandbox, Python syntax
rl verifiers for RL rewards: 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

DeepEval, RAGAS, Inspect AI and lm-evaluation-harness, and the SWE-bench, τ-bench and BFCL benchmarks, live in python/adapters, each in its own pinned environment. The DeepEval guide covers its 30 metrics for RAG, agent traces, safety and conversations. It also covers G-Eval and JevEval, metrics you define as criteria or as weighted questions, whose decisions can come from a model you host. Community evaluators can be Wasm modules with no filesystem, network or clock, installed from a plugin index.

Terminal window
kubectl create namespace evalsi
helm install evalsi-crds deploy/helm/evalsi-crds --set operator.namespace=evalsi
helm install evalsi deploy/helm/evalsi -n evalsi
kubectl apply -n evalsi -f examples/runs/capitals.yaml
kubectl get evalruns -n evalsi # PHASE, RUN, DONE, TOTAL

An operator with EvalRun, OnlineEvalPolicy, TraceSource, Evaluator and SandboxClass resources, validated on admission. Also included:

  • PostgreSQL, ClickHouse and S3 storage;
  • NATS work queues with KEDA scaling;
  • HA replicas, sandbox pools, service-account identity;
  • an air-gapped bundle;
  • a namespace-only install for clusters without cluster-admin.

See the Kubernetes guide.

Identity and access OIDC (Keycloak, Entra ID, Okta, …), API keys, GitHub Actions OIDC, client certificates; project RBAC with custom roles, CEL rules and an audit log
Inline guardrails Redact, evaluate and block LLM and MCP traffic in flight through agentgateway, with an audit mode
Trace redaction Mask credential keys on push and pull before storage and evaluation; configurable key globs, regexes and opt-in PII classes
MCP for coding agents evalsi mcp lets an agent run a suite before and after its change and see what regressed
Human annotation Queues with rubrics, annotator agreement, and judge calibration against human labels
Evaluator validation Frozen human labels, tuning/held-out judge comparisons, false positives/negatives, repeatability and portable reports
Fine-tuning and RL Evaluators as rewards for TRL, verl and OpenRLHF; every checkpoint checked against the base model
Web UI Runs, comparisons, policies, annotation queues, guardrails and the catalog, read through the API
Reports and analytics evalsi report (HTML or Markdown), evalsi analyze (DuckDB over runs), sinks to MLflow, OpenTelemetry, Langfuse and Phoenix, a Grafana dashboard