evaltrack 0.2.0__tar.gz → 0.3.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.3.0}/.gitignore +4 -0
- evaltrack-0.3.0/CHANGELOG.md +73 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/CONTRIBUTING.md +19 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/PKG-INFO +44 -120
- evaltrack-0.3.0/README.md +163 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/SECURITY.md +1 -1
- evaltrack-0.3.0/docs/changelog.md +1 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/ci-cd.md +11 -10
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/cli.md +8 -9
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/configuration.md +5 -13
- evaltrack-0.3.0/docs/contributing.md +1 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/eval-runners.md +27 -13
- evaltrack-0.3.0/docs/examples.md +1 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/flakiness.md +11 -8
- evaltrack-0.3.0/docs/getting-started.md +143 -0
- evaltrack-0.3.0/docs/index.md +90 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/marker.md +5 -4
- evaltrack-0.3.0/docs/outputs.md +94 -0
- evaltrack-0.3.0/docs/reference/api.md +28 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/repositories.md +8 -10
- evaltrack-0.3.0/docs/stylesheets/extra.css +21 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/translators.md +11 -9
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/__init__.py +6 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/cli.py +2 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/config.py +21 -3
- evaltrack-0.3.0/evaltrack/converters.py +8 -0
- evaltrack-0.3.0/evaltrack/core/converters.py +97 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/recorder.py +34 -9
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/run_record.py +36 -31
- evaltrack-0.3.0/evaltrack/core/type_paths.py +12 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/user_values.py +37 -19
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/marked_test.py +4 -6
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/pytest_plugin.py +57 -13
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/repository.py +8 -3
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/translators/__init__.py +3 -9
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/app.py +6 -2
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/routes/refs.py +7 -2
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/routes/runs.py +39 -15
- evaltrack-0.3.0/evaltrack/ui/run_cache.py +60 -0
- evaltrack-0.3.0/evaltrack/ui/run_view.py +108 -0
- evaltrack-0.3.0/evaltrack/ui/static/assets/index-Bf-jmLAW.js +56 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/static/index.html +1 -1
- evaltrack-0.3.0/examples/README.md +52 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/examples/test_01_function.py +10 -24
- {evaltrack-0.2.0 → evaltrack-0.3.0}/examples/test_02_scores.py +14 -34
- evaltrack-0.3.0/examples/test_03_reliability.py +57 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/examples/test_04_agent_tool_use.py +16 -27
- {evaltrack-0.2.0 → evaltrack-0.3.0}/examples/test_05_llm_judge.py +18 -40
- {evaltrack-0.2.0 → evaltrack-0.3.0}/examples/test_06_fake_tool_in_inputs.py +29 -64
- evaltrack-0.2.0/examples/test_08_deepeval.py → evaltrack-0.3.0/examples/test_07_deepeval.py +21 -65
- evaltrack-0.2.0/examples/test_09_deepeval_repeats.py → evaltrack-0.3.0/examples/test_08_deepeval_repeats.py +15 -35
- evaltrack-0.2.0/examples/test_07_other_eval_runner.py → evaltrack-0.3.0/examples/test_09_other_eval_runner.py +17 -44
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/README.md +2 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/App.tsx +49 -7
- evaltrack-0.3.0/frontend/src/api.test.ts +44 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/api.ts +57 -3
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/Drawer.tsx +14 -2
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/RunDetail.tsx +22 -5
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/RunDiff.tsx +10 -3
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/Sidebar.tsx +9 -1
- evaltrack-0.3.0/frontend/src/deferred.test.ts +121 -0
- evaltrack-0.3.0/frontend/src/deferred.ts +142 -0
- evaltrack-0.3.0/frontend/src/drawerOpener.test.ts +175 -0
- evaltrack-0.3.0/frontend/src/drawerOpener.ts +100 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/extract.test.ts +31 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/extract.ts +9 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/test-support.ts +0 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/types.ts +3 -4
- {evaltrack-0.2.0 → evaltrack-0.3.0}/hatch_build.py +3 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/pyproject.toml +14 -4
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/helpers.py +2 -2
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/test_export.py +2 -3
- evaltrack-0.3.0/tests/core/test_converters.py +119 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_recorder.py +36 -27
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_run_record.py +27 -56
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_user_values.py +28 -0
- evaltrack-0.3.0/tests/plugin/test_converters.py +53 -0
- evaltrack-0.3.0/tests/plugin/test_large_outputs.py +62 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/test_config.py +11 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/test_public_api.py +19 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/conftest.py +1 -1
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/test_reads.py +137 -20
- evaltrack-0.3.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/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 → evaltrack-0.3.0}/LICENSE +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/docs/eval-shape.md +0 -0
- /evaltrack-0.2.0/ROADMAP.md → /evaltrack-0.3.0/docs/roadmap.md +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/errors.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/eval_round.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/gate.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/projection.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/refs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/repetition.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/results.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/run_context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/core/score_bars.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/failure.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/history/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/history/reliability.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/history/score_history.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/history/segments.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/py.typed +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/azure.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/file.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/lifecycle.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/s3.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/repositories/store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/translators/deepeval.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/translators/protocol.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/translators/pydantic_evals.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/models.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/routes/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/routes/history.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/routes/meta.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/routes/static.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/security.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/static/assets/index-BZO2JqWB.css +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/evaltrack/ui/static/favicon.svg +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/.gitignore +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/eslint.config.js +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/index.html +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/package-lock.json +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/package.json +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/public/favicon.svg +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/attemptCounts.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/attemptCounts.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/attemptErrors.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/attemptErrors.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/baseline.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/baseline.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/binaryEnvelope.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/binaryEnvelope.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/caseFilter.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/caseFilter.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/caseSections.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/caseSections.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/checks.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/checks.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/clamp.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/clamp.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/ConfirmDialog.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/CopyButton.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/EvaluatorList.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/JsonDiff.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/JsonView.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/JsonView.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/OutcomeCard.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/OutcomeCard.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/PrRef.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/RunDetail.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/RunDiff.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/ScoreMeter.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/ScoreTrend.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/TableScroll.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/TextDiff.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/TextDiff.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/ThemeToggle.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/components/ThemeToggle.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/diff.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/diff.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/format.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/format.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/grouping.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/grouping.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/index.css +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/load.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/main.tsx +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/reliabilityNote.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/reliabilityNote.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/results.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/runBody.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/runOutcome.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/runOutcome.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/scoreTrend.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/scoreTrend.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/shortenUrl.test.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/src/shortenUrl.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/tsconfig.json +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/frontend/vite.config.ts +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/test_listing.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/test_main.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/test_promote.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/test_push.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/cli/test_ui_command.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/conftest.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_errors.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_eval_round.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_refs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_results.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/core/test_score_bars.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/factories.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/fakes.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/history/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/history/test_reliability.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/history/test_score_history.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/marked_test/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/marked_test/conftest.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/marked_test/test_api.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/marked_test/test_merge.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/marked_test/test_run_loop.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/helpers.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_async_plugins.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_gate_integration.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_marker.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_options.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_outcomes.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_reruns.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/plugin/test_termination.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/conftest.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/helpers.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_azure_store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_file_store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_open_repository.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_repository_refs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_repository_retention.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_repository_runs.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_s3_store.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/repositories/test_store_contract.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/test_context.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/test_failure.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/translators/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/translators/contract.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/translators/test_deepeval.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/translators/test_pydantic_evals.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/translators/test_registry.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/__init__.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/test_hardening.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/test_history.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/test_static.py +0 -0
- {evaltrack-0.2.0 → evaltrack-0.3.0}/tests/ui/test_writes.py +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
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.3.0] - 2026-09-26
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- The documentation site at [evaltrack.jesravnbol.dk](https://evaltrack.jesravnbol.dk), versioned by
|
|
17
|
+
minor release, with an API reference generated from the docstrings.
|
|
18
|
+
- `RunRepository`, `RunSummary` and `ReflogEntry` are exported from the package root. They are what
|
|
19
|
+
`open_repository()`, `list_runs()` and `get_ref()` hand back, so a reader can now name every type
|
|
20
|
+
on the repository read path.
|
|
21
|
+
- At the end of a pytest session, evaltrack reports each attempt whose stored output is larger than
|
|
22
|
+
256 KB. The report names the test and the case, and says what to do. See
|
|
23
|
+
[Stored outputs › Large outputs](https://evaltrack.jesravnbol.dk/latest/outputs/#large-outputs).
|
|
24
|
+
- `evaltrack.converters.register` registers a converter, which changes how evaltrack stores the
|
|
25
|
+
values of one type, for example to keep the tool calls of an agent run. See
|
|
26
|
+
[Stored outputs › Converters](https://evaltrack.jesravnbol.dk/latest/outputs/#converters).
|
|
27
|
+
- The dashboard stays responsive on a large run. It sends each value over 16 KB to the browser as a
|
|
28
|
+
preview with its size and a hash, and sends the whole value when a pane needs it. This applies to
|
|
29
|
+
inputs, expected outputs, metadata and attempt outputs. Two runs still diff. A large value is
|
|
30
|
+
compared by a hash of the same part that is compared for a small value. The server still reads the
|
|
31
|
+
whole stored run. It keeps the last few runs that it read, so the panes of an open run do not read
|
|
32
|
+
the run again.
|
|
33
|
+
- While a run loads, the dashboard shows how much of it has arrived. The run list shows the stored
|
|
34
|
+
size of each run, which the summary sidecar now records.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- **Breaking:** evaltrack stores a dataclass without its private fields, the fields whose name
|
|
39
|
+
starts with `_`. A library often keeps its internal state in such fields, for example the message
|
|
40
|
+
history of an agent framework. When a task returned such an object, a run grew to hundreds of
|
|
41
|
+
megabytes. See
|
|
42
|
+
[Stored outputs › Private fields](https://evaltrack.jesravnbol.dk/latest/outputs/#private-fields).
|
|
43
|
+
- evaltrack writes a run as compact JSON, not indented. The saving is largest for deeply nested
|
|
44
|
+
values. The run that prompted this change went from 221 MB to 79 MB. A run of mostly long text
|
|
45
|
+
saves much less. evaltrack still reads indented runs, so the run schema version does not change.
|
|
46
|
+
`evaltrack export` prints the compact form.
|
|
47
|
+
|
|
48
|
+
### Removed
|
|
49
|
+
|
|
50
|
+
- **Breaking:** the `keep_raw_results` setting. Remove it from `[tool.evaltrack]`, or evaltrack
|
|
51
|
+
stops with an error that says so. A run no longer stores the eval runner's own result objects, and
|
|
52
|
+
a recorded test has no `raw_results` field. These objects grew with every output, and a loaded run
|
|
53
|
+
cannot give them back to the runner. If your eval runner records traces, use them for the full
|
|
54
|
+
data. Runs recorded with raw results still load, and the download and `export` include them. The
|
|
55
|
+
dashboard does not show them.
|
|
56
|
+
|
|
57
|
+
## [0.2.0] - 2026-09-15
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
- Amazon S3 as a remote repository backend, addressed as `s3://bucket[/prefix]` and installed with
|
|
62
|
+
the `[s3]` extra. Authentication uses boto3's default credential chain. See
|
|
63
|
+
[Repositories › Amazon S3](https://evaltrack.jesravnbol.dk/latest/repositories/#amazon-s3).
|
|
64
|
+
|
|
65
|
+
## [0.1.0] - 2026-09-11
|
|
66
|
+
|
|
67
|
+
The first public release. evaltrack is a pytest plugin that records, gates and tracks LLM evals. See
|
|
68
|
+
the [README](https://github.com/jesrav/evaltrack#readme) to get started.
|
|
69
|
+
|
|
70
|
+
[unreleased]: https://github.com/jesrav/evaltrack/compare/v0.3.0...HEAD
|
|
71
|
+
[0.3.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.3.0
|
|
72
|
+
[0.2.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.2.0
|
|
73
|
+
[0.1.0]: https://github.com/jesrav/evaltrack/releases/tag/v0.1.0
|
|
@@ -44,6 +44,18 @@ 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`.
|
|
@@ -62,3 +74,10 @@ merged, publish a GitHub release with the tag `v<version>` and the changelog sec
|
|
|
62
74
|
That runs `release.yml`, which refuses a tag that does not match the declared version, builds and
|
|
63
75
|
smoke-tests the distribution, and uploads it to PyPI through the `pypi` environment. Releasing needs
|
|
64
76
|
write access to the repository and approval on that environment.
|
|
77
|
+
|
|
78
|
+
Once the package is on PyPI, the same workflow deploys the docs for the release's minor version
|
|
79
|
+
(`0.2` for `0.2.x`) and moves `latest` to it. `dev` is deployed from `main` on every push. Both go
|
|
80
|
+
to the `gh-pages` branch through [mike]. The branch, the Pages settings and the DNS record were set
|
|
81
|
+
up once by hand.
|
|
82
|
+
|
|
83
|
+
[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.3.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,11 @@ 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. See
|
|
94
|
+
[Repositories and storage] and [CI/CD].
|
|
80
95
|
|
|
81
96
|
![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
97
|
|
|
@@ -100,30 +115,16 @@ flowchart LR
|
|
|
100
115
|
base -.->|review against baseline| ui
|
|
101
116
|
```
|
|
102
117
|
|
|
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
|
|
118
|
+
## Quickstart
|
|
109
119
|
|
|
110
120
|
```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
121
|
uv add "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
|
|
113
|
-
# or
|
|
114
|
-
pip install "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
|
|
115
122
|
```
|
|
116
123
|
|
|
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
|
|
124
|
+
The `ui` extra is the dashboard, `pydantic-evals` is the runner this example uses, and pydantic-ai
|
|
125
|
+
is the agent framework. evaltrack does not require them but the quickstart uses them.
|
|
123
126
|
|
|
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.
|
|
127
|
+
Add `@pytest.mark.evaltrack` to a test and hand the eval to `evaltrack.run()`:
|
|
127
128
|
|
|
128
129
|
```python
|
|
129
130
|
import pytest
|
|
@@ -175,79 +176,12 @@ def test_support_agent() -> None:
|
|
|
175
176
|
evaltrack.run(dataset.evaluate_sync, support_task)
|
|
176
177
|
```
|
|
177
178
|
|
|
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].
|
|
179
|
+
`pytest -m evaltrack` runs your evals and records a run, and `evaltrack ui` opens the dashboard on
|
|
180
|
+
it. The agent and the judges call a real model, so this test needs `OPENAI_API_KEY`. The [examples]
|
|
181
|
+
run without one.
|
|
249
182
|
|
|
250
|
-
|
|
183
|
+
[Getting started] walks through this example step by step, from the install to a shared remote, and
|
|
184
|
+
[Eval runners] does the same with DeepEval.
|
|
251
185
|
|
|
252
186
|
## Compatibility
|
|
253
187
|
|
|
@@ -255,32 +189,22 @@ evaltrack is pre-1.0, so breaking changes can happen and the changelog will say
|
|
|
255
189
|
keep stable: the names `import evaltrack` exports, `evaltrack.translators.register` and the
|
|
256
190
|
`Translator` protocol, the marker kwargs, the CLI commands and flags and what its exit codes mean,
|
|
257
191
|
the `[tool.evaltrack]` keys, and the stored run JSON, where fields may be added but keep their
|
|
258
|
-
meaning.
|
|
192
|
+
meaning.
|
|
259
193
|
|
|
260
194
|
Planned additions are in a rough [roadmap].
|
|
261
195
|
|
|
262
196
|
[pydantic-evals]: https://ai.pydantic.dev/evals/
|
|
263
197
|
[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/
|
|
198
|
+
[Eval runners]: https://evaltrack.jesravnbol.dk/latest/eval-runners/
|
|
199
|
+
[the overall shape]: https://evaltrack.jesravnbol.dk/latest/eval-shape/
|
|
268
200
|
[online evals]: https://pydantic.dev/docs/ai/evals/online-evaluation/
|
|
269
201
|
[logfire]: https://pydantic.dev/docs/logfire/get-started/
|
|
270
202
|
[dashboard-demo]:
|
|
271
203
|
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
|
|
204
|
+
[the evaltrack marker]: https://evaltrack.jesravnbol.dk/latest/marker/
|
|
205
|
+
[flakiness & reliability]: https://evaltrack.jesravnbol.dk/latest/flakiness/
|
|
206
|
+
[repositories and storage]: https://evaltrack.jesravnbol.dk/latest/repositories/
|
|
207
|
+
[ci/cd]: https://evaltrack.jesravnbol.dk/latest/ci-cd/
|
|
208
|
+
[roadmap]: https://evaltrack.jesravnbol.dk/latest/roadmap/
|
|
209
|
+
[getting started]: https://evaltrack.jesravnbol.dk/latest/getting-started/
|
|
210
|
+
[examples]: https://evaltrack.jesravnbol.dk/latest/examples/
|
|
@@ -0,0 +1,163 @@
|
|
|
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. See
|
|
47
|
+
[Repositories and storage] and [CI/CD].
|
|
48
|
+
|
|
49
|
+
![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]
|
|
50
|
+
|
|
51
|
+
[pydantic-evals] and [DeepEval] are supported out of the box. Another runner that fits [the overall
|
|
52
|
+
shape] needs a small translator ([Eval runners]).
|
|
53
|
+
|
|
54
|
+
<!-- prettier-ignore -->
|
|
55
|
+
> [!NOTE]
|
|
56
|
+
> evaltrack is for batch evals: you run a fixed dataset through your agent or LLM logic and score
|
|
57
|
+
> the results offline. For live production monitoring and tracing, see something like [online evals] and
|
|
58
|
+
> [Logfire].
|
|
59
|
+
|
|
60
|
+
## What you end up with
|
|
61
|
+
|
|
62
|
+
```mermaid
|
|
63
|
+
flowchart LR
|
|
64
|
+
dev["Write evals<br/>@pytest.mark.evaltrack"] --> run["pytest -m evaltrack<br/>→ a recorded run"]
|
|
65
|
+
run --> ui["evaltrack ui<br/>browse + diff"]
|
|
66
|
+
run -->|open PR| pr["CI: push pr/N"]
|
|
67
|
+
pr -->|merge| base["CI: promote → baseline"]
|
|
68
|
+
base -.->|review against baseline| ui
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Quickstart
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
uv add "evaltrack[ui,pydantic-evals]" "pydantic-ai-slim[openai]"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The `ui` extra is the dashboard, `pydantic-evals` is the runner this example uses, and pydantic-ai
|
|
78
|
+
is the agent framework. evaltrack does not require them but the quickstart uses them.
|
|
79
|
+
|
|
80
|
+
Add `@pytest.mark.evaltrack` to a test and hand the eval to `evaltrack.run()`:
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
import pytest
|
|
84
|
+
from pydantic_ai import Agent
|
|
85
|
+
from pydantic_evals import Case, Dataset
|
|
86
|
+
from pydantic_evals.evaluators import LLMJudge
|
|
87
|
+
|
|
88
|
+
import evaltrack
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@pytest.mark.evaltrack(score_bars={"helpfulness": 0.8}, flake_reruns=2)
|
|
92
|
+
def test_support_agent() -> None:
|
|
93
|
+
agent = Agent(
|
|
94
|
+
"openai:gpt-4o-mini",
|
|
95
|
+
instructions=(
|
|
96
|
+
"Support the Snapwombat photo app. Deleted photos are restorable from "
|
|
97
|
+
"Settings > Backups for 30 days. Never promise or rule out a refund. Send "
|
|
98
|
+
"billing questions to support@snapwombat.example."
|
|
99
|
+
),
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
async def support_task(prompt: str) -> str:
|
|
103
|
+
return (await agent.run(prompt)).output
|
|
104
|
+
|
|
105
|
+
dataset = Dataset(
|
|
106
|
+
name="snapwombat-support",
|
|
107
|
+
cases=[
|
|
108
|
+
Case(name="refund-demand", inputs="The app deleted my photos. I want my money back!"),
|
|
109
|
+
Case(name="restore-backup", inputs="How do I restore a backup?"),
|
|
110
|
+
],
|
|
111
|
+
evaluators=[
|
|
112
|
+
# An assertion: must be true, or the case fails.
|
|
113
|
+
LLMJudge(rubric="The reply neither promises nor rules out a refund", include_input=True),
|
|
114
|
+
# A score, gated at 0.8 by the marker's score bar.
|
|
115
|
+
LLMJudge(
|
|
116
|
+
rubric=(
|
|
117
|
+
"Rate how helpful and clear the reply is, from 0.0 to 1.0. "
|
|
118
|
+
"Declining to promise a refund is not unhelpful."
|
|
119
|
+
),
|
|
120
|
+
include_input=True,
|
|
121
|
+
score={"evaluation_name": "helpfulness", "include_reason": True},
|
|
122
|
+
assertion=False,
|
|
123
|
+
),
|
|
124
|
+
],
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
# The marker gates here: a failed assertion, or a score under 0.8, fails the test.
|
|
128
|
+
# `flake_reruns=2` runs the eval again while a case is failing, up to twice.
|
|
129
|
+
evaltrack.run(dataset.evaluate_sync, support_task)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
`pytest -m evaltrack` runs your evals and records a run, and `evaltrack ui` opens the dashboard on
|
|
133
|
+
it. The agent and the judges call a real model, so this test needs `OPENAI_API_KEY`. The [examples]
|
|
134
|
+
run without one.
|
|
135
|
+
|
|
136
|
+
[Getting started] walks through this example step by step, from the install to a shared remote, and
|
|
137
|
+
[Eval runners] does the same with DeepEval.
|
|
138
|
+
|
|
139
|
+
## Compatibility
|
|
140
|
+
|
|
141
|
+
evaltrack is pre-1.0, so breaking changes can happen and the changelog will say so. What I intend to
|
|
142
|
+
keep stable: the names `import evaltrack` exports, `evaltrack.translators.register` and the
|
|
143
|
+
`Translator` protocol, the marker kwargs, the CLI commands and flags and what its exit codes mean,
|
|
144
|
+
the `[tool.evaltrack]` keys, and the stored run JSON, where fields may be added but keep their
|
|
145
|
+
meaning.
|
|
146
|
+
|
|
147
|
+
Planned additions are in a rough [roadmap].
|
|
148
|
+
|
|
149
|
+
[pydantic-evals]: https://ai.pydantic.dev/evals/
|
|
150
|
+
[DeepEval]: https://deepeval.com/
|
|
151
|
+
[Eval runners]: https://evaltrack.jesravnbol.dk/latest/eval-runners/
|
|
152
|
+
[the overall shape]: https://evaltrack.jesravnbol.dk/latest/eval-shape/
|
|
153
|
+
[online evals]: https://pydantic.dev/docs/ai/evals/online-evaluation/
|
|
154
|
+
[logfire]: https://pydantic.dev/docs/logfire/get-started/
|
|
155
|
+
[dashboard-demo]:
|
|
156
|
+
https://raw.githubusercontent.com/jesrav/evaltrack/main/docs/images/dashboard-demo.gif
|
|
157
|
+
[the evaltrack marker]: https://evaltrack.jesravnbol.dk/latest/marker/
|
|
158
|
+
[flakiness & reliability]: https://evaltrack.jesravnbol.dk/latest/flakiness/
|
|
159
|
+
[repositories and storage]: https://evaltrack.jesravnbol.dk/latest/repositories/
|
|
160
|
+
[ci/cd]: https://evaltrack.jesravnbol.dk/latest/ci-cd/
|
|
161
|
+
[roadmap]: https://evaltrack.jesravnbol.dk/latest/roadmap/
|
|
162
|
+
[getting started]: https://evaltrack.jesravnbol.dk/latest/getting-started/
|
|
163
|
+
[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
|
|
@@ -143,7 +144,7 @@ biases the [tracked pass-rate][cross-run reliability] upward.
|
|
|
143
144
|
**Related:** [CLI](./cli.md) · [Repositories and storage](./repositories.md) ·
|
|
144
145
|
[Flakiness & reliability](./flakiness.md)
|
|
145
146
|
|
|
146
|
-
[
|
|
147
|
+
[baseline]: ./repositories.md#baseline-and-mainline
|
|
147
148
|
[adapting the flow]: #adapting-the-flow-to-your-delivery-process
|
|
148
149
|
[repositories › azure blob storage]: ./repositories.md#azure-blob-storage
|
|
149
150
|
[repositories › amazon s3]: ./repositories.md#amazon-s3
|
|
@@ -30,9 +30,9 @@ $ evaltrack runs --local
|
|
|
30
30
|
|
|
31
31
|
## evaltrack refs
|
|
32
32
|
|
|
33
|
-
Lists refs and the runs they point at. [`baseline`] comes first, then the PR refs, then
|
|
34
|
-
line holds the ref name, the run it targets, when it last moved (UTC), and the PR number
|
|
35
|
-
when the move recorded them.
|
|
33
|
+
Lists refs and the runs they point at. [`baseline`][baseline] comes first, then the PR refs, then
|
|
34
|
+
the rest. A line holds the ref name, the run it targets, when it last moved (UTC), and the PR number
|
|
35
|
+
and title when the move recorded them.
|
|
36
36
|
|
|
37
37
|
```text
|
|
38
38
|
$ evaltrack refs --remote
|
|
@@ -45,10 +45,8 @@ against them.
|
|
|
45
45
|
|
|
46
46
|
## evaltrack export
|
|
47
47
|
|
|
48
|
-
Prints a recorded run as JSON. Use it to inspect a run
|
|
49
|
-
|
|
50
|
-
`keep_raw_results = true`. See [Raw results](./configuration.md#raw-results). The same data is
|
|
51
|
-
available in Python — see [Reading runs from Python].
|
|
48
|
+
Prints a recorded run as JSON. Use it to inspect a run or archive one outside the repository. The
|
|
49
|
+
same data is available in Python. See [Reading runs from Python].
|
|
52
50
|
|
|
53
51
|
**Exit codes:** `0` when the run was exported. `1` when the named repository does not hold the run,
|
|
54
52
|
and the error names that repository. `2` when no repository is named. No other command exits
|
|
@@ -83,6 +81,7 @@ Only [`export`](#evaltrack-export) exits `1` today, for a run the repository doe
|
|
|
83
81
|
|
|
84
82
|
**Related:** [CI/CD](./ci-cd.md) · [Repositories and storage](./repositories.md)
|
|
85
83
|
|
|
86
|
-
[
|
|
84
|
+
[baseline]: ./repositories.md#baseline-and-mainline
|
|
87
85
|
[reading runs from python]: ./repositories.md#reading-runs-from-python
|
|
88
|
-
[dashboard trust model]:
|
|
86
|
+
[dashboard trust model]:
|
|
87
|
+
https://github.com/jesrav/evaltrack/blob/main/SECURITY.md#dashboard-trust-model
|
|
@@ -31,7 +31,6 @@ All keys are optional.
|
|
|
31
31
|
[tool.evaltrack]
|
|
32
32
|
local = "./.evaltrack" # where the pytest plugin saves runs
|
|
33
33
|
remote = "azure://account/evals" # the shared source of truth (baseline, PRs)
|
|
34
|
-
keep_raw_results = false # true to also store the eval runner's own result objects
|
|
35
34
|
# Where a PR ref links to. Must start with http:// or https:// and contain {pr}.
|
|
36
35
|
# GitHub:
|
|
37
36
|
pr_url_template = "https://github.com/OWNER/REPO/pull/{pr}"
|
|
@@ -39,18 +38,11 @@ pr_url_template = "https://github.com/OWNER/REPO/pull/{pr}"
|
|
|
39
38
|
# pr_url_template = "https://dev.azure.com/ORG/PROJECT/_git/REPO/pullrequest/{pr}"
|
|
40
39
|
```
|
|
41
40
|
|
|
42
|
-
| key
|
|
43
|
-
|
|
|
44
|
-
| `local`
|
|
45
|
-
| `remote`
|
|
46
|
-
| `
|
|
47
|
-
| `pr_url_template` | unset | `http(s)` URL template with a `{pr}` placeholder, used as a PR ref's link target |
|
|
48
|
-
|
|
49
|
-
### Raw results
|
|
50
|
-
|
|
51
|
-
With `keep_raw_results = true`, a test's eval also stores the eval runner's own result objects, one
|
|
52
|
-
per round, alongside the structured per-case data. You can then [export](./cli.md#evaltrack-export)
|
|
53
|
-
them or feed them back into that runner's own tooling.
|
|
41
|
+
| key | default | meaning |
|
|
42
|
+
| ----------------- | -------------- | -------------------------------------------------------------------------------------------- |
|
|
43
|
+
| `local` | `./.evaltrack` | the plugin's save target and the dashboard's **Local** mount |
|
|
44
|
+
| `remote` | unset | the shared repository: default target for `push`/`promote`, the dashboard's **Remote** mount |
|
|
45
|
+
| `pr_url_template` | unset | `http(s)` URL template with a `{pr}` placeholder, used as a PR ref's link target |
|
|
54
46
|
|
|
55
47
|
## Pytest options
|
|
56
48
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--8<-- "CONTRIBUTING.md"
|