EvalOps Lab evaluates RAG retrieval and groundedness as a software and data quality problem: validate the data, preserve provenance, measure deterministic signals, inspect failures, and make regression decisions against an explicit policy.
AI Evaluation · RAG Regression · Failure Analysis · Deterministic Evidence · Python / TypeScript · CI/CD
Secondary proof: Public Storybook for the curated evidence design system.
The console is a static, read-only presentation of explicitly allowlisted, sanitized JSON artifacts. It does not run evaluators, call model providers, or make production model-superiority claims.
Second surface — Local Evaluation Workspace: Setup and trust guide.
The separate evalops workspace app runs privately on 127.0.0.1, accepts
local inputs, evaluates retrieval runs and canonical comparisons, and offers an
explicit two-step sanitized local export. It does not publish to Pages or
transfer private workspace data into this hosted console automatically.
The Python CLI remains the reproducible automation surface.
Production Evidence Console view with provenance and scope labels visible. The
public comparison data is SYNTHETIC_FIXTURE / INTEGRATION_ONLY.
Cross-project integration: Thai Support RAG → EvalOps converts a strictly synthetic, offline Thai policy retrieval run to the existing EvalOps retrieval contract. Permission-safe and abstention checks remain separately labeled; no live customer records or external inference are involved.
- Overview — verify that the
public console exposes only the approved evidence bundle and shows its
VERIFIED,SYNTHETIC_FIXTURE, andINTEGRATION_ONLYboundaries. - Regression Comparison — verify that a reference/candidate pair from the same synthetic population is compared under an explicit regression policy.
- Failure Explorer — inspect record-level transitions rather than relying on an aggregate score.
- Architecture — follow the path from ground truth to sanitized public evidence.
- Tests & CI — reproduce the local checks and inspect the Python, Web, CodeQL, dependency, and Pages workflows.
Fluent output and a single aggregate score are not enough to support an engineering decision. A useful evaluation needs ground truth, dataset and system provenance, visible failure categories, and a policy that says when a change is a regression. EvalOps Lab keeps those concerns separate so a reviewer can trace a public claim back to a bounded artifact or a tested implementation.
| Capability | Evidence | Data kind | Claim scope | Verification |
|---|---|---|---|---|
| Retrieval evaluation | Runs catalog and deterministic metric tests | SYNTHETIC_FIXTURE for public demo |
INTEGRATION_ONLY |
retrieval evaluators and tests |
| Regression decisions | Comparison detail | SYNTHETIC_FIXTURE, same reference/candidate population |
INTEGRATION_ONLY |
regression policy and public artifact VERIFIED status |
| Failure investigation | Failure Explorer | SYNTHETIC_FIXTURE record transitions |
INTEGRATION_ONLY |
failure taxonomy and route tests |
| Public evidence isolation | Public Evidence Contract and checked-in allowlist | Sanitized, explicitly indexed artifacts | Static presentation only | strict frontend schema and evidence-generation drift tests |
| Reproducibility and quality gates | reviewer quickstart, reproducibility guide, CI workflows | Offline fixtures and checked-in source | Local/CI verification, not a universal benchmark claim | Python, Web, Storybook, Playwright, axe, CodeQL, and Dependency Review gates |
- AI Evaluation Design: dataset validation, provenance-aware run envelopes, deterministic retrieval metrics, and separated human/system/judge evidence.
- RAG Retrieval Metrics & Regression: Precision@K, Recall@K, Hit Rate@K, MRR, nDCG, baseline comparison, thresholds, and same-population decisions.
- Failure Taxonomy and investigation: record-level classifications and changed-only comparison views make failure transitions inspectable.
- Evidence and claim quality: a strict public contract, explicit artifact allowlist, literal scope labels, and fail-closed frontend validation.
- Evaluation engineering: typed Pydantic models, dependency-light Python, TypeScript/Zod public interfaces, and deterministic generated fixtures.
- Delivery discipline: Python/Web/Local Workspace CI, clean-wheel and packaged browser acceptance, public Storybook checks, accessibility tests, CodeQL, Dependency Review, and static GitHub Pages.
flowchart TD
A[Dataset / Ground Truth] --> B[Evaluation Runner]
B --> C[Retrieval / Groundedness Evaluators]
C --> D[Deterministic Run Artifacts]
D --> E[Comparison + Regression Policy]
E --> F[Failure Analysis]
F --> G[Sanitized Public Evidence Contract]
G --> H[Static Evidence Console]
The Python evaluation core is the source of truth. The static frontend reads
only the explicit apps/web/public/evidence/index.json allowlist and the
artifact files named by that index. It is read-only and fail-closed; it has no
API route, server action, inference path, provider credential, persistence,
analytics, or external runtime fetch.
The Local Workspace is a distinct, locally persisted FastAPI + Vite/Python wheel application for private evaluation. Its owner-confirmed export flows pass through the existing Public Evidence Contract adapter/serializer. Exporting is not publishing; only a separate reviewed PR can introduce allowlisted public artifacts. See Workspace setup.
SYNTHETIC_FIXTURE is not an official benchmark. INTEGRATION_ONLY is not
evidence of real-world model superiority. The public reference/candidate pair
demonstrates the evaluation, regression, and failure-analysis path on a bounded
fixture; it does not establish production retrieval performance.
The repository also contains protocol-specific benchmark work that is kept separate from the public demo. See the verified benchmark results, MIRACL guide, RAGTruth guide, HHEM evaluator guide, and LLM judge pilot record. Those documents preserve their own dataset, protocol, and execution scope.
The following three views are curated to show the product path without turning the README into a screenshot catalog.
The public comparison shows a verified synthetic reference/candidate fixture; its regression result is integration evidence, not an official benchmark.
Record-level failure transitions are inspectable within the same
SYNTHETIC_FIXTURE / INTEGRATION_ONLY scope.
- EvalOps CI runs Python tests, lint, formatting, and type checks.
- Local Workspace CI tests the private Workspace APIs and browser flows, exact static asset integrity, isolated clean-wheel install, packaged browser and restart behavior, and runtime security/no-network boundaries.
- Web Evidence Console CI runs frontend lint, type checks, unit tests, Storybook publication checks, browser tests, and accessibility checks.
- Pages deployment publishes only the static
apps/web/outartifact and verifies the/evalops-labpath. - CodeQL and Dependency Review are active repository checks.
- The active
main-governanceruleset requires pull requests, resolved review threads, squash-only merges, required checks, and blocks deletion and non-fast-forward updates. Repository-wide security state is documented in SECURITY.md.
For an end-to-end check of the public routes and private Workspace, use the repository verification workflow and its reviewer feature map.
From a clean checkout, the deterministic offline path requires no paid service, provider credential, or full external dataset:
python -m pip install -e ".[dev]"
pytest
ruff check .
ruff format --check .
mypy src
python -m evalops dataset validate datasets/fixtures/thai-rag-sample.jsonl --document-catalog datasets/fixtures/document-catalog.txt
python -m evalops retrieval evaluate --ground-truth datasets/fixtures/retrieval-ground-truth.jsonl --predictions datasets/fixtures/retrieval-predictions.jsonl --k 5
python -m evalops benchmark miracl --language th --split dev --retriever bm25 --k 5 --miniThe mini MIRACL command uses the clearly labeled synthetic miracl-th-mini
fixture. Its score is not an official MIRACL result.
For the frontend:
cd apps/web
npm ci
npm run lint
npm run typecheck
npm test
npm run buildFor an optional local interactive session (requires a built Workspace UI):
python -m pip install -e ".[dev,workspace]"
cd apps/workspace
npm ci
npm run build
cd ../..
python scripts/stage_workspace_assets.py
evalops workspace --no-openThe output contains a one-time private browser bootstrap URL; do not share it.
For a clean packaged wheel and the owner-gated release boundary, follow the
Local Workspace guide. The existing v0.1.0
release is not a Workspace release.
The complete Storybook, Pages, browser, evidence-regeneration, external-dataset, and opt-in evaluator protocols are documented in CONTRIBUTING.md, AGENTS.md, and docs/reproducibility.md.
EvalOps Lab keeps the evidence chain separate:
- Dataset manifests and validation establish what data is being evaluated.
- Human labels remain distinct from system predictions and model-generated judge outputs.
- Deterministic metrics and model-backed evaluators produce traceable results.
- Failure analysis and regression comparison turn scores into engineering evidence.
The initial runnable path is retrieval evaluation. Generation remains a typed interface for future adapters. The bounded Phase 5A LLM-as-a-Judge path is opt-in and does not replace human ground truth or existing deterministic/HHEM results. The local full-population protocol is documented separately and does not authorize a new Gemini run or another model experiment.
- MIRACL Thai: a pinned adapter and synthetic offline mini fixture; the full external corpus is not committed and the full dev BM25 run is not part of normal validation.
- RAGTruth: an adapter, pinned preparation, deterministic heuristic baseline, optional HHEM evaluator, and protocol-specific local results; external files remain outside Git.
- HHEM-2.1-Open: an opt-in model-backed evaluator with reviewed revision and weight-file safeguards; it is not imported by the default offline path.
- thai-rag-eval-200: five manually curated seed records, not a 200-case benchmark.
Dataset rules and manifests are in datasets/README.md and datasets/manifests/. The canonical measured-result summary is docs/benchmark-results.md.
Retrieval metrics are implemented locally so formulas are visible and tested.
Sequence callers use binary relevance; MIRACL qrel mappings preserve positive
graded labels for nDCG. Duplicate retrieved IDs cannot create extra hits.
Precision retains k as its denominator when fewer than k results are
returned. Empty relevance sets score zero and are not silently treated as
successful retrieval.
Initial constrained failure categories include PASS, RETRIEVAL_MISS,
WRONG_ANSWER, HALLUCINATION, UNSUPPORTED_CLAIM, WRONG_CITATION,
INCOMPLETE_ANSWER, CONTEXT_CONFLICT, SHOULD_ABSTAIN,
DATASET_AMBIGUOUS, and GROUND_TRUTH_ERROR.
Every result envelope records run ID, dataset name/version, system name, top-k, evaluator versions, optional model/provider/prompt/retriever details, random seed, timestamp, and Git commit when available. Local evaluation requires no paid service or API key.
External datasets and model weights stay outside Git. HHEM execution is opt-in, pinned to one reviewed revision, and guarded by a manifest that checks the tokenizer revision, configuration/custom-code hashes, and safe weight-file identity before importing remote code. The repository does not redistribute external MIRACL/RAGTruth corpora or HHEM weights.
See the reproducibility guide for installation, offline fixtures, opt-in external preparation, HHEM setup, and artifact comparison.
- Future: publish additional frozen benchmark baselines with their full protocol and provenance.
- Future: expand the curated Thai evaluation benchmark.
- Future: add code-generation and code-migration evaluator adapters.
Interactive evaluation runs only in the private Local Workspace, not the
hosted public Evidence Console. External production benchmarks and provider
inference are not implied by this local feature. The v0.2.0 Workspace
package release remains future and owner-gated.
See CONTRIBUTING.md for development gates and workflow, SECURITY.md for security boundaries, and LICENSE for the MIT license.
The full MIRACL Thai dev BM25 run is not executed because the current in-memory index resource requirements were not safely established. HHEM CPU inference is slow, and threshold calibration/bootstrap intervals remain future work. The completed local RAGTruth result is protocol-specific and is not a leaderboard or universal generalization claim. MIRACL and RAGTruth mini fixtures are synthetic and must not be presented as official benchmark performance.


