evaltrack 0.2.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {evaltrack-0.2.0 → evaltrack-0.4.0}/.gitignore +5 -0
- evaltrack-0.4.0/CHANGELOG.md +99 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/CONTRIBUTING.md +22 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/PKG-INFO +45 -120
- evaltrack-0.4.0/README.md +164 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/SECURITY.md +1 -1
- evaltrack-0.4.0/docs/changelog.md +1 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/ci-cd.md +27 -11
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/cli.md +33 -13
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/configuration.md +5 -13
- evaltrack-0.4.0/docs/contributing.md +1 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/eval-runners.md +27 -13
- evaltrack-0.4.0/docs/examples.md +1 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/flakiness.md +11 -8
- evaltrack-0.4.0/docs/getting-started.md +144 -0
- evaltrack-0.4.0/docs/index.md +91 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/marker.md +5 -4
- evaltrack-0.4.0/docs/outputs.md +94 -0
- evaltrack-0.4.0/docs/reference/api.md +28 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/repositories.md +19 -17
- evaltrack-0.2.0/ROADMAP.md → evaltrack-0.4.0/docs/roadmap.md +0 -2
- evaltrack-0.4.0/docs/stylesheets/extra.css +21 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/translators.md +11 -9
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/__init__.py +6 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/cli.py +202 -14
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/config.py +21 -3
- evaltrack-0.4.0/evaltrack/converters.py +8 -0
- evaltrack-0.4.0/evaltrack/core/converters.py +97 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/recorder.py +34 -9
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/run_record.py +45 -31
- evaltrack-0.4.0/evaltrack/core/type_paths.py +12 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/user_values.py +37 -19
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/marked_test.py +4 -6
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/pytest_plugin.py +57 -13
- evaltrack-0.4.0/evaltrack/report/__init__.py +1 -0
- evaltrack-0.4.0/evaltrack/report/page.py +204 -0
- evaltrack-0.4.0/evaltrack/report/static/report.html +77 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/repository.py +8 -3
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/translators/__init__.py +3 -9
- evaltrack-0.4.0/evaltrack/ui/__init__.py +1 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/app.py +17 -14
- evaltrack-0.4.0/evaltrack/ui/models.py +45 -0
- evaltrack-0.4.0/evaltrack/ui/routes/history.py +35 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/routes/refs.py +17 -29
- evaltrack-0.4.0/evaltrack/ui/routes/runs.py +164 -0
- evaltrack-0.4.0/evaltrack/ui/run_cache.py +60 -0
- evaltrack-0.2.0/evaltrack/ui/static/assets/index-BZO2JqWB.css → evaltrack-0.4.0/evaltrack/ui/static/assets/index-C64eCxny.css +1 -1
- evaltrack-0.4.0/evaltrack/ui/static/assets/index-CdxqKllv.js +56 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/static/index.html +2 -2
- evaltrack-0.4.0/evaltrack/views/__init__.py +2 -0
- evaltrack-0.4.0/evaltrack/views/mainline.py +174 -0
- evaltrack-0.4.0/evaltrack/views/models.py +37 -0
- evaltrack-0.4.0/evaltrack/views/refs.py +41 -0
- evaltrack-0.4.0/evaltrack/views/run_view.py +116 -0
- evaltrack-0.4.0/examples/README.md +52 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/examples/test_01_function.py +10 -24
- {evaltrack-0.2.0 → evaltrack-0.4.0}/examples/test_02_scores.py +14 -34
- evaltrack-0.4.0/examples/test_03_reliability.py +57 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/examples/test_04_agent_tool_use.py +16 -27
- {evaltrack-0.2.0 → evaltrack-0.4.0}/examples/test_05_llm_judge.py +18 -40
- {evaltrack-0.2.0 → evaltrack-0.4.0}/examples/test_06_fake_tool_in_inputs.py +29 -64
- evaltrack-0.2.0/examples/test_08_deepeval.py → evaltrack-0.4.0/examples/test_07_deepeval.py +21 -65
- evaltrack-0.2.0/examples/test_09_deepeval_repeats.py → evaltrack-0.4.0/examples/test_08_deepeval_repeats.py +15 -35
- evaltrack-0.2.0/examples/test_07_other_eval_runner.py → evaltrack-0.4.0/examples/test_09_other_eval_runner.py +17 -44
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/README.md +7 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/eslint.config.js +19 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/package-lock.json +99 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/package.json +2 -1
- evaltrack-0.4.0/frontend/report.html +21 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/App.tsx +61 -15
- evaltrack-0.4.0/frontend/src/api.test.ts +58 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/api.ts +67 -3
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/baseline.test.ts +27 -5
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/baseline.ts +18 -10
- evaltrack-0.4.0/frontend/src/components/Brand.tsx +24 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/Drawer.tsx +14 -2
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/RunDetail.tsx +109 -76
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/RunDiff.tsx +37 -6
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/Sidebar.tsx +16 -24
- evaltrack-0.4.0/frontend/src/deferred.test.ts +121 -0
- evaltrack-0.4.0/frontend/src/deferred.ts +151 -0
- evaltrack-0.4.0/frontend/src/drawerOpener.test.ts +175 -0
- evaltrack-0.4.0/frontend/src/drawerOpener.ts +100 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/extract.test.ts +31 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/extract.ts +9 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/index.css +28 -0
- evaltrack-0.4.0/frontend/src/report.tsx +187 -0
- evaltrack-0.4.0/frontend/src/reportData.test.ts +152 -0
- evaltrack-0.4.0/frontend/src/reportData.ts +106 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/test-support.ts +0 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/types.ts +3 -4
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/tsconfig.json +1 -1
- evaltrack-0.4.0/frontend/vite.report.config.ts +23 -0
- evaltrack-0.4.0/hatch_build.py +42 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/pyproject.toml +21 -8
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/helpers.py +2 -2
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/test_export.py +2 -3
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/test_promote.py +21 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/test_push.py +22 -1
- evaltrack-0.4.0/tests/cli/test_report.py +330 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/test_ui_command.py +1 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/conftest.py +17 -0
- evaltrack-0.4.0/tests/core/test_converters.py +119 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_recorder.py +36 -27
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_run_record.py +27 -56
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_user_values.py +28 -0
- evaltrack-0.4.0/tests/plugin/test_converters.py +53 -0
- evaltrack-0.4.0/tests/plugin/test_large_outputs.py +62 -0
- evaltrack-0.4.0/tests/report_support.py +39 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/test_config.py +11 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/test_public_api.py +19 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/conftest.py +10 -6
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/test_history.py +19 -1
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/test_reads.py +139 -22
- evaltrack-0.4.0/tests/ui/test_report.py +315 -0
- evaltrack-0.4.0/tests/ui/test_report_route.py +82 -0
- evaltrack-0.4.0/tests/ui/test_run_cache.py +92 -0
- evaltrack-0.2.0/CHANGELOG.md +0 -24
- evaltrack-0.2.0/README.md +0 -239
- evaltrack-0.2.0/evaltrack/ui/__init__.py +0 -7
- evaltrack-0.2.0/evaltrack/ui/models.py +0 -77
- evaltrack-0.2.0/evaltrack/ui/routes/history.py +0 -119
- evaltrack-0.2.0/evaltrack/ui/routes/runs.py +0 -116
- evaltrack-0.2.0/evaltrack/ui/static/assets/index-Cg522kcf.js +0 -56
- evaltrack-0.2.0/examples/README.md +0 -87
- evaltrack-0.2.0/examples/test_03_reliability.py +0 -75
- evaltrack-0.2.0/examples/test_10_deepeval_traced.py +0 -200
- evaltrack-0.2.0/hatch_build.py +0 -30
- {evaltrack-0.2.0 → evaltrack-0.4.0}/LICENSE +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/docs/eval-shape.md +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/errors.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/eval_round.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/gate.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/projection.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/refs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/repetition.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/results.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/run_context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/core/score_bars.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/failure.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/history/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/history/reliability.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/history/score_history.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/history/segments.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/py.typed +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/azure.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/file.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/lifecycle.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/s3.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/repositories/store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/translators/deepeval.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/translators/protocol.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/translators/pydantic_evals.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/routes/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/routes/meta.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/routes/static.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/security.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/evaltrack/ui/static/favicon.svg +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/.gitignore +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/index.html +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/public/favicon.svg +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/attemptCounts.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/attemptCounts.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/attemptErrors.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/attemptErrors.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/binaryEnvelope.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/binaryEnvelope.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/caseFilter.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/caseFilter.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/caseSections.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/caseSections.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/checks.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/checks.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/clamp.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/clamp.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/ConfirmDialog.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/CopyButton.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/EvaluatorList.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/JsonDiff.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/JsonView.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/JsonView.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/OutcomeCard.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/OutcomeCard.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/PrRef.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/RunDetail.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/RunDiff.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/ScoreMeter.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/ScoreTrend.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/TableScroll.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/TextDiff.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/TextDiff.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/ThemeToggle.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/components/ThemeToggle.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/diff.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/diff.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/format.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/format.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/grouping.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/grouping.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/load.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/main.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/reliabilityNote.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/reliabilityNote.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/results.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/runBody.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/runOutcome.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/runOutcome.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/scoreTrend.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/scoreTrend.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/shortenUrl.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/src/shortenUrl.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/frontend/vite.config.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/test_listing.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/cli/test_main.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_errors.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_eval_round.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_refs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_results.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/core/test_score_bars.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/factories.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/fakes.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/history/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/history/test_reliability.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/history/test_score_history.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/marked_test/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/marked_test/conftest.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/marked_test/test_api.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/marked_test/test_merge.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/marked_test/test_run_loop.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/helpers.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_async_plugins.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_gate_integration.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_marker.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_options.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_outcomes.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_reruns.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/plugin/test_termination.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/conftest.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/helpers.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_azure_store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_file_store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_open_repository.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_repository_refs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_repository_retention.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_repository_runs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_s3_store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/repositories/test_store_contract.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/test_context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/test_failure.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/translators/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/translators/contract.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/translators/test_deepeval.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/translators/test_pydantic_evals.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/translators/test_registry.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/test_hardening.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/test_static.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.4.0}/tests/ui/test_writes.py +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].
|
|
6
|
+
|
|
7
|
+
[keep a changelog]: https://keepachangelog.com/en/1.1.0/
|
|
8
|
+
[semantic versioning]: https://semver.org/spec/v2.0.0.html
|
|
9
|
+
|
|
10
|
+
## [Unreleased]
|
|
11
|
+
|
|
12
|
+
## [0.4.0] - 2026-10-08
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- `evaltrack report`, which writes a recorded run as one HTML file with the run embedded. It shows
|
|
17
|
+
the run as the dashboard does and opens anywhere with no server and no network, for CI artifacts
|
|
18
|
+
and sharing results. The page also holds the run's history over the mainline and the `baseline`
|
|
19
|
+
run, so **Compare to mainline** works in it. A value over 16 KB is left out of the page unless
|
|
20
|
+
`--full` is passed, so a report of a large run stays small. See
|
|
21
|
+
[CLI › report](https://evaltrack.jesravnbol.dk/latest/cli/#evaltrack-report).
|
|
22
|
+
- **Report** in the dashboard, on a run, which saves the same page for the run on screen, to share
|
|
23
|
+
with someone without the dashboard.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- The dashboard's history leaves out a promoted run whose body does not parse, and logs it, instead
|
|
28
|
+
of failing the whole history. A damaged `baseline` reflog still fails it.
|
|
29
|
+
- `evaltrack.ui` no longer re-exports `create_app` and `MountedRepository`. Import them from
|
|
30
|
+
`evaltrack.ui.app`.
|
|
31
|
+
- **Breaking:** the mainline is the configured `remote` and nothing else. A dashboard with only a
|
|
32
|
+
local repository mounted no longer measures reliability history over the local `baseline`.
|
|
33
|
+
`promote` and `push --ref baseline` into the local repository now exit `2`. To tell the local
|
|
34
|
+
repository apart, both read `pyproject.toml`, so an invalid `[tool.evaltrack]` table now stops
|
|
35
|
+
them with `--repository` too.
|
|
36
|
+
|
|
37
|
+
## [0.3.0] - 2026-09-26
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- The documentation site at [evaltrack.jesravnbol.dk](https://evaltrack.jesravnbol.dk), versioned by
|
|
42
|
+
minor release, with an API reference generated from the docstrings.
|
|
43
|
+
- `RunRepository`, `RunSummary` and `ReflogEntry` are exported from the package root. They are what
|
|
44
|
+
`open_repository()`, `list_runs()` and `get_ref()` hand back, so a reader can now name every type
|
|
45
|
+
on the repository read path.
|
|
46
|
+
- At the end of a pytest session, evaltrack reports each attempt whose stored output is larger than
|
|
47
|
+
256 KB. The report names the test and the case, and says what to do. See
|
|
48
|
+
[Stored outputs › Large outputs](https://evaltrack.jesravnbol.dk/latest/outputs/#large-outputs).
|
|
49
|
+
- `evaltrack.converters.register` registers a converter, which changes how evaltrack stores the
|
|
50
|
+
values of one type, for example to keep the tool calls of an agent run. See
|
|
51
|
+
[Stored outputs › Converters](https://evaltrack.jesravnbol.dk/latest/outputs/#converters).
|
|
52
|
+
- The dashboard stays responsive on a large run. It sends each value over 16 KB to the browser as a
|
|
53
|
+
preview with its size and a hash, and sends the whole value when a pane needs it. This applies to
|
|
54
|
+
inputs, expected outputs, metadata and attempt outputs. Two runs still diff. A large value is
|
|
55
|
+
compared by a hash of the same part that is compared for a small value. The server still reads the
|
|
56
|
+
whole stored run. It keeps the last few runs that it read, so the panes of an open run do not read
|
|
57
|
+
the run again.
|
|
58
|
+
- While a run loads, the dashboard shows how much of it has arrived. The run list shows the stored
|
|
59
|
+
size of each run, which the summary sidecar now records.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- **Breaking:** evaltrack stores a dataclass without its private fields, the fields whose name
|
|
64
|
+
starts with `_`. A library often keeps its internal state in such fields, for example the message
|
|
65
|
+
history of an agent framework. When a task returned such an object, a run grew to hundreds of
|
|
66
|
+
megabytes. See
|
|
67
|
+
[Stored outputs › Private fields](https://evaltrack.jesravnbol.dk/latest/outputs/#private-fields).
|
|
68
|
+
- evaltrack writes a run as compact JSON, not indented. The saving is largest for deeply nested
|
|
69
|
+
values. The run that prompted this change went from 221 MB to 79 MB. A run of mostly long text
|
|
70
|
+
saves much less. evaltrack still reads indented runs, so the run schema version does not change.
|
|
71
|
+
`evaltrack export` prints the compact form.
|
|
72
|
+
|
|
73
|
+
### Removed
|
|
74
|
+
|
|
75
|
+
- **Breaking:** the `keep_raw_results` setting. Remove it from `[tool.evaltrack]`, or evaltrack
|
|
76
|
+
stops with an error that says so. A run no longer stores the eval runner's own result objects, and
|
|
77
|
+
a recorded test has no `raw_results` field. These objects grew with every output, and a loaded run
|
|
78
|
+
cannot give them back to the runner. If your eval runner records traces, use them for the full
|
|
79
|
+
data. Runs recorded with raw results still load, and the download and `export` include them. The
|
|
80
|
+
dashboard does not show them.
|
|
81
|
+
|
|
82
|
+
## [0.2.0] - 2026-09-15
|
|
83
|
+
|
|
84
|
+
### Added
|
|
85
|
+
|
|
86
|
+
- Amazon S3 as a remote repository backend, addressed as `s3://bucket[/prefix]` and installed with
|
|
87
|
+
the `[s3]` extra. Authentication uses boto3's default credential chain. See
|
|
88
|
+
[Repositories › Amazon S3](https://evaltrack.jesravnbol.dk/latest/repositories/#amazon-s3).
|
|
89
|
+
|
|
90
|
+
## [0.1.0] - 2026-09-11
|
|
91
|
+
|
|
92
|
+
The first public release. evaltrack is a pytest plugin that records, gates and tracks LLM evals. See
|
|
93
|
+
the [README](https://github.com/jesrav/evaltrack#readme) to get started.
|
|
94
|
+
|
|
95
|
+
[unreleased]: https://github.com/jesrav/evaltrack/compare/v0.4.0...HEAD
|
|
96
|
+
[0.4.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.4.0
|
|
97
|
+
[0.3.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.3.0
|
|
98
|
+
[0.2.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.2.0
|
|
99
|
+
[0.1.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.1.0
|
|
@@ -26,7 +26,7 @@ An editable install serves a fallback page at `evaltrack ui` until `just fronten
|
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
just test # run the test suite
|
|
29
|
-
just lint # ruff, basedpyright (strict), bandit, prettier (via pre-commit)
|
|
29
|
+
just lint # ruff, basedpyright (strict), import-linter, bandit, prettier (via pre-commit)
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
The justfile has the rest: the frontend checks, the runnable examples, and the live cloud
|
|
@@ -44,12 +44,26 @@ Locally, the Azure tests use `az login`. The S3 tests use the AWS profile that `
|
|
|
44
44
|
Run `AWS_PROFILE=<profile> just integration_test`, or put `AWS_PROFILE=<profile>` in a `.env` file.
|
|
45
45
|
The justfile loads that file and git ignores it.
|
|
46
46
|
|
|
47
|
+
## Documentation
|
|
48
|
+
|
|
49
|
+
The guides in `docs/` are the source. The site at
|
|
50
|
+
[evaltrack.jesravnbol.dk](https://evaltrack.jesravnbol.dk) is built from them with Zensical, plus an
|
|
51
|
+
API reference from the docstrings.
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
just docs_build # strict: a broken link or docstring cross-reference fails it, as in CI
|
|
55
|
+
just docs_serve # live preview on http://localhost:8000
|
|
56
|
+
just docs_fallback # the same site with MkDocs and mkdocs-material, which must keep working
|
|
57
|
+
```
|
|
58
|
+
|
|
47
59
|
## Conventions
|
|
48
60
|
|
|
49
61
|
- Branch off `main`. A pre-commit hook blocks direct commits to `main`.
|
|
50
62
|
- Add tests for new behavior and for bug fixes.
|
|
51
63
|
- Prefer dependency injection with fakes over mocking. Test what a caller can observe, not internal
|
|
52
64
|
behavior.
|
|
65
|
+
- The package's layers are set out in `.importlinter`, and `just lint` checks them. If a new import
|
|
66
|
+
breaks a rule, move the code, or change the rule there and say why.
|
|
53
67
|
- If you change the stored run format, bump `RUN_SCHEMA_VERSION`. Its docstring in
|
|
54
68
|
`evaltrack/core/run_record.py` says what else a bump needs.
|
|
55
69
|
|
|
@@ -62,3 +76,10 @@ merged, publish a GitHub release with the tag `v<version>` and the changelog sec
|
|
|
62
76
|
That runs `release.yml`, which refuses a tag that does not match the declared version, builds and
|
|
63
77
|
smoke-tests the distribution, and uploads it to PyPI through the `pypi` environment. Releasing needs
|
|
64
78
|
write access to the repository and approval on that environment.
|
|
79
|
+
|
|
80
|
+
Once the package is on PyPI, the same workflow deploys the docs for the release's minor version
|
|
81
|
+
(`0.2` for `0.2.x`) and moves `latest` to it. `dev` is deployed from `main` on every push. Both go
|
|
82
|
+
to the `gh-pages` branch through [mike]. The branch, the Pages settings and the DNS record were set
|
|
83
|
+
up once by hand.
|
|
84
|
+
|
|
85
|
+
[mike]: https://github.com/squidfunk/mike
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: evaltrack
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Pytest plugin to record, gate and track LLM eval runs from pydantic-evals, DeepEval or a runner you write a translator for
|
|
5
5
|
Project-URL: Homepage, https://github.com/jesrav/evaltrack
|
|
6
6
|
Project-URL: Repository, https://github.com/jesrav/evaltrack
|
|
7
|
-
Project-URL: Documentation, https://
|
|
7
|
+
Project-URL: Documentation, https://evaltrack.jesravnbol.dk
|
|
8
8
|
Project-URL: Issues, https://github.com/jesrav/evaltrack/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/jesrav/evaltrack/blob/main/CHANGELOG.md
|
|
10
10
|
Author-email: Jes Ravnbøl <mail@jesravnbol.dk>
|
|
@@ -51,6 +51,7 @@ Description-Content-Type: text/markdown
|
|
|
51
51
|
|
|
52
52
|
<p align="center">
|
|
53
53
|
<a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/pypi/v/evaltrack.svg" alt="PyPI version"></a>
|
|
54
|
+
<a href="https://evaltrack.jesravnbol.dk"><img src="https://img.shields.io/badge/docs-evaltrack.jesravnbol.dk-3f6fe4" alt="Documentation"></a>
|
|
54
55
|
<a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="Python versions"></a>
|
|
55
56
|
<a href="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml"><img src="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
56
57
|
<a href="https://github.com/jesrav/evaltrack/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"></a>
|
|
@@ -61,9 +62,23 @@ Description-Content-Type: text/markdown
|
|
|
61
62
|
|
|
62
63
|
Evals are tests. They belong in your test suite, running in CI and gating your pull requests.
|
|
63
64
|
|
|
64
|
-
evaltrack
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
**Documentation**: [evaltrack.jesravnbol.dk](https://evaltrack.jesravnbol.dk)
|
|
66
|
+
|
|
67
|
+
evaltrack is a pytest plugin that gates and tracks your evals, and handles LLM flakiness without
|
|
68
|
+
rerunning CI. Your evals run in the pytest suite and CI pipeline that you already have, with the
|
|
69
|
+
eval runner you already use. Mark a test with `@pytest.mark.evaltrack` and hand it the eval:
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
import evaltrack
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@pytest.mark.evaltrack(score_bars={"helpfulness": 0.8}, flake_reruns=2)
|
|
76
|
+
def test_support_agent() -> None:
|
|
77
|
+
...
|
|
78
|
+
evaltrack.run(dataset.evaluate_sync, support_task)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
That one marker gives you three things:
|
|
67
82
|
|
|
68
83
|
- **Gate on assertions and scores.** Keep using your existing eval runner and evaltrack turns your
|
|
69
84
|
runner's assertions into a pass/fail gate, so a failing case fails the test. It also adds **score
|
|
@@ -72,11 +87,12 @@ suite and CI pipeline that you already have, with the eval runner you already us
|
|
|
72
87
|
- **Handle flakiness without rerunning CI.** LLM output is nondeterministic, so evaltrack lets you
|
|
73
88
|
rerun only the evals that fail (not the whole CI pipeline) and track each case's pass-rate over
|
|
74
89
|
time. See [Flakiness & reliability].
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
- **Keep every run.** Runs land in a repository you own (local files, or Azure Blob Storage or
|
|
91
|
+
Amazon S3 as the remote), with a dashboard you run locally to inspect them and compare them across
|
|
92
|
+
PRs and releases. Over the mainline (the runs you have promoted) it tracks each case's pass-rate
|
|
93
|
+
and each score, so changes in quality that never trip the gate are still visible. You can save any
|
|
94
|
+
run as a standalone HTML file that opens anywhere, to share or attach to a CI job. See
|
|
95
|
+
[Repositories and storage] and [CI/CD].
|
|
80
96
|
|
|
81
97
|
![Animated demo: a failing eval run in the dashboard, with per-case verdicts, scores against their bars, reliability history, and a comparison against the baseline][dashboard-demo]
|
|
82
98
|
|
|
@@ -100,30 +116,16 @@ flowchart LR
|
|
|
100
116
|
base -.->|review against baseline| ui
|
|
101
117
|
```
|
|
102
118
|
|
|
103
|
-
##
|
|
104
|
-
|
|
105
|
-
The quickstart below uses pydantic-evals. If you are new to it, [start here]. If you write your
|
|
106
|
-
evals in [DeepEval], [Eval runners] goes through the same steps with a DeepEval run.
|
|
107
|
-
|
|
108
|
-
### 1. Install
|
|
119
|
+
## Quickstart
|
|
109
120
|
|
|
110
121
|
```bash
|
|
111
|
-
# The quick start uses pydantic-evals as the eval runner and evaluates an agent built in pydantic-ai, but neither is required for evaltrack.
|
|
112
122
|
uv add "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
|
|
113
|
-
# or
|
|
114
|
-
pip install "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
|
|
115
123
|
```
|
|
116
124
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
> Linux and macOS are supported, on Python 3.11 to 3.14.
|
|
120
|
-
> If your machine runs Windows, run evaltrack under WSL2.
|
|
121
|
-
|
|
122
|
-
### 2. Write a tracked eval
|
|
125
|
+
The `ui` extra is the dashboard, `pydantic-evals` is the runner this example uses, and pydantic-ai
|
|
126
|
+
is the agent framework. evaltrack does not require them but the quickstart uses them.
|
|
123
127
|
|
|
124
|
-
Add `@pytest.mark.evaltrack` to a test and hand the eval to `evaltrack.run()
|
|
125
|
-
sync. For an async test, use `await evaltrack.run_async(dataset.evaluate, task)` with your async
|
|
126
|
-
plugin.
|
|
128
|
+
Add `@pytest.mark.evaltrack` to a test and hand the eval to `evaltrack.run()`:
|
|
127
129
|
|
|
128
130
|
```python
|
|
129
131
|
import pytest
|
|
@@ -175,79 +177,12 @@ def test_support_agent() -> None:
|
|
|
175
177
|
evaltrack.run(dataset.evaluate_sync, support_task)
|
|
176
178
|
```
|
|
177
179
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
judge scripted.
|
|
182
|
-
|
|
183
|
-
<!-- prettier-ignore -->
|
|
184
|
-
> [!IMPORTANT]
|
|
185
|
-
> One test needs to be one eval. evaltrack records one eval per test, whichever runner produced it,
|
|
186
|
-
> and the test's name identifies that eval everywhere. If you want two evals, write two tests.
|
|
187
|
-
|
|
188
|
-
### 3. Run it
|
|
189
|
-
|
|
190
|
-
`evaltrack` is a registered pytest marker. You can select only your evals:
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
pytest -m "evaltrack"
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
Each pytest session produces a **run**, a snapshot of all recorded eval results, saved to
|
|
197
|
-
`.evaltrack/` by default (add `.evaltrack/` to your project's `.gitignore`).
|
|
198
|
-
|
|
199
|
-
CI can run the same command. See [CI/CD].
|
|
200
|
-
|
|
201
|
-
### 4. See the results
|
|
202
|
-
|
|
203
|
-
```bash
|
|
204
|
-
evaltrack ui
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
This serves the dashboard at `http://127.0.0.1:8765` and prints the link. Browse scores and
|
|
208
|
-
pass-rates per case, and diff any two runs. Open a case to see each score against its bar and its
|
|
209
|
-
history over the mainline.
|
|
210
|
-
|
|
211
|
-
<!-- prettier-ignore -->
|
|
212
|
-
> [!NOTE]
|
|
213
|
-
> The dashboard's React frontend is beta, written largely by AI coding agents. The security notes
|
|
214
|
-
> are in the [security policy].
|
|
215
|
-
|
|
216
|
-
### 5. Track a shared remote (optional)
|
|
217
|
-
|
|
218
|
-
Declare your repositories in `pyproject.toml`. `local` is where the plugin saves runs. `remote` is a
|
|
219
|
-
shared repository that your CI writes to (Azure Blob Storage or Amazon S3). It stores the baseline
|
|
220
|
-
(the run recorded for what is currently deployed) and the PR history.
|
|
221
|
-
|
|
222
|
-
```toml
|
|
223
|
-
[tool.evaltrack]
|
|
224
|
-
local = "./.evaltrack"
|
|
225
|
-
remote = "azure://account/evals"
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
`evaltrack ui` then mounts both and opens on your latest local run. Click **Compare to mainline** to
|
|
229
|
-
diff your run against the baseline run, the one recorded for what is deployed. See [Repositories and
|
|
230
|
-
storage][configuring repositories] for the full setup.
|
|
231
|
-
|
|
232
|
-
---
|
|
233
|
-
|
|
234
|
-
## Documentation
|
|
235
|
-
|
|
236
|
-
Guides:
|
|
237
|
-
|
|
238
|
-
- [The shape of an eval]: cases, evaluators, results, attempts, rounds and runs.
|
|
239
|
-
- [The evaltrack marker]: the gate, score bars, exceptions, xfail.
|
|
240
|
-
- [Flakiness & reliability]: `flake_reruns`, `repeats`, cross-run pass-rates, when to bump
|
|
241
|
-
`eval_version`.
|
|
242
|
-
- [Eval runners]: using pydantic-evals and DeepEval, and connecting another runner ([Translators]).
|
|
243
|
-
- [Repositories and storage]: the run/ref/baseline model, where runs are stored, cleaning up, and
|
|
244
|
-
reading runs from Python.
|
|
245
|
-
- [CI/CD]: recording a run per PR, promoting on merge, and what CI has to get right.
|
|
246
|
-
- [Examples]: runnable evals that you can copy.
|
|
247
|
-
|
|
248
|
-
Reference: [CLI] and [Configuration].
|
|
180
|
+
`pytest -m evaltrack` runs your evals and records a run, and `evaltrack ui` opens the dashboard on
|
|
181
|
+
it. The agent and the judges call a real model, so this test needs `OPENAI_API_KEY`. The [examples]
|
|
182
|
+
run without one.
|
|
249
183
|
|
|
250
|
-
|
|
184
|
+
[Getting started] walks through this example step by step, from the install to a shared remote, and
|
|
185
|
+
[Eval runners] does the same with DeepEval.
|
|
251
186
|
|
|
252
187
|
## Compatibility
|
|
253
188
|
|
|
@@ -255,32 +190,22 @@ evaltrack is pre-1.0, so breaking changes can happen and the changelog will say
|
|
|
255
190
|
keep stable: the names `import evaltrack` exports, `evaltrack.translators.register` and the
|
|
256
191
|
`Translator` protocol, the marker kwargs, the CLI commands and flags and what its exit codes mean,
|
|
257
192
|
the `[tool.evaltrack]` keys, and the stored run JSON, where fields may be added but keep their
|
|
258
|
-
meaning.
|
|
193
|
+
meaning.
|
|
259
194
|
|
|
260
195
|
Planned additions are in a rough [roadmap].
|
|
261
196
|
|
|
262
197
|
[pydantic-evals]: https://ai.pydantic.dev/evals/
|
|
263
198
|
[DeepEval]: https://deepeval.com/
|
|
264
|
-
[Eval runners]: https://
|
|
265
|
-
[the overall shape]: https://
|
|
266
|
-
[translators]: https://github.com/jesrav/evaltrack/blob/main/docs/translators.md
|
|
267
|
-
[start here]: https://ai.pydantic.dev/evals/
|
|
199
|
+
[Eval runners]: https://evaltrack.jesravnbol.dk/latest/eval-runners/
|
|
200
|
+
[the overall shape]: https://evaltrack.jesravnbol.dk/latest/eval-shape/
|
|
268
201
|
[online evals]: https://pydantic.dev/docs/ai/evals/online-evaluation/
|
|
269
202
|
[logfire]: https://pydantic.dev/docs/logfire/get-started/
|
|
270
203
|
[dashboard-demo]:
|
|
271
204
|
https://raw.githubusercontent.com/jesrav/evaltrack/main/docs/images/dashboard-demo.gif
|
|
272
|
-
[the evaltrack marker]: https://
|
|
273
|
-
[
|
|
274
|
-
[
|
|
275
|
-
[
|
|
276
|
-
|
|
277
|
-
[
|
|
278
|
-
[examples]: https://
|
|
279
|
-
[llm judge example]: https://github.com/jesrav/evaltrack/blob/main/examples/test_05_llm_judge.py
|
|
280
|
-
[ci/cd]: https://github.com/jesrav/evaltrack/blob/main/docs/ci-cd.md
|
|
281
|
-
[cli]: https://github.com/jesrav/evaltrack/blob/main/docs/cli.md
|
|
282
|
-
[configuration]: https://github.com/jesrav/evaltrack/blob/main/docs/configuration.md
|
|
283
|
-
[security policy]: https://github.com/jesrav/evaltrack/blob/main/SECURITY.md
|
|
284
|
-
[dashboard trust model]:
|
|
285
|
-
https://github.com/jesrav/evaltrack/blob/main/SECURITY.md#dashboard-trust-model
|
|
286
|
-
[roadmap]: https://github.com/jesrav/evaltrack/blob/main/ROADMAP.md
|
|
205
|
+
[the evaltrack marker]: https://evaltrack.jesravnbol.dk/latest/marker/
|
|
206
|
+
[flakiness & reliability]: https://evaltrack.jesravnbol.dk/latest/flakiness/
|
|
207
|
+
[repositories and storage]: https://evaltrack.jesravnbol.dk/latest/repositories/
|
|
208
|
+
[ci/cd]: https://evaltrack.jesravnbol.dk/latest/ci-cd/
|
|
209
|
+
[roadmap]: https://evaltrack.jesravnbol.dk/latest/roadmap/
|
|
210
|
+
[getting started]: https://evaltrack.jesravnbol.dk/latest/getting-started/
|
|
211
|
+
[examples]: https://evaltrack.jesravnbol.dk/latest/examples/
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/jesrav/evaltrack/main/assets/wordmark.svg" alt="evaltrack" width="320">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/pypi/v/evaltrack.svg" alt="PyPI version"></a>
|
|
7
|
+
<a href="https://evaltrack.jesravnbol.dk"><img src="https://img.shields.io/badge/docs-evaltrack.jesravnbol.dk-3f6fe4" alt="Documentation"></a>
|
|
8
|
+
<a href="https://pypi.org/project/evaltrack/"><img src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="Python versions"></a>
|
|
9
|
+
<a href="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml"><img src="https://github.com/jesrav/evaltrack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
10
|
+
<a href="https://github.com/jesrav/evaltrack/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"></a>
|
|
11
|
+
<img src="https://img.shields.io/badge/basedpyright-checked-42b983" alt="basedpyright: strict">
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
# evaltrack
|
|
15
|
+
|
|
16
|
+
Evals are tests. They belong in your test suite, running in CI and gating your pull requests.
|
|
17
|
+
|
|
18
|
+
**Documentation**: [evaltrack.jesravnbol.dk](https://evaltrack.jesravnbol.dk)
|
|
19
|
+
|
|
20
|
+
evaltrack is a pytest plugin that gates and tracks your evals, and handles LLM flakiness without
|
|
21
|
+
rerunning CI. Your evals run in the pytest suite and CI pipeline that you already have, with the
|
|
22
|
+
eval runner you already use. Mark a test with `@pytest.mark.evaltrack` and hand it the eval:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
import evaltrack
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@pytest.mark.evaltrack(score_bars={"helpfulness": 0.8}, flake_reruns=2)
|
|
29
|
+
def test_support_agent() -> None:
|
|
30
|
+
...
|
|
31
|
+
evaltrack.run(dataset.evaluate_sync, support_task)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
That one marker gives you three things:
|
|
35
|
+
|
|
36
|
+
- **Gate on assertions and scores.** Keep using your existing eval runner and evaltrack turns your
|
|
37
|
+
runner's assertions into a pass/fail gate, so a failing case fails the test. It also adds **score
|
|
38
|
+
bars**. Most runners record a numeric score without judging it, and a bar turns that score into a
|
|
39
|
+
gate that fails any case under it. See [The evaltrack marker].
|
|
40
|
+
- **Handle flakiness without rerunning CI.** LLM output is nondeterministic, so evaltrack lets you
|
|
41
|
+
rerun only the evals that fail (not the whole CI pipeline) and track each case's pass-rate over
|
|
42
|
+
time. See [Flakiness & reliability].
|
|
43
|
+
- **Keep every run.** Runs land in a repository you own (local files, or Azure Blob Storage or
|
|
44
|
+
Amazon S3 as the remote), with a dashboard you run locally to inspect them and compare them across
|
|
45
|
+
PRs and releases. Over the mainline (the runs you have promoted) it tracks each case's pass-rate
|
|
46
|
+
and each score, so changes in quality that never trip the gate are still visible. You can save any
|
|
47
|
+
run as a standalone HTML file that opens anywhere, to share or attach to a CI job. See
|
|
48
|
+
[Repositories and storage] and [CI/CD].
|
|
49
|
+
|
|
50
|
+
![Animated demo: a failing eval run in the dashboard, with per-case verdicts, scores against their bars, reliability history, and a comparison against the baseline][dashboard-demo]
|
|
51
|
+
|
|
52
|
+
[pydantic-evals] and [DeepEval] are supported out of the box. Another runner that fits [the overall
|
|
53
|
+
shape] needs a small translator ([Eval runners]).
|
|
54
|
+
|
|
55
|
+
<!-- prettier-ignore -->
|
|
56
|
+
> [!NOTE]
|
|
57
|
+
> evaltrack is for batch evals: you run a fixed dataset through your agent or LLM logic and score
|
|
58
|
+
> the results offline. For live production monitoring and tracing, see something like [online evals] and
|
|
59
|
+
> [Logfire].
|
|
60
|
+
|
|
61
|
+
## What you end up with
|
|
62
|
+
|
|
63
|
+
```mermaid
|
|
64
|
+
flowchart LR
|
|
65
|
+
dev["Write evals<br/>@pytest.mark.evaltrack"] --> run["pytest -m evaltrack<br/>→ a recorded run"]
|
|
66
|
+
run --> ui["evaltrack ui<br/>browse + diff"]
|
|
67
|
+
run -->|open PR| pr["CI: push pr/N"]
|
|
68
|
+
pr -->|merge| base["CI: promote → baseline"]
|
|
69
|
+
base -.->|review against baseline| ui
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Quickstart
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
uv add "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The `ui` extra is the dashboard, `pydantic-evals` is the runner this example uses, and pydantic-ai
|
|
79
|
+
is the agent framework. evaltrack does not require them but the quickstart uses them.
|
|
80
|
+
|
|
81
|
+
Add `@pytest.mark.evaltrack` to a test and hand the eval to `evaltrack.run()`:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import pytest
|
|
85
|
+
from pydantic_ai import Agent
|
|
86
|
+
from pydantic_evals import Case, Dataset
|
|
87
|
+
from pydantic_evals.evaluators import LLMJudge
|
|
88
|
+
|
|
89
|
+
import evaltrack
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@pytest.mark.evaltrack(score_bars={"helpfulness": 0.8}, flake_reruns=2)
|
|
93
|
+
def test_support_agent() -> None:
|
|
94
|
+
agent = Agent(
|
|
95
|
+
"openai:gpt-4o-mini",
|
|
96
|
+
instructions=(
|
|
97
|
+
"Support the Snapwombat photo app. Deleted photos are restorable from "
|
|
98
|
+
"Settings > Backups for 30 days. Never promise or rule out a refund. Send "
|
|
99
|
+
"billing questions to support@snapwombat.example."
|
|
100
|
+
),
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
async def support_task(prompt: str) -> str:
|
|
104
|
+
return (await agent.run(prompt)).output
|
|
105
|
+
|
|
106
|
+
dataset = Dataset(
|
|
107
|
+
name="snapwombat-support",
|
|
108
|
+
cases=[
|
|
109
|
+
Case(name="refund-demand", inputs="The app deleted my photos. I want my money back!"),
|
|
110
|
+
Case(name="restore-backup", inputs="How do I restore a backup?"),
|
|
111
|
+
],
|
|
112
|
+
evaluators=[
|
|
113
|
+
# An assertion: must be true, or the case fails.
|
|
114
|
+
LLMJudge(rubric="The reply neither promises nor rules out a refund", include_input=True),
|
|
115
|
+
# A score, gated at 0.8 by the marker's score bar.
|
|
116
|
+
LLMJudge(
|
|
117
|
+
rubric=(
|
|
118
|
+
"Rate how helpful and clear the reply is, from 0.0 to 1.0. "
|
|
119
|
+
"Declining to promise a refund is not unhelpful."
|
|
120
|
+
),
|
|
121
|
+
include_input=True,
|
|
122
|
+
score={"evaluation_name": "helpfulness", "include_reason": True},
|
|
123
|
+
assertion=False,
|
|
124
|
+
),
|
|
125
|
+
],
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
# The marker gates here: a failed assertion, or a score under 0.8, fails the test.
|
|
129
|
+
# `flake_reruns=2` runs the eval again while a case is failing, up to twice.
|
|
130
|
+
evaltrack.run(dataset.evaluate_sync, support_task)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`pytest -m evaltrack` runs your evals and records a run, and `evaltrack ui` opens the dashboard on
|
|
134
|
+
it. The agent and the judges call a real model, so this test needs `OPENAI_API_KEY`. The [examples]
|
|
135
|
+
run without one.
|
|
136
|
+
|
|
137
|
+
[Getting started] walks through this example step by step, from the install to a shared remote, and
|
|
138
|
+
[Eval runners] does the same with DeepEval.
|
|
139
|
+
|
|
140
|
+
## Compatibility
|
|
141
|
+
|
|
142
|
+
evaltrack is pre-1.0, so breaking changes can happen and the changelog will say so. What I intend to
|
|
143
|
+
keep stable: the names `import evaltrack` exports, `evaltrack.translators.register` and the
|
|
144
|
+
`Translator` protocol, the marker kwargs, the CLI commands and flags and what its exit codes mean,
|
|
145
|
+
the `[tool.evaltrack]` keys, and the stored run JSON, where fields may be added but keep their
|
|
146
|
+
meaning.
|
|
147
|
+
|
|
148
|
+
Planned additions are in a rough [roadmap].
|
|
149
|
+
|
|
150
|
+
[pydantic-evals]: https://ai.pydantic.dev/evals/
|
|
151
|
+
[DeepEval]: https://deepeval.com/
|
|
152
|
+
[Eval runners]: https://evaltrack.jesravnbol.dk/latest/eval-runners/
|
|
153
|
+
[the overall shape]: https://evaltrack.jesravnbol.dk/latest/eval-shape/
|
|
154
|
+
[online evals]: https://pydantic.dev/docs/ai/evals/online-evaluation/
|
|
155
|
+
[logfire]: https://pydantic.dev/docs/logfire/get-started/
|
|
156
|
+
[dashboard-demo]:
|
|
157
|
+
https://raw.githubusercontent.com/jesrav/evaltrack/main/docs/images/dashboard-demo.gif
|
|
158
|
+
[the evaltrack marker]: https://evaltrack.jesravnbol.dk/latest/marker/
|
|
159
|
+
[flakiness & reliability]: https://evaltrack.jesravnbol.dk/latest/flakiness/
|
|
160
|
+
[repositories and storage]: https://evaltrack.jesravnbol.dk/latest/repositories/
|
|
161
|
+
[ci/cd]: https://evaltrack.jesravnbol.dk/latest/ci-cd/
|
|
162
|
+
[roadmap]: https://evaltrack.jesravnbol.dk/latest/roadmap/
|
|
163
|
+
[getting started]: https://evaltrack.jesravnbol.dk/latest/getting-started/
|
|
164
|
+
[examples]: https://evaltrack.jesravnbol.dk/latest/examples/
|
|
@@ -9,7 +9,7 @@ Report vulnerabilities privately, not as a public issue:
|
|
|
9
9
|
|
|
10
10
|
I will acknowledge within a few days and keep you informed about a fix.
|
|
11
11
|
|
|
12
|
-
evaltrack is pre-1.0. Security fixes go to the latest
|
|
12
|
+
evaltrack is pre-1.0. Security fixes go to the latest 0.x minor.
|
|
13
13
|
|
|
14
14
|
## What a run holds
|
|
15
15
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--8<-- "CHANGELOG.md"
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Your evals are pytest tests, so the CI you already have runs them. This is how to wire the evaltrack
|
|
4
4
|
CLI into it. Every pull request records a run and pushes it to a shared repository, and a merge
|
|
5
|
-
promotes that run to [`baseline`]. The examples use an `azure://` remote, but not a
|
|
6
|
-
system. The commands are the same wherever you run them. Promote-on-merge is a
|
|
7
|
-
a rule of the tool. If a merge is not the moment code ships in your process
|
|
8
|
-
GitOps), see [Adapting the flow].
|
|
5
|
+
promotes that run to [`baseline`][baseline]. The examples use an `azure://` remote, but not a
|
|
6
|
+
concrete CI system. The commands are the same wherever you run them. Promote-on-merge is a
|
|
7
|
+
convention here, not a rule of the tool. If a merge is not the moment code ships in your process
|
|
8
|
+
(for example if you use GitOps), see [Adapting the flow].
|
|
9
9
|
|
|
10
10
|
## The flow
|
|
11
11
|
|
|
@@ -58,21 +58,22 @@ works the same way with the AWS credentials in place of the Azure ones:
|
|
|
58
58
|
Run the evals, write a run file, and push it under `pr/{n}`:
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
|
-
#
|
|
62
|
-
# HEAD, so the git context evaltrack would read is not the one you want.
|
|
63
|
-
export EVALTRACK_COMMIT="$COMMIT_SHA"
|
|
61
|
+
export EVALTRACK_COMMIT="$COMMIT_SHA" # (1)!
|
|
64
62
|
export EVALTRACK_BRANCH="$BRANCH_NAME"
|
|
65
63
|
|
|
66
64
|
pytest -m evaltrack --evaltrack-run-file run.json
|
|
67
65
|
|
|
68
|
-
# --commit records the same SHA on the ref's reflog entry, next to the PR.
|
|
69
66
|
evaltrack push --run-file run.json \
|
|
70
67
|
--ref "pr/$PR_NUMBER" \
|
|
71
68
|
--pr "$PR_NUMBER" \
|
|
72
69
|
--title "$PR_TITLE" \
|
|
73
|
-
--commit "$COMMIT_SHA"
|
|
70
|
+
--commit "$COMMIT_SHA" # (2)!
|
|
74
71
|
```
|
|
75
72
|
|
|
73
|
+
1. The run records these. A CI checkout is usually a shallow clone on a detached HEAD, so the git
|
|
74
|
+
context evaltrack would read is not the one you want.
|
|
75
|
+
2. `--commit` records the same SHA on the ref's reflog entry, next to the PR.
|
|
76
|
+
|
|
76
77
|
That is the whole integration. What the job around it has to get right:
|
|
77
78
|
|
|
78
79
|
- **Install `evaltrack[azure]`**, or `evaltrack[s3]`, alongside your project's own dependencies, or
|
|
@@ -90,6 +91,21 @@ That is the whole integration. What the job around it has to get right:
|
|
|
90
91
|
`--pr` and `--title` record the PR number and title on the ref, so the dashboard shows which PR a
|
|
91
92
|
ref represents. With `pr_url_template` set, it links the number to the PR.
|
|
92
93
|
|
|
94
|
+
### A report as a job artifact
|
|
95
|
+
|
|
96
|
+
If you save the run as one HTML file, a reviewer without the dashboard can see it. After the push,
|
|
97
|
+
write the report and upload the file as the job's artifact:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
evaltrack report --ref "pr/$PR_NUMBER" --output evaltrack-report.html
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The page opens from disk, with no server and no network. It shows the run, its history over the
|
|
104
|
+
mainline, and the changes from `baseline` to the run. It holds every input and output the run
|
|
105
|
+
recorded, so keep the artifact as private as the run. On the first pull request of a project there
|
|
106
|
+
is no `baseline` yet, and the report is then of the run alone. See
|
|
107
|
+
[CLI › report](./cli.md#evaltrack-report).
|
|
108
|
+
|
|
93
109
|
## Promote pipeline
|
|
94
110
|
|
|
95
111
|
When the PR merges, point `baseline` at its run:
|
|
@@ -119,7 +135,7 @@ event means shipped in your process. I promote on merge, which suits trunk-based
|
|
|
119
135
|
Promoting later than merge leaves `pr/{n}` refs standing until their run ships, and a ref reaches
|
|
120
136
|
every run in its history. Delete them once their PR is closed.
|
|
121
137
|
|
|
122
|
-
|
|
138
|
+
The remote has one `baseline`. The dashboard's Mainline section and the [cross-run reliability
|
|
123
139
|
estimate][cross-run reliability] read it.
|
|
124
140
|
|
|
125
141
|
## Reviewing a PR
|
|
@@ -143,7 +159,7 @@ biases the [tracked pass-rate][cross-run reliability] upward.
|
|
|
143
159
|
**Related:** [CLI](./cli.md) · [Repositories and storage](./repositories.md) ·
|
|
144
160
|
[Flakiness & reliability](./flakiness.md)
|
|
145
161
|
|
|
146
|
-
[
|
|
162
|
+
[baseline]: ./repositories.md#baseline-and-mainline
|
|
147
163
|
[adapting the flow]: #adapting-the-flow-to-your-delivery-process
|
|
148
164
|
[repositories › azure blob storage]: ./repositories.md#azure-blob-storage
|
|
149
165
|
[repositories › amazon s3]: ./repositories.md#amazon-s3
|