auditkit 1.1.2__tar.gz → 1.1.4__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.
- {auditkit-1.1.2 → auditkit-1.1.4}/CHANGELOG.md +5 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/CITATION.cff +1 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/PKG-INFO +13 -4
- {auditkit-1.1.2 → auditkit-1.1.4}/README.md +2 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/GUIDE.md +13 -3
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/community/changelog.md +85 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/community/faq.md +2 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/metrics.md +16 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/scorers_reference.md +14 -3
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/README.md +1 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/mkdocs.yml +3 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/pyproject.toml +12 -6
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/__init__.py +4 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/_bootstrap.py +8 -1
- auditkit-1.1.4/src/auditkit/_text.py +14 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/adapter.py +1 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/comparison.py +2 -2
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/experiment.py +11 -6
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metric.py +20 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/README.md +1 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/code.py +26 -12
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/embedding.py +4 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/generation.py +2 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/guard.py +4 -3
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/hallucination.py +4 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/judge.py +48 -10
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/pairwise.py +7 -2
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/rag.py +2 -5
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/rag_stress.py +2 -1
- auditkit-1.1.4/src/auditkit/metrics/structured.py +527 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/hf_gen.py +56 -7
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/detectors/builtin.py +33 -31
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/report.py +6 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/runner.py +31 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/runspec.py +11 -2
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scorers.py +24 -1
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scoring.py +10 -2
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_fingerprint_offline.py +4 -3
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_api.py +41 -0
- auditkit-1.1.4/tests/test_apostrophe_fold.py +37 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_code_metrics.py +65 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_comparison.py +13 -0
- auditkit-1.1.4/tests/test_failed_as_zero.py +136 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_guard.py +17 -0
- auditkit-1.1.4/tests/test_hf_device_map.py +195 -0
- auditkit-1.1.4/tests/test_hf_gen_import_error.py +40 -0
- auditkit-1.1.4/tests/test_judge_number_parse.py +26 -0
- auditkit-1.1.4/tests/test_judge_option_labels.py +34 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_llm_judge.py +14 -3
- auditkit-1.1.4/tests/test_mcq_gen_params.py +81 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_metric.py +17 -0
- auditkit-1.1.4/tests/test_metric_properties.py +191 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_metrics_via_pipeline.py +3 -2
- auditkit-1.1.4/tests/test_missing_is_not_zero.py +92 -0
- auditkit-1.1.4/tests/test_paired_bootstrap.py +39 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_pairwise_metrics.py +2 -2
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_rag_metrics.py +6 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_redteam.py +37 -0
- auditkit-1.1.4/tests/test_scorer_context_typeerror.py +101 -0
- auditkit-1.1.4/tests/test_scorer_order_cache.py +45 -0
- auditkit-1.1.4/tests/test_structured_metrics.py +291 -0
- auditkit-1.1.4/tests/test_summary_failed_samples.py +46 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/.gitattributes +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/.github/workflows/check-release-version.yml +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/.github/workflows/patch-release.yml +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/.gitignore +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/AGENTS.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/LICENSE.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/CNAME +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/HF_ENDPOINT.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/SGLANG.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/VLLM_KNOWN_ISSUES.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/about/glossary.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/about/platform-integration.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/agent_eval.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/agents_and_rag.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/annotators.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/api.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/architecture/data-model.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/architecture/system-design.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/auditkit-logo-black.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/auditkit-logo-dark.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/auditkit-logo-light.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/auditkit-logo-white.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/extra.css +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/extra.js +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/favicon.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/icon.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/icon.svg +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/assets/logo.svg +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/best_practices/scorers.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/cli.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/community/contributing.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/community/roadmap.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/configuration.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/cookbook/llm_judge.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/cookbook/rag_evaluation.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/development.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/encoder_judge.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/encoder_judge_prebuilts.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/examples/custom_scorer.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/examples/experiments.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/examples/many_datasets.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/examples/model_comparison.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/examples/quickstart.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/experiments.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/getting_started.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/guard_models.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/index.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/integrations.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/known_issues.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/lexsi_integration.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/llm_judge_rendering.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/model_backends.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/rag_stress.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/reports.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/requirements.txt +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/docs/scenarios.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/01_full_evaluation_pipeline.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/02_generation_across_hf_families.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/03_custom_annotators.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/04_metrics_deep_dive.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/05_data_types.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/06_model_comparison.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/07_annotators_across_models.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/08_compare_result_deep_dive.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/09_guard_judge_implementation_check.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/10_guard_judge_legit_models.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/11_encoder_judge_prebuilts.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/12_performance_metrics_demo.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/13_sglang_compatibility.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/14_agent_and_rag_evals.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/15_agentic_rag_metrics_walkthrough.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/16_agentic_endpoints_live.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/17_multi_route_references.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/agent_eval_offline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/01_application_pruned_llama_boolq.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/02_application_healthcare_pubmedqa.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/03_application_finance_10k_qa.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/04_application_ecommerce_review_triage.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/05_application_education_arc_tutor.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/06_application_enterprise_search_rag.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/applications/07_application_bert_nli_judge.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/auditkit.yaml +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/cohere/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/cohere/compare_models.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/cohere/metrics_generation.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/cohere/run_lmeval.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/cohere/sglang_auditkit.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/cohere/tgi_endpoint.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/01_cohere_and_hf_api_models.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/02_agentic_rag_real_agent.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/03_vllm_integration.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/04_cohere_hf_fixes_live.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/05_real_world_agentic_rag.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/06_cohere_all_backends.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/colab/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/model_comparison_notebook.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/stress_tests/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/stress_tests/test_stress_gated_model.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/examples/stress_tests/test_stress_open_model_load.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/scripts/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/scripts/release.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/__main__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/_identity_guard.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/importers.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/lexsi.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/outcome.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/reliability.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/report.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/runner.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/sidecar.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/agent_eval/types.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/annotator.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/api.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/assets/auditkit_logo.png +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/bfcl.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/cache.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/cli.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/compat.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/diff.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/errors.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/evaluator.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/hf_publish.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/lexsi_login.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/lexsi_relay.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/lmeval_engine.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/loaders.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/logs.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/agent.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/encoder_judge.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/perf.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/rag_judge.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/rag_stress_ops.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/rag_stress_runner.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/retrieval.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/security.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/metrics/toxicity.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/agent_endpoint.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/anthropic.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/api_gen.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/groq_gen.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/lexsi.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/litellm_gen.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/openai.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/openrouter_gen.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model/vllm_gen.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/model_compare.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/provenance.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/detector.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/detectors/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/probe.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/probes/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/probes/builtin.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/redteam/runner.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/registry.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/report_format.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/router.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/sample.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenario.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/arc.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/gsm8k.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/hellaswag.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/humaneval.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/mmlu.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/scenarios/truthfulqa.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/score.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/trace.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/src/auditkit/types.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/.gitignore +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/FINDINGS.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/catalog.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/colab_model_matrix.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/colab_offline_suite.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/conftest.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/make_metric_reports.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_agentic_pipeline_all_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_formats_offline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_live.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_live_rag.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_metrics_offline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_pipeline_offline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_rag_offline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/agentic_suite/test_resolved_issues.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/conftest.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/chat_templates/aya_expanse.jinja +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/chat_templates/command_r7b_tool_use.jinja +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/chat_templates/tiny_aya_default.jinja +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/agenttune/dataset_train_grpo.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/agenttune/report_constructed.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/agenttune/trace_finder.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/agenttune/trace_hotpotqa.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/agenttune/trajectory_store_export.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/aligntune/AuditReport.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/aligntune/RegressionReport.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_default.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_ib_fastpath.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_nonfinite.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_unknown_sentinels.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/checkpoint_TextCleaner.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/data_sample.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/data_sample_pdf.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/manifest.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/manifest_pdf.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/rejected.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/rejected_pdf.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/sft_alpaca.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/curatorkit/sft_sharegpt.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/safetune/placeholder-model__base__placeholder_bench.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/safetune/placeholder-model__base__placeholder_bench_scored.jsonl +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/safetune/safety_audit_event__post_allow_long_redacted.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/safetune/safety_audit_event__post_keyword_classifier_block.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/safetune/safety_audit_event__pre_allow.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/lexsi_real/safetune/safety_audit_event__pre_tool_block.json +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/sglang_0520/commandr_excerpt.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/sglang_0520/transformers_backend_excerpt.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/fixtures/sglang_0520/unified_radix_cache_excerpt.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_cohere_models.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_integrations.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_sglang.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_sglang_32b_north.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_sglang_cohere_matrix.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_vllm_32b.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/colab_vllm_cohere_matrix.ipynb +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/conftest.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/test_agenttune.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/test_cohere.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/test_hf.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/test_live.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/integrations_suite/test_sglang.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/conftest.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/serve_model.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/test_issue43_specs.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/test_issue44_user_flows.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/test_issue45_bfcl.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/test_issue45_routes.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/test_live.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/issues_suite/test_vllm_cohere_templates.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/nonmetric_suite/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/nonmetric_suite/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/nonmetric_suite/conftest.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/nonmetric_suite/test_agent_eval_and_loaders.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/nonmetric_suite/test_mrm_evidence.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/nonmetric_suite/test_redteam_machinery.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/README.md +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/__init__.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/conftest.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_edge_agent_and_rag_judges.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_edge_mrm.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_edge_rag_stress.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_edge_redteam_judges.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_edge_uncertainty.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_pr1_additions.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_pr2_redteam.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_pr3_mrm.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/pipeline_suite/test_pr4_uncertainty.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_adapter.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_adapter_params.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_endpoint.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_cli.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_disagreement.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_eventlog.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_harness.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_importers.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_outcome.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_reliability.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_runner.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_secrets.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_sidecar.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_eval_types.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agent_reference_free.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agenttune_fix_plan.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_agenttune_integration.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_annotator.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_api_backend.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_api_images.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_api_tool_calls.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_api_unverified_fields.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_benchmark.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_chat_messages.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_chat_template_kwargs_everywhere.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_cli.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_cli_yaml_model.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_cohere_aya.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_cohere_hf_fix_plan.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_cohere_tool_calls.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_compare.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_compat.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_core_engine.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_custom_judge_pipeline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_diff.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_embedding_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_encoder_judge.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_env_compat_fix_plan.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_errors.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_evaluate_many.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_eventlog_action_shapes.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_execute_concurrency.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_experiment.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_fingerprint_stability.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_generation_kwargs.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_generation_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_hallucination_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_hf_dtype_fallback.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_hf_gen_logits_sanitizer.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_hf_interop.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_hf_wire_format.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_integration.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_judge.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_judge_flow.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_lexsi_compat.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_lexsi_relay.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_lmeval_engine.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_lmeval_real_pipeline.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_load_dataset.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_loaders.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_loaders_agent.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_model.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_model_backends.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_multipath_references.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_pipeline_live_hf.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_practical.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_provenance.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_rag_judge.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_rag_reference_free.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_rag_stress.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_rag_stress_ops.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_rag_stress_runner.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_reference_fingerprint.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_registry.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_release.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_retrieval_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_review27_followups.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_route_distribution.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_router.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_runner.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_sample.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_scenario_dataset_ids.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_scenarios.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_score.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_security_perf.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_template_kwargs_f1_fix_plan.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_token_usage_and_cost.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_toxicity_metrics.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_trace.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_track3_agenttune.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_types.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_unknown_architecture_message.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_unscored_results.py +0 -0
- {auditkit-1.1.2 → auditkit-1.1.4}/tests/test_vllm_offline_engine.py +0 -0
|
@@ -6,6 +6,9 @@ All notable changes to AuditKIT. The format follows [Keep a Changelog](https://k
|
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
+
- Discord link (`https://discord.gg/MhVUGVYE8q`, Lexsi Labs) in the docs footer, the README badges and
|
|
10
|
+
community section, the FAQ, and the PyPI project URLs, which now also list the docs site, the issue
|
|
11
|
+
tracker and `Homepage` pointing at `auditkit.lexsi.ai`.
|
|
9
12
|
- `RunConfig.chat_template_kwargs`: passed to the chat template of every request on
|
|
10
13
|
`hf:` and `vllm:`, and sent as `chat_template_kwargs` to `api:` servers (vLLM /
|
|
11
14
|
SGLang), e.g. `{"enable_thinking": False}` for Qwen3. A request's own values win.
|
|
@@ -107,6 +110,8 @@ All notable changes to AuditKIT. The format follows [Keep a Changelog](https://k
|
|
|
107
110
|
|
|
108
111
|
### Fixed
|
|
109
112
|
|
|
113
|
+
- Broken relative link in `examples/applications/README.md`: `../examples/` resolved to
|
|
114
|
+
`examples/examples/`; it now points at `../`.
|
|
110
115
|
- `auditkit eval --config FILE` accepts `model:` from the config file. `--model` was
|
|
111
116
|
`required=True` on the parser, so argparse rejected the command with "the following
|
|
112
117
|
arguments are required: --model" before the YAML was read, even though `docs/cli.md`
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: auditkit
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: Evaluate any model on any dataset and any task — standalone, no platform required
|
|
5
|
-
Project-URL: Homepage, https://
|
|
5
|
+
Project-URL: Homepage, https://auditkit.lexsi.ai/
|
|
6
|
+
Project-URL: Documentation, https://auditkit.lexsi.ai/
|
|
6
7
|
Project-URL: Repository, https://github.com/Lexsi-Labs/AuditKIT
|
|
8
|
+
Project-URL: Issues, https://github.com/Lexsi-Labs/AuditKIT/issues
|
|
9
|
+
Project-URL: Discord, https://discord.gg/MhVUGVYE8q
|
|
7
10
|
Author: Lexsi Labs
|
|
8
11
|
License: # Lexsi Labs Source Available License (LSAL), Version 1.2 (AuditKit)
|
|
9
12
|
|
|
@@ -115,6 +118,7 @@ Requires-Dist: bert-score; extra == 'all'
|
|
|
115
118
|
Requires-Dist: datasets; extra == 'all'
|
|
116
119
|
Requires-Dist: flask; extra == 'all'
|
|
117
120
|
Requires-Dist: gitpython; extra == 'all'
|
|
121
|
+
Requires-Dist: jsonschema; extra == 'all'
|
|
118
122
|
Requires-Dist: lexsi-sdk; extra == 'all'
|
|
119
123
|
Requires-Dist: litellm; extra == 'all'
|
|
120
124
|
Requires-Dist: lm-eval; extra == 'all'
|
|
@@ -131,7 +135,7 @@ Requires-Dist: requests; extra == 'all'
|
|
|
131
135
|
Requires-Dist: torch>=2.4; extra == 'all'
|
|
132
136
|
Requires-Dist: torchmetrics; extra == 'all'
|
|
133
137
|
Requires-Dist: torchvision; extra == 'all'
|
|
134
|
-
Requires-Dist: transformers<
|
|
138
|
+
Requires-Dist: transformers<5.22,>=5.15; extra == 'all'
|
|
135
139
|
Requires-Dist: vllm>=0.30; extra == 'all'
|
|
136
140
|
Requires-Dist: werkzeug; extra == 'all'
|
|
137
141
|
Provides-Extra: anthropic
|
|
@@ -140,6 +144,7 @@ Provides-Extra: bert-score
|
|
|
140
144
|
Requires-Dist: bert-score; extra == 'bert-score'
|
|
141
145
|
Requires-Dist: torch>=2.4; extra == 'bert-score'
|
|
142
146
|
Provides-Extra: dev
|
|
147
|
+
Requires-Dist: jsonschema; extra == 'dev'
|
|
143
148
|
Requires-Dist: pytest; extra == 'dev'
|
|
144
149
|
Requires-Dist: pytest-asyncio; extra == 'dev'
|
|
145
150
|
Requires-Dist: pytest-mock; extra == 'dev'
|
|
@@ -148,6 +153,8 @@ Provides-Extra: interop
|
|
|
148
153
|
Requires-Dist: datasets; extra == 'interop'
|
|
149
154
|
Requires-Dist: gitpython; extra == 'interop'
|
|
150
155
|
Requires-Dist: mlcroissant; extra == 'interop'
|
|
156
|
+
Provides-Extra: jsonschema
|
|
157
|
+
Requires-Dist: jsonschema; extra == 'jsonschema'
|
|
151
158
|
Provides-Extra: lexsi-sdk
|
|
152
159
|
Requires-Dist: lexsi-sdk; extra == 'lexsi-sdk'
|
|
153
160
|
Provides-Extra: litellm
|
|
@@ -170,7 +177,7 @@ Requires-Dist: sglang<0.6,>=0.5.18; extra == 'sglang'
|
|
|
170
177
|
Provides-Extra: transformers
|
|
171
178
|
Requires-Dist: peft; extra == 'transformers'
|
|
172
179
|
Requires-Dist: torch>=2.4; extra == 'transformers'
|
|
173
|
-
Requires-Dist: transformers<
|
|
180
|
+
Requires-Dist: transformers<5.22,>=5.15; extra == 'transformers'
|
|
174
181
|
Provides-Extra: vision
|
|
175
182
|
Requires-Dist: pillow; extra == 'vision'
|
|
176
183
|
Requires-Dist: torchmetrics; extra == 'vision'
|
|
@@ -199,6 +206,7 @@ Description-Content-Type: text/markdown
|
|
|
199
206
|
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.10%2B-blue" alt="Python 3.10+"></a>
|
|
200
207
|
<a href="https://github.com/Lexsi-Labs/AuditKIT/blob/main/LICENSE.md"><img src="https://img.shields.io/badge/license-LSAL--1.2-lightgrey" alt="License: LSAL-1.2 (source-available, noncommercial)"></a>
|
|
201
208
|
<a href="https://auditkit.lexsi.ai/"><img src="https://img.shields.io/badge/docs-auditkit.lexsi.ai-4c6ef5" alt="Documentation"></a>
|
|
209
|
+
<a href="https://discord.gg/MhVUGVYE8q"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
|
|
202
210
|
<a href="https://github.com/Lexsi-Labs/AuditKIT/actions"><img src="https://img.shields.io/badge/tests-2.8k%20passing-brightgreen" alt="Tests: 2846 passing, 141 skipped"></a>
|
|
203
211
|
</p>
|
|
204
212
|
|
|
@@ -487,4 +495,5 @@ This project is released under the [Lexsi Labs Source Available License (LSAL) v
|
|
|
487
495
|
## Join Community / Contribute
|
|
488
496
|
|
|
489
497
|
- Issues and discussions are welcomed on the [GitHub issue tracker](https://github.com/Lexsi-Labs/AuditKIT/issues).
|
|
498
|
+
- Questions and chat: join the [Lexsi Labs Discord](https://discord.gg/MhVUGVYE8q).
|
|
490
499
|
- See [Contributing](https://github.com/Lexsi-Labs/AuditKIT/blob/main/docs/community/contributing.md) for the development setup, code standards and the pull request process.
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.10%2B-blue" alt="Python 3.10+"></a>
|
|
19
19
|
<a href="https://github.com/Lexsi-Labs/AuditKIT/blob/main/LICENSE.md"><img src="https://img.shields.io/badge/license-LSAL--1.2-lightgrey" alt="License: LSAL-1.2 (source-available, noncommercial)"></a>
|
|
20
20
|
<a href="https://auditkit.lexsi.ai/"><img src="https://img.shields.io/badge/docs-auditkit.lexsi.ai-4c6ef5" alt="Documentation"></a>
|
|
21
|
+
<a href="https://discord.gg/MhVUGVYE8q"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
|
|
21
22
|
<a href="https://github.com/Lexsi-Labs/AuditKIT/actions"><img src="https://img.shields.io/badge/tests-2.8k%20passing-brightgreen" alt="Tests: 2846 passing, 141 skipped"></a>
|
|
22
23
|
</p>
|
|
23
24
|
|
|
@@ -306,4 +307,5 @@ This project is released under the [Lexsi Labs Source Available License (LSAL) v
|
|
|
306
307
|
## Join Community / Contribute
|
|
307
308
|
|
|
308
309
|
- Issues and discussions are welcomed on the [GitHub issue tracker](https://github.com/Lexsi-Labs/AuditKIT/issues).
|
|
310
|
+
- Questions and chat: join the [Lexsi Labs Discord](https://discord.gg/MhVUGVYE8q).
|
|
309
311
|
- See [Contributing](https://github.com/Lexsi-Labs/AuditKIT/blob/main/docs/community/contributing.md) for the development setup, code standards and the pull request process.
|
|
@@ -404,6 +404,7 @@ Every knob, with its real default:
|
|
|
404
404
|
| `retry_delay` | `float` | `1.0` | base backoff (seconds); `retry_delay * 2**attempt` |
|
|
405
405
|
| `judge_model` | `str \| None` | `None` | |
|
|
406
406
|
| `judge_prompt_version` | `str \| None` | `None` | |
|
|
407
|
+
| `failed_as_zero` | `bool` | `False` | count a failed sample (model call errored, metric raised) as `0.0` on every higher-is-better metric instead of leaving it out of the mean; lower-is-better metrics still leave it out. `summary()` reports `failed_count` either way |
|
|
407
408
|
| `track_performance` | `bool` | `True` | record latency, throughput, token usage and model size in `RunResult.perf` |
|
|
408
409
|
| `chat_template_kwargs` | `dict \| None` | `None` | passed to the chat template on `hf:`/`vllm:` and sent to `api:` servers (e.g. `{"enable_thinking": False}`); a request's own values win |
|
|
409
410
|
| `extra` | `dict` | `{}` | hashed into the fingerprint; no built-in component reads it |
|
|
@@ -611,10 +612,19 @@ Target/output accept three encodings: choice text, 0-based index, or a single A
|
|
|
611
612
|
| `starts_with` | prefix match | — | `prefix`, `ignore_case=False` |
|
|
612
613
|
| `ends_with` | suffix match | — | `suffix`, `ignore_case=False` |
|
|
613
614
|
| `regex` | `re.search(pattern, output)` | — | `pattern` (required) |
|
|
614
|
-
| `levenshtein` | `1 - editdist/maxlen` (continuous) |
|
|
615
|
+
| `levenshtein` | `1 - editdist/maxlen` (continuous) | `target` | — |
|
|
615
616
|
| `word_count` | word count within `[min,max]` | — | `min_words=0`, `max_words=None` |
|
|
616
617
|
| `is_json` | parses as JSON (+ required keys) | — | `require_keys=None` |
|
|
617
|
-
| `f1_score` | token-
|
|
618
|
+
| `f1_score` | token-overlap F1, multiset (continuous) | `target` | — |
|
|
619
|
+
|
|
620
|
+
### Structured output (`metrics/structured.py`) - MAXIMIZE, deterministic
|
|
621
|
+
|
|
622
|
+
| Name | Measures | Requires | Params | Extra |
|
|
623
|
+
|---|---|---|---|---|
|
|
624
|
+
| `json_schema_valid` | output parses as JSON and validates against a JSON Schema; reason = first failing path | schema via `schema=` or `metadata["schema"]` | `schema=None`, `backend="auto"\|"jsonschema"\|"minimal"`, `strip_fences=False`, `schema_key="schema"` | `jsonschema` (optional; a built-in subset validator is used without it) |
|
|
625
|
+
| `field_f1` | micro precision / recall / F1 over the scalar leaves of the output JSON vs `target` JSON; emits `field_f1`, `field_precision`, `field_recall` | `target` | `normalize_numbers=False`, `number_tol=0.0`, `case_sensitive=True`, `strip=True`, `date_formats=None`, `normalizers=None`, `list_keys=None`, `ignore=()`, `strip_fences=False` | - |
|
|
626
|
+
|
|
627
|
+
`field_f1` aligns lists before comparing: scalar lists as multisets, object lists by `list_keys` (a key field name, or `{path pattern: key field}`) and otherwise greedily by most matching leaves. Path patterns use `*` and write list indices as `[]` (`items[].price`).
|
|
618
628
|
|
|
619
629
|
### Generation quality (`metrics/generation.py`)
|
|
620
630
|
|
|
@@ -1033,7 +1043,7 @@ A single list of everything flagged inline above. None of these break the *corre
|
|
|
1033
1043
|
| `src/auditkit/sample.py`, `score.py`, `report.py`, `types.py` | the data model |
|
|
1034
1044
|
| `src/auditkit/adapter.py`, `router.py` | adapters + shape routing |
|
|
1035
1045
|
| `src/auditkit/model/` | 10 backends + echo/callable/precomputed |
|
|
1036
|
-
| `src/auditkit/metric.py`, `metrics/` | built-ins +
|
|
1046
|
+
| `src/auditkit/metric.py`, `metrics/` | built-ins + 12 metric families (70 registered metrics) |
|
|
1037
1047
|
| `src/auditkit/lmeval_engine.py` | the lm-eval bridge |
|
|
1038
1048
|
| `src/auditkit/comparison.py`, `diff.py`, `model_compare.py`, `_bootstrap.py`, `experiment.py` | comparison + significance + tracking |
|
|
1039
1049
|
| `src/auditkit/redteam/` | probes + detectors + `RedTeamRunner` |
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
+
- `JsonSchemaValid` (`json_schema_valid`) and `FieldF1` (`field_f1`, with `field_precision` and
|
|
8
|
+
`field_recall`): metrics for structured extraction. `JsonSchemaValid` validates the output against
|
|
9
|
+
a JSON Schema with the `jsonschema` package (new optional extra `auditkit[jsonschema]`) or a
|
|
10
|
+
built-in validator for the common keywords. `FieldF1` scores per-field precision, recall and F1
|
|
11
|
+
over flattened JSON paths, with list alignment and number, date and case normalisation hooks.
|
|
7
12
|
- `RunConfig.chat_template_kwargs`: passed to the chat template of every request on
|
|
8
13
|
`hf:` and `vllm:`, and sent as `chat_template_kwargs` to `api:` servers (vLLM /
|
|
9
14
|
SGLang), e.g. `{"enable_thinking": False}` for Qwen3. A request's own values win.
|
|
@@ -102,9 +107,89 @@
|
|
|
102
107
|
- `check_compat()`: warns for sglang on Python 3.13, and for accelerate < 1.0 with
|
|
103
108
|
transformers 5; with `check_cuda=True`, errors on a torchaudio that won't load
|
|
104
109
|
against torch's CUDA.
|
|
110
|
+
- `LLMJudge` warns (`FutureWarning`) about an option label that carries a `{placeholder}`, a line break or other
|
|
111
|
+
control character, or is longer than 64 characters, because such a label can put text into the judge's
|
|
112
|
+
instructions that the caller did not mean to put there. The judge is still built. A later release will refuse
|
|
113
|
+
these labels with a `ValueError`. `option_label_problems()` lists what is wrong with a set of labels.
|
|
105
114
|
|
|
106
115
|
### Fixed
|
|
107
116
|
|
|
117
|
+
- **Indic and other combining-mark scripts keep their words apart.** `quasi_exact_match`,
|
|
118
|
+
`answer_overlap` and the lexical RAG metrics turned vowel signs, which are combining marks and
|
|
119
|
+
not `\w`, into spaces. `दिन` and `दान` both became `द न` and matched, and Tamil pairs matched too.
|
|
120
|
+
Punctuation is still removed in every script, and the zero-width joiners are dropped inside words.
|
|
121
|
+
**Scores change** for text in these scripts.
|
|
122
|
+
- **`f1_score` counted repeated tokens inconsistently.** The overlap came from a set intersection but the
|
|
123
|
+
precision and recall denominators were the token-list lengths, so `to be or not to be` scored 0.667
|
|
124
|
+
against itself and `New York, New York` scored 0.5. The overlap is now the multiset (`Counter`)
|
|
125
|
+
intersection, as in the SQuAD script, so identical text scores 1.0 and `paris paris paris` against
|
|
126
|
+
`paris` scores 0.5. Two strings with no tokens left after normalization (empty, or only articles such as
|
|
127
|
+
`a a a`) now score 1.0 instead of 0.0. Unicode punctuation (the Devanagari danda, the Arabic comma,
|
|
128
|
+
full-width stops) is now ignored, so `नमस्ते।` matches `नमस्ते`. **Scores change** for samples with
|
|
129
|
+
repeated tokens, an empty side or such punctuation, and `identity()` gains `"overlap": "multiset"`, so
|
|
130
|
+
cached `f1_score` results are not reused.
|
|
131
|
+
- **The paired significance test could not detect a real effect.** `paired_bootstrap` (behind
|
|
132
|
+
`RunComparison.significance`, `compare_models` and `Experiment.significance`) resampled the raw per-sample
|
|
133
|
+
differences, so its distribution was centred on the observed mean and the p-value sat near 0.5 for every effect
|
|
134
|
+
size. It now centres the differences on the null first. A 30-of-40 improvement goes from p = 0.585 to 0.001.
|
|
135
|
+
**Significance results change.**
|
|
136
|
+
- **`summary()` says when samples failed.** A sample whose model call errored or whose metric raised is left out of
|
|
137
|
+
every mean, so a model that failed 4 of 10 requests and answered the other 6 correctly reported 1.0 with nothing to
|
|
138
|
+
show it. `summary()` now prints how many failed and that they are left out of the means above.
|
|
139
|
+
- **The same scorers in another order were served each other's cached result.** `Prediction.correct` and
|
|
140
|
+
`Prediction.score` follow the first applicable scorer, but the run's cache key sorted the scorers, so after
|
|
141
|
+
`evaluate(..., [exact_match, f1_score])` the call with `[f1_score, exact_match]` returned the first run's
|
|
142
|
+
`correct` (`False`) where a fresh run gives `True`. The scorers' order is now part of the cache key. A run with
|
|
143
|
+
its scorers in a different order is a cache miss and is scored again; the same order still hits the cache.
|
|
144
|
+
- **The `transformers` extra is capped below 5.22.** transformers 5.22.0 to 5.22.2 make `pipeline()` pass
|
|
145
|
+
`code_revision=None` to the model class, which classes that are not auto classes reject, so loading the Aya vision
|
|
146
|
+
model through `hf:` fails with `got an unexpected keyword argument 'code_revision'`. 5.21.1 and older load it. The
|
|
147
|
+
cap comes off when a transformers release fixes this.
|
|
148
|
+
- `paired_bootstrap` raises `ValueError` for `n_resamples` below 1. With none the p-value was undefined, and a
|
|
149
|
+
negative count returned a negative p-value reported as significant.
|
|
150
|
+
- `EndsWith(ignore_case=True)` has its own name and identity, `Levenshtein` skips a sample with no target instead of
|
|
151
|
+
scoring it, `LLMJudge` includes its threshold and direction in its identity, and `GuardJudge` identifies its judge
|
|
152
|
+
model. Cached results for these metrics are not reused.
|
|
153
|
+
- `ak.compare` and `tradeoff()` skip `quality_per_mb` when the metric is scored on one side only, instead of raising.
|
|
154
|
+
- **Red-team detectors mixed up refusals and attacks.** `KeywordDetector` no longer matches "as an ai" or "system
|
|
155
|
+
prompt", `InjectionSuccessDetector` no longer matches a bare "hacked", `RefusalDetector` is word-bounded and reads
|
|
156
|
+
only the opening sentence ("the API cannot..." is not a refusal), and `SystemPromptLeakDetector` fires on a
|
|
157
|
+
disclosure ("my system prompt is...", "I was instructed to...") in a non-refusal, not on generic phrases. The
|
|
158
|
+
natural-word markers "bypassed" and "ignore all previous" are gone.
|
|
159
|
+
- **A curly apostrophe hid a refusal.** `RefusalDetector` and the keyword refusal check in `rag_stress` matched
|
|
160
|
+
"can't" and "I'm unable" but not "can’t" or "I’m unable", which models often write, so a refusal was read as
|
|
161
|
+
an answer. Curly apostrophes (U+2019, U+2018, U+02BC, U+2032) are straightened before matching.
|
|
162
|
+
- **`LLMJudge` number parsing.** `SCORE: 8/10` on the default 0-1 scale is 0.8 (it was read as 8 and clamped to
|
|
163
|
+
1.0), and with no `SCORE:` marker the last number on the final line is the verdict, not the first ("... so overall
|
|
164
|
+
I rate it 0.1" read 3). A number outside the scale is unknown instead of being clamped to the top or bottom score.
|
|
165
|
+
- **A `TypeError` raised inside a context scorer was retried without `context`.** `FunctionScorer` now checks whether
|
|
166
|
+
`fn(sample, output, context=...)` binds to the scorer's own signature. If it does, a `TypeError` came from inside the
|
|
167
|
+
scorer and is raised once, for scorers that name `context`, take `**kwargs`, or sit behind a `functools.wraps` forwarder
|
|
168
|
+
of one. A two-argument scorer, including one behind a bare `*args, **kwargs` wrapper, is still called without `context`.
|
|
169
|
+
- **A score that could not be measured counted as 0 or 0.5.** A weighted combination with no scores or weights
|
|
170
|
+
summing to zero, a pairwise metric with no preference data or no candidates, and an unrecognised hallucination
|
|
171
|
+
label now return a score flagged `unknown`, so they are left out of the aggregate. `Experiment.aggregate` leaves
|
|
172
|
+
out a run that lacks the metric, and returns `None` when no run has it. **Scores change** for these cases.
|
|
173
|
+
- **`mcq_joint` dropped the run's generation settings.** The request built for index-labelled multiple choice had
|
|
174
|
+
no parameters, so `max_tokens`, `temperature`, `seed` and `stop_sequences` never reached the model. They are now
|
|
175
|
+
passed on. With no settings given, what a backend receives is unchanged (`temperature=0.0`).
|
|
176
|
+
- **`hf:` loading options.** `quantization_config`, `max_memory`, `low_cpu_mem_usage`, `attn_implementation`,
|
|
177
|
+
`load_in_8bit` and `load_in_4bit` were passed to `transformers.pipeline()` as top-level keywords, which it forwards
|
|
178
|
+
to the pipeline instead of the model, so `generate()` later rejected them ("model_kwargs are not used by the
|
|
179
|
+
model"). They are now nested under `model_kwargs`, and `max_memory` is treated as a load-time option, not a
|
|
180
|
+
generation one. A `device_map` that spreads the model over accelerators, at the top level or inside `model_kwargs`, and a quantized
|
|
181
|
+
load are not passed together with `device`, which `transformers.pipeline` rejects or tries to move (a map that puts
|
|
182
|
+
everything on the CPU keeps `device`, so a model asked to stay on the CPU stays there); `device_map=None` means no map; fp16
|
|
183
|
+
is no longer forced next to an explicit dtype or on a CPU-only map; an explicit `device` that is ignored is logged.
|
|
184
|
+
When torch and transformers are installed but one fails to import, the real error is raised instead of a "pip
|
|
185
|
+
install" hint.
|
|
186
|
+
- **`f1_score` and `token_overlap` identities** carry the new behaviour (`"punctuation": "unicode"`,
|
|
187
|
+
`"empty_pair": 1.0`), so cached results from before are not reused.
|
|
188
|
+
- `token_overlap`: two empty sides scored 0.0 although identical; they now score 1.0, like `exact_match`,
|
|
189
|
+
`equals`, `rouge_l`, `word_error_rate` and `f1_score`.
|
|
190
|
+
- `perplexity` on an empty output returned a NaN score. It now skips the sample, as other metrics do when
|
|
191
|
+
there is nothing to score.
|
|
192
|
+
- `is_json` rejects `NaN`, `Infinity` and `-Infinity`, which JSON does not allow. Python's parser accepts them.
|
|
108
193
|
- The six built-in benchmark scenarios load again. They used bare Hub ids (`mmlu`, `arc` and
|
|
109
194
|
`truthfulqa` no longer exist; the others failed with `HfUriError`) and now use `cais/mmlu`,
|
|
110
195
|
`openai/gsm8k`, `allenai/ai2_arc`, `Rowan/hellaswag`, `truthfulqa/truthful_qa` and
|
|
@@ -75,4 +75,5 @@ Yes. The CLI returns exit codes and supports JSON output for downstream processi
|
|
|
75
75
|
|
|
76
76
|
## Where can I report issues?
|
|
77
77
|
|
|
78
|
-
On the [GitHub issue tracker](https://github.com/Lexsi-Labs/AuditKIT/issues).
|
|
78
|
+
On the [GitHub issue tracker](https://github.com/Lexsi-Labs/AuditKIT/issues). For questions and
|
|
79
|
+
general discussion, join the [Lexsi Labs Discord](https://discord.gg/MhVUGVYE8q).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Metrics
|
|
2
2
|
|
|
3
|
-
AuditKIT has
|
|
3
|
+
AuditKIT has 70 registered metrics in 12 families. Most need no third-party
|
|
4
4
|
packages; the ones that do say which extra, and the judge metrics need a judge model.
|
|
5
5
|
|
|
6
6
|
For exact mechanics, constructor arguments, and caveats per metric,
|
|
@@ -25,6 +25,21 @@ these, see [Annotators](annotators.md).
|
|
|
25
25
|
| `IsJson(require_keys)` | Valid JSON + optional keys | `IsJson(require_keys=["name"]).score(s, json_str)` |
|
|
26
26
|
| `F1Score()` | Token-overlap F1 | `F1Score().score(s, "the cat sat")` |
|
|
27
27
|
|
|
28
|
+
## Structured Output
|
|
29
|
+
|
|
30
|
+
| Metric | Description | Example |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| `JsonSchemaValid(schema)` | 1.0 iff the output parses as JSON and validates against a JSON Schema (a dict, a file path, or per sample from `metadata["schema"]`); the reason names the first failing path. Uses `jsonschema` if installed (`[jsonschema]` extra), else a built-in validator for the common keywords that refuses a schema it cannot check | `JsonSchemaValid(schema).score(s, json_str)` |
|
|
33
|
+
| `FieldF1(...)` | Per-field precision, recall and F1 (`field_f1`, `field_precision`, `field_recall`) of an extracted JSON object against the target object. Flattens nested paths, aligns lists (multiset, by key field, or greedy best match) and takes normalisation options for numbers, dates and case | `FieldF1(normalize_numbers=True, list_keys="id")` |
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
import auditkit as ak
|
|
37
|
+
|
|
38
|
+
samples = [ak.Sample(input=doc, target=gold_json, metadata={"schema": schema}) for doc, gold_json in rows]
|
|
39
|
+
result = ak.evaluate(samples, model="api:my-model", api_base="http://localhost:30000/v1", api_key="EMPTY",
|
|
40
|
+
scorers=[ak.JsonSchemaValid(), ak.FieldF1(normalize_numbers=True, list_keys="id")])
|
|
41
|
+
```
|
|
42
|
+
|
|
28
43
|
## Generation
|
|
29
44
|
|
|
30
45
|
| Metric | Description | Extra |
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
# Scorer reference — every registered metric
|
|
2
2
|
|
|
3
3
|
All scorers registered in `METRICS` (`src/auditkit/registry.py`), grouped by
|
|
4
|
-
module (
|
|
4
|
+
module (70 in all). Every scorer implements the same
|
|
5
5
|
fixed `score(sample, output, context=None) -> Score` interface described in
|
|
6
6
|
[LLM-as-Judge Rendering](llm_judge_rendering.md) — the differences below are
|
|
7
7
|
in constructor arguments, `required_fields` (which fields the runner checks
|
|
8
8
|
before it runs a scorer against a sample — see `Metric.applicable()`), and
|
|
9
9
|
what `context` keys (if any) they read.
|
|
10
10
|
|
|
11
|
+
When several scorers are passed, `Prediction.correct` and `Prediction.score` follow the **first** applicable one,
|
|
12
|
+
and every scorer's score is still recorded. The order is therefore part of the run's identity: the same scorers in
|
|
13
|
+
another order are a different run and are not served each other's cached result.
|
|
14
|
+
|
|
11
15
|
**Kind** is the `ScoreKind` the scorer reports (`BENCHMARK`, `JUDGE`, `CODE`,
|
|
12
16
|
`SECURITY`, `RAG`, `AGENT`) — used for grouping/filtering results, not a hard
|
|
13
17
|
constraint on what the scorer measures.
|
|
@@ -30,10 +34,17 @@ constraint on what the scorer measures.
|
|
|
30
34
|
| `starts_with` | `StartsWith` | CODE | — | 1.0 iff `output` starts with a given `prefix` (constructor arg). |
|
|
31
35
|
| `ends_with` | `EndsWith` | CODE | — | 1.0 iff `output` ends with a given `suffix` (constructor arg). |
|
|
32
36
|
| `regex` | `Regex` | CODE | — | 1.0 iff a given regex `pattern` (constructor arg) matches anywhere in `output`. |
|
|
33
|
-
| `levenshtein` | `Levenshtein` | CODE |
|
|
37
|
+
| `levenshtein` | `Levenshtein` | CODE | `target` | `1 - (edit distance / max(len(output), len(target)))` — a real Wagner–Fischer DP edit distance, not an approximation. |
|
|
34
38
|
| `word_count` | `WordCount` | CODE | — | 1.0 iff `len(output.split())` falls within `[min_words, max_words]` (constructor args; either bound optional). |
|
|
35
39
|
| `is_json` | `IsJson` | CODE | — | 1.0 iff `output` parses as JSON; optionally also requires specific top-level keys (`require_keys=`) to be present in a parsed dict. |
|
|
36
|
-
| `f1_score` | `F1Score` | CODE | — | Token-level F1 between `output` and `sample.target`, computed
|
|
40
|
+
| `f1_score` | `F1Score` | CODE | — | Token-level F1 between `output` and `sample.target`, computed from the multiset (`Counter`) overlap of the tokens, as in the SQuAD script: order is ignored and a repeated token counts as often as it appears in both. Two strings with no tokens left after normalization score 1.0. |
|
|
41
|
+
|
|
42
|
+
## Structured output (`src/auditkit/metrics/structured.py`)
|
|
43
|
+
|
|
44
|
+
| Registry name | Class | Kind | Required fields | What it does |
|
|
45
|
+
|---|---|---|---|---|
|
|
46
|
+
| `json_schema_valid` | `JsonSchemaValid` | CODE | - (a schema, from `schema=` or `sample.metadata["schema"]`; samples without one are skipped) | 1.0 iff `output` parses as JSON and validates against the schema. `backend="auto"` uses `jsonschema` when installed (`pip install auditkit[jsonschema]`), else a built-in validator covering type, enum, const, required, properties, additionalProperties, patternProperties, items, array/string/number bounds, anyOf/oneOf/allOf/not and local `$ref` (`format` is not asserted); it raises `ValueError` for a schema using any other keyword instead of skipping it. `strip_fences=True` accepts one Markdown code fence. The `Score.reason` of a 0.0 names the first failure. |
|
|
47
|
+
| `field_f1` | `FieldF1` | CODE | `target` (a JSON object or array) | Flattens `output` and `target` to scalar leaves by path and returns `field_f1`, `field_precision` and `field_recall`, micro-averaged within the sample. A leaf is a true positive when the target has the same path with an equal normalised value. Lists are aligned first (multiset for scalars, `list_keys` for objects, else greedy by matching leaves). Options: `normalize_numbers`/`number_tol`, `case_sensitive`, `strip`, `date_formats`, `normalizers={path pattern: fn}`, `ignore`, `strip_fences`. Output that is not JSON scores 0 on all three. |
|
|
37
48
|
|
|
38
49
|
## Generation quality (`src/auditkit/metrics/generation.py`)
|
|
39
50
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Applications
|
|
2
2
|
|
|
3
3
|
Real-world scenarios built on AuditKit — not feature tours (see
|
|
4
|
-
[`examples/`](../
|
|
4
|
+
[`examples/`](../) for those), but a specific question answered
|
|
5
5
|
end to end with real data, real models, and a real verdict.
|
|
6
6
|
|
|
7
7
|
All 7 notebooks are capped at 20 real samples (01/03 currently run at a
|
|
@@ -62,6 +62,9 @@ extra:
|
|
|
62
62
|
- icon: fontawesome/brands/github
|
|
63
63
|
link: https://github.com/Lexsi-Labs
|
|
64
64
|
name: Lexsi Labs on GitHub
|
|
65
|
+
- icon: fontawesome/brands/discord
|
|
66
|
+
link: https://discord.gg/MhVUGVYE8q
|
|
67
|
+
name: Lexsi Labs on Discord
|
|
65
68
|
- icon: fontawesome/brands/x-twitter
|
|
66
69
|
link: https://x.com/Lexsi_labs
|
|
67
70
|
name: Lexsi Labs on X
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "auditkit"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.4"
|
|
8
8
|
description = "Evaluate any model on any dataset and any task — standalone, no platform required"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -31,13 +31,16 @@ anthropic = ["anthropic"]
|
|
|
31
31
|
# needed for North Micro Vision (cohere_compass); vLLM 0.30 is the first release
|
|
32
32
|
# on transformers 5.x that also registers CohereCompass, so the two extras
|
|
33
33
|
# co-resolve. torch is a floor only (no upper cap) so users can bring their own
|
|
34
|
-
# CUDA build.
|
|
35
|
-
|
|
34
|
+
# CUDA build. transformers is capped below 5.22: 5.22.0 to 5.22.2 make pipeline() pass
|
|
35
|
+
# code_revision=None to the model class, which non-auto classes (the Aya vision model) reject;
|
|
36
|
+
# 5.21.1 and older load it. vLLM already requires an older transformers than this cap.
|
|
37
|
+
transformers = ["torch>=2.4", "transformers>=5.15,<5.22", "peft"] # peft: hf:<adapter dir>
|
|
36
38
|
lmeval = ["lm-eval", "accelerate>=1.0"] # accelerate: lm-eval's hf backend; transformers 5 refuses device_map below 1.x
|
|
37
39
|
vision = ["pillow", "torchvision", "torchmetrics"] # torchvision: transformers 5.x image processors need it
|
|
38
40
|
interop = ["datasets", "mlcroissant", "GitPython"] # GitPython: mlcroissant needs it for git-based repo downloads but doesn't declare it itself
|
|
39
41
|
mlflow = ["mlflow"]
|
|
40
42
|
requests = ["requests"]
|
|
43
|
+
jsonschema = ["jsonschema"] # JsonSchemaValid full-spec backend (a built-in subset validator is used without it)
|
|
41
44
|
# SGLang is NOT needed to evaluate an SGLang model: run `python -m sglang.launch_server`
|
|
42
45
|
# in its own env and point the `api:` backend at it -- that needs only [requests].
|
|
43
46
|
# This extra exists only for code that drives SGLang's offline Engine in-process.
|
|
@@ -56,14 +59,17 @@ bert-score = ["bert-score", "torch>=2.4"]
|
|
|
56
59
|
relay = ["flask", "werkzeug", "requests"] # LexsiCompletionsRelay (lexsi_relay.py)
|
|
57
60
|
lexsi-sdk = ["lexsi-sdk"] # lexsi_login()/run_benchmark(lexsi_org=...) (lexsi_login.py) -- the only place it's imported
|
|
58
61
|
# pyyaml: tests/test_cli_yaml_model.py exercises `eval --config`, which needs it.
|
|
59
|
-
dev = ["pytest", "pytest-asyncio", "pytest-mock", "pyyaml"]
|
|
62
|
+
dev = ["pytest", "pytest-asyncio", "pytest-mock", "pyyaml", "jsonschema"]
|
|
60
63
|
all = [
|
|
61
|
-
"auditkit[openai,anthropic,transformers,lmeval,vision,interop,mlflow,requests,vllm,litellm,bert-score,relay,lexsi-sdk,dev]",
|
|
64
|
+
"auditkit[openai,anthropic,transformers,lmeval,vision,interop,mlflow,requests,jsonschema,vllm,litellm,bert-score,relay,lexsi-sdk,dev]",
|
|
62
65
|
]
|
|
63
66
|
|
|
64
67
|
[project.urls]
|
|
65
|
-
Homepage = "https://
|
|
68
|
+
Homepage = "https://auditkit.lexsi.ai/"
|
|
69
|
+
Documentation = "https://auditkit.lexsi.ai/"
|
|
66
70
|
Repository = "https://github.com/Lexsi-Labs/AuditKIT"
|
|
71
|
+
Issues = "https://github.com/Lexsi-Labs/AuditKIT/issues"
|
|
72
|
+
Discord = "https://discord.gg/MhVUGVYE8q"
|
|
67
73
|
|
|
68
74
|
[project.scripts]
|
|
69
75
|
auditkit = "auditkit.cli:main"
|
|
@@ -7,7 +7,7 @@ from importlib import metadata as _metadata
|
|
|
7
7
|
try:
|
|
8
8
|
__version__ = _metadata.version("auditkit")
|
|
9
9
|
except _metadata.PackageNotFoundError: # a source checkout that was never installed
|
|
10
|
-
__version__ = "1.1.
|
|
10
|
+
__version__ = "1.1.4"
|
|
11
11
|
|
|
12
12
|
from .api import run_lmeval, compare, evaluate, evaluate_many, generate, scorer
|
|
13
13
|
from .lexsi_login import lexsi_login
|
|
@@ -36,6 +36,7 @@ from .scenario import CallableScenario, ListScenario, Scenario
|
|
|
36
36
|
from .metrics.code import (
|
|
37
37
|
Contains, EndsWith, Equals, F1Score, IsJson, Levenshtein, Regex, StartsWith, WordCount,
|
|
38
38
|
)
|
|
39
|
+
from .metrics.structured import FieldF1, JsonSchemaValid
|
|
39
40
|
from .metrics.embedding import BM25Similarity, CosineSimilarity, TokenOverlap
|
|
40
41
|
from .metrics.generation import (
|
|
41
42
|
BertScore, Bleu, ChrF, Perplexity, RogueL, WordErrorRate,
|
|
@@ -170,6 +171,8 @@ __all__ = [
|
|
|
170
171
|
"Levenshtein",
|
|
171
172
|
"WordCount",
|
|
172
173
|
"IsJson",
|
|
174
|
+
"JsonSchemaValid",
|
|
175
|
+
"FieldF1",
|
|
173
176
|
"RogueL",
|
|
174
177
|
"WordErrorRate",
|
|
175
178
|
"F1Score",
|
|
@@ -52,7 +52,11 @@ def paired_bootstrap(
|
|
|
52
52
|
Returns ``{n, mean_baseline, mean_candidate, delta, p_value, significant}``
|
|
53
53
|
where ``delta = mean_candidate - mean_baseline`` (positive ⇒ candidate scored
|
|
54
54
|
higher). Fewer than 2 pairs can't be resampled meaningfully → ``{"error": ...}``.
|
|
55
|
+
``n_resamples`` below 1 raises ``ValueError``: with none the p-value is not defined, and a negative
|
|
56
|
+
count gave a negative p-value.
|
|
55
57
|
"""
|
|
58
|
+
if n_resamples < 1:
|
|
59
|
+
raise ValueError(f"n_resamples must be at least 1, got {n_resamples}")
|
|
56
60
|
n = len(pairs)
|
|
57
61
|
if n < 2:
|
|
58
62
|
return {"error": "need at least 2 aligned sample pairs", "n": n}
|
|
@@ -61,9 +65,12 @@ def paired_bootstrap(
|
|
|
61
65
|
mean_candidate = sum(c for _, c in pairs) / n
|
|
62
66
|
observed = sum(diffs) / n
|
|
63
67
|
rng = random.Random(seed)
|
|
68
|
+
# Null hypothesis: no difference. Centre the differences on zero before resampling; resampling the raw
|
|
69
|
+
# differences centres the resampled means on `observed`, which puts p near 0.5 whatever the effect.
|
|
70
|
+
centred = [d - observed for d in diffs]
|
|
64
71
|
count = 0
|
|
65
72
|
for _ in range(n_resamples):
|
|
66
|
-
resample = [rng.choice(
|
|
73
|
+
resample = [rng.choice(centred) for _ in range(n)]
|
|
67
74
|
if abs(sum(resample) / n) >= abs(observed):
|
|
68
75
|
count += 1
|
|
69
76
|
p = (count + 1) / (n_resamples + 1)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Small text helpers shared by the metrics and the red-team detectors."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
#: Apostrophe look-alikes a model can write for ``'``: right and left single quotes, modifier letter apostrophe, prime.
|
|
5
|
+
_APOSTROPHES = {ord(c): "'" for c in "’‘ʼ′"}
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def fold_apostrophes(text: str) -> str:
|
|
9
|
+
"""Straighten curly apostrophes (U+2019, U+2018, U+02BC, U+2032) and nothing else.
|
|
10
|
+
|
|
11
|
+
Case is kept, so it can sit in front of a case-sensitive matcher: ``"can’t"`` matches a marker
|
|
12
|
+
written ``"can't"``.
|
|
13
|
+
"""
|
|
14
|
+
return (text or "").translate(_APOSTROPHES)
|
|
@@ -109,7 +109,7 @@ class MCQAdapter(Adapter):
|
|
|
109
109
|
for i, choice in enumerate(sample.choices):
|
|
110
110
|
prompt += f"{i}. {choice}\n"
|
|
111
111
|
prompt += "\nAnswer:"
|
|
112
|
-
return [Request(prompt=prompt, request_type="generate")]
|
|
112
|
+
return [Request(prompt=prompt, request_type="generate", params=_gen_params(config))]
|
|
113
113
|
return [
|
|
114
114
|
Request(prompt=sample.input, request_type="loglikelihood", params={"target": c})
|
|
115
115
|
for c in sample.choices
|
|
@@ -308,7 +308,7 @@ class RunComparison:
|
|
|
308
308
|
out["baseline_size_mb"] = baseline_size_mb
|
|
309
309
|
out["candidate_size_mb"] = candidate_size_mb
|
|
310
310
|
out["size_ratio"] = candidate_size_mb / baseline_size_mb # <1 = smaller
|
|
311
|
-
if
|
|
311
|
+
if out.get("retention") is not None:
|
|
312
312
|
# retention(), not the raw candidate value: for a MINIMIZE
|
|
313
313
|
# metric (latency, cost) a bigger raw number is WORSE, so
|
|
314
314
|
# dividing it by size and calling the result "quality" would
|
|
@@ -316,7 +316,7 @@ class RunComparison:
|
|
|
316
316
|
# (1.0 = parity, regardless of whether the metric counts up
|
|
317
317
|
# or down), so "quality per mb" means the same thing for
|
|
318
318
|
# every metric.
|
|
319
|
-
out["quality_per_mb"] =
|
|
319
|
+
out["quality_per_mb"] = out["retention"] / candidate_size_mb
|
|
320
320
|
elif base_size or cand_size:
|
|
321
321
|
# No real size_mb on at least one side -- either it's a hosted
|
|
322
322
|
# -API/callable model (never measurable at all) or a local
|
|
@@ -21,19 +21,24 @@ class Experiment:
|
|
|
21
21
|
def add(self, run: RunResult) -> None:
|
|
22
22
|
self.runs.append(run)
|
|
23
23
|
|
|
24
|
-
def aggregate(self, metric: str | None = None) -> dict[str, float]:
|
|
24
|
+
def aggregate(self, metric: str | None = None) -> dict[str, float | None]:
|
|
25
|
+
"""Mean of each headline metric over the runs that have it.
|
|
26
|
+
|
|
27
|
+
A run that did not measure a metric is left out of that mean, never counted as 0. With
|
|
28
|
+
``metric`` and no run having it the value is ``None``: not measured.
|
|
29
|
+
"""
|
|
25
30
|
if not self.runs:
|
|
26
31
|
return {}
|
|
27
32
|
if metric:
|
|
28
|
-
vals = [r.headline
|
|
29
|
-
return {metric: sum(vals) / len(vals) if vals else
|
|
33
|
+
vals = [r.headline[metric] for r in self.runs if r.headline and metric in r.headline]
|
|
34
|
+
return {metric: sum(vals) / len(vals) if vals else None}
|
|
30
35
|
all_metrics = set()
|
|
31
36
|
for r in self.runs:
|
|
32
37
|
all_metrics.update(r.headline.keys())
|
|
33
|
-
result = {}
|
|
38
|
+
result: dict[str, float | None] = {}
|
|
34
39
|
for m in sorted(all_metrics):
|
|
35
|
-
vals = [r.headline
|
|
36
|
-
result[m] = sum(vals) / len(vals) if vals else
|
|
40
|
+
vals = [r.headline[m] for r in self.runs if r.headline and m in r.headline]
|
|
41
|
+
result[m] = sum(vals) / len(vals) if vals else None
|
|
37
42
|
return result
|
|
38
43
|
|
|
39
44
|
def leaderboard(self) -> list[dict[str, Any]]:
|
|
@@ -11,6 +11,7 @@ arrive as later techniques but wear this same interface.
|
|
|
11
11
|
from __future__ import annotations
|
|
12
12
|
|
|
13
13
|
import re
|
|
14
|
+
import unicodedata
|
|
14
15
|
from abc import ABC, abstractmethod
|
|
15
16
|
from typing import Any, Optional, Union
|
|
16
17
|
|
|
@@ -91,10 +92,28 @@ _ARTICLE_RE = re.compile(r"\b(a|an|the)\b", re.IGNORECASE)
|
|
|
91
92
|
_PUNCT_RE = re.compile(r"[^\w\s]")
|
|
92
93
|
|
|
93
94
|
|
|
95
|
+
def _strip_punct(text: str, repl: str) -> str:
|
|
96
|
+
"""Replace each character that is not a word character, whitespace or a
|
|
97
|
+
combining mark with *repl*, after NFC.
|
|
98
|
+
|
|
99
|
+
Combining marks (Indic vowel signs and viramas, decomposed accents) are not
|
|
100
|
+
``\\w``, so a plain ``[^\\w\\s]`` would turn the Hindi words ``दिन`` and ``दान``
|
|
101
|
+
into the same ``द न``. The zero-width non-joiner and joiner (U+200C, U+200D) are
|
|
102
|
+
removed, not replaced: they sit inside words (Persian ``میخواهم``, Devanagari
|
|
103
|
+
``क्ष``) and change only how the word is drawn. ASCII text has no marks and takes
|
|
104
|
+
that regex unchanged.
|
|
105
|
+
"""
|
|
106
|
+
if text.isascii():
|
|
107
|
+
return _PUNCT_RE.sub(repl, text)
|
|
108
|
+
text = unicodedata.normalize("NFC", text).replace("\u200c", "").replace("\u200d", "")
|
|
109
|
+
return "".join(repl if _PUNCT_RE.match(c) and not unicodedata.category(c).startswith("M") else c
|
|
110
|
+
for c in text)
|
|
111
|
+
|
|
112
|
+
|
|
94
113
|
def _normalize(text: str) -> str:
|
|
95
114
|
"""Lowercase, drop punctuation and articles, collapse whitespace."""
|
|
96
115
|
text = text.lower()
|
|
97
|
-
text =
|
|
116
|
+
text = _strip_punct(text, " ")
|
|
98
117
|
text = _ARTICLE_RE.sub(" ", text)
|
|
99
118
|
return " ".join(text.split())
|
|
100
119
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Built-in metric families for evaluating model outputs:
|
|
4
4
|
|
|
5
5
|
- **code** — Contains, Equals, F1Score, IsJson, Levenshtein, Regex, StartsWith, EndsWith, WordCount
|
|
6
|
+
- **structured** - JsonSchemaValid, FieldF1
|
|
6
7
|
- **embedding** — CosineSimilarity, TokenOverlap, BM25Similarity
|
|
7
8
|
- **generation** — Bleu, RogueL, ChrF, BertScore, Perplexity, WordErrorRate
|
|
8
9
|
- **hallucination** — FactualConsistency
|