Skip to main content

z3rno-evals

⚠️ Deprecated — full rewrite in progress

z3rno is being rewritten from the ground up as a single open-source Rust monorepo (Apache 2.0), following direct feedback from enterprise users that the current architecture is too complex.

GitHub downloads PyPI downloads

Eval framework for Z3rno. Measures the four metrics that gate every Phase E release:

  • recall@k — fraction of golden questions where an expected Memo is in the top-k results
  • MRR — mean reciprocal rank of the first correct Memo
  • faithfulness — LLM-judge score: does the recalled context support the expected answer?
  • latency — p50 / p95 / p99 of recall() calls against a live z3rno-server

A golden dataset is a JSON file of Q&A items with expected memory IDs, expected entities, and latency budgets. The CLI runs the dataset against a live server and emits both a results.json (machine-readable) and a report.md (PR-comment-ready).

Install

pip install z3rno-evals
# Optional — for the LLM-driven faithfulness judge
pip install 'z3rno-evals[llm-judge]'

Quickstart

# 1. Boot a local z3rno-server (see z3rno-server/Makefile)
make -C ../z3rno-server dev-up

# 2. Seed the memories the golden dataset expects
python -m z3rno_evals.seed --against http://localhost:8000 --api-key sk-... \
    --dataset datasets/golden_v1.json

# 3. Run the evals
z3rno-evals run \
    --against http://localhost:8000 \
    --api-key sk-... \
    --dataset datasets/golden_v1.json \
    --output results/

# 4. Look at the report
cat results/report.md

Metrics Table

Metric Default Target Phase E Bar
recall@5 (GRAPH strategy) — ≥ 0.80 on golden v1
mrr — ≥ 0.65
faithfulness (LLM-judge) — ≥ 0.90
p95_latency_ms — ≤ 500
Regression gate — block PR if any metric drops > 5%

Golden Dataset Format

{
  "version": 1,
  "name": "golden_v1",
  "items": [
    {
      "id": "q-001",
      "agent_id": "agent-1",
      "query": "What does the user prefer for notifications?",
      "expected_memory_ids": ["01HXY1...", "01HXY2..."],
      "expected_entities": ["dark mode", "weekly digest"],
      "expected_answer": "The user prefers dark mode and weekly digest emails.",
      "strategy": "AUTO",
      "top_k": 5,
      "latency_budget_ms": 500
    }
  ]
}

See datasets/golden_v1.json for the full sample.

Architecture

  • src/z3rno_evals/dataset.py — Pydantic models + loader for the golden dataset format
  • src/z3rno_evals/metrics.py — pure-function metric implementations
  • src/z3rno_evals/runner.py — drives the eval against a live server via the z3rno SDK
  • src/z3rno_evals/judges/ — FaithfulnessJudge ABC + LLM + stub implementations
  • src/z3rno_evals/report.py — JSON + Markdown report renderers
  • src/z3rno_evals/cli.py — argparse entry point (z3rno-evals run, z3rno-evals seed)

License

Apache 2.0.

Metadata

Release files for z3rno-evals 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 z3rno-evals 0.3.2
File Size Uploaded Provenance
z3rno_evals-0.3.2.tar.gz 231.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for z3rno-evals 0.3.2
File Interpreter ABI Platform
z3rno_evals-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 255.4 kB

Release files / z3rno_evals-0.3.2.tar.gz

Download URL z3rno_evals-0.3.2.tar.gz
Size 231.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1877da8212d1c472dbb76ef693053d14a97bc883adf432933212d04c74461da6
BLAKE2b-256 checksum
How to use checksums
9bb29e707d35d7658216eedc2e6e4d019b131e238c8de7599230e9b7ea892a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 7, 2026.

Transparency log

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

Download URL z3rno_evals-0.3.2-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2689aae1089cddd17be019f392904ad028ca1f2044ec4df664ce56d3dad00359
BLAKE2b-256 checksum
How to use checksums
026eebda1096e284d7d3f87b045ea4b7cc8f2e921400727394dbf8e7b53c5d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 7, 2026.

Transparency log

Security for z3rno-evals 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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for z3rno_evals-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 Sep 7, 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.

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