gooddata-eval 1.80.1.dev8__tar.gz → 1.80.1.dev10__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.
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/AGENTS.md +3 -1
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/Makefile +4 -0
- gooddata_eval-1.80.1.dev8/README.md → gooddata_eval-1.80.1.dev10/PKG-INFO +83 -2
- gooddata_eval-1.80.1.dev8/PKG-INFO → gooddata_eval-1.80.1.dev10/README.md +53 -32
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/pyproject.toml +2 -2
- gooddata_eval-1.80.1.dev10/scripts/calibrate_knowledge_judge.py +62 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/cli/agentic_runner.py +15 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/alert_skill.py +106 -44
- gooddata_eval-1.80.1.dev10/src/gooddata_eval/core/agentic/knowledge.py +449 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/alert_skill.py +1 -1
- gooddata_eval-1.80.1.dev10/src/gooddata_eval/core/evaluators/knowledge.py +246 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/interaction.py +1 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/models.py +2 -1
- gooddata_eval-1.80.1.dev10/tests/fixtures/knowledge_calibration.json +98 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_alert_skill.py +180 -0
- gooddata_eval-1.80.1.dev10/tests/test_agentic_knowledge.py +330 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_runner.py +30 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_cli.py +47 -0
- gooddata_eval-1.80.1.dev10/tests/test_knowledge_evaluator.py +407 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_source.py +15 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_trace_linker.py +1 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/.gitignore +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/CLAUDE.md +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/LICENSE.txt +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/scripts/calibrate_catalog_metadata_judge.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/scripts/calibrate_takeaway_judge.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/scripts/verify_guardrail_refusal_criteria.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/_version.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/cli/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/cli/main.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/_output.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/_retry.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_catalog.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_clarification.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_conversation_context.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_editor_takeaways.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_failed_runs.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_failure_message.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_filters.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_gate.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_langfuse.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_metric_expectation.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_metric_workspace.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_outcome.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_search_expectation.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/_trace_linker.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/agent_switcher.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/anomaly_detection.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/conversation.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/dashboard_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/dashboard_summary.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/document_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/forecasting.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/general_question.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/guardrail.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/kda_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/metric_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/report_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/search_tool.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/visualization.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/agentic/what_if.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/catalog/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/catalog/evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/catalog/http_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/chat/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/chat/render.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/chat/sse_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/config.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/connection.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/dataset/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/dataset/from_insights.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/dataset/langfuse_source.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/dataset/local.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/_deep_subset.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/_guardrail_criteria.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/_llm_judge.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/_maql.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/_rubric.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/_text_utils.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/base.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/catalog_metadata.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/general_question.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/guardrail.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/metric_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/search_tool.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/summary.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/takeaway.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/evaluators/visualization.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/granularity.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/_env.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/experiment.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/item_scope.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/observations.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/otlp.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/langfuse/sink.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/number_format.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/outcome.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/reporting/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/reporting/console.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/reporting/html_report.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/reporting/json_report.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/reporting/report_template.html +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/runner.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/scoring.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/summary/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/summary/http_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/takeaway/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/takeaway/evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/takeaway/http_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/timing.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/core/workspace.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/_fake_langfuse.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/conftest.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/fixtures/catalog_metadata_calibration.json +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/fixtures/sample_dataset/metric_skill_create.json +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/fixtures/sample_dataset/visualization_revenue.json +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/fixtures/sse_visualization_stream.txt +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/fixtures/takeaway_calibration.json +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_agent_switcher.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_anomaly_detection.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_conversation.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_dashboard_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_dashboard_summary.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_document_editor_takeaways.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_document_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_failure_message.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_forecasting.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_gate.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_general_question.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_guardrail.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_join_trace.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_kda_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_langfuse_trace.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_metric_skill.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_metric_skill_options.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_observe_experiment.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_run_context.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_search_tool.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_search_tool_checks.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_visualization.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_agentic_what_if.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_alert_skill_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_catalog_metadata_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_catalog_metadata_evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_catalog_metadata_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_chat_render.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_connection.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_context_date_filter.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_deep_subset.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_eval_error_scores.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_fake_langfuse.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_from_insights.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_guardrail_criteria.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_html_report.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_interaction.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_e2e_fake_server.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_env.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_experiment.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_item_scope.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_observations.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_otlp.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_langfuse_sink.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_llm_judge.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_local_loader.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_maql_normalize.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_metric_skill_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_models.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_number_format.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_outcome.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_reporting.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_runner.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_scoring.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_search_tool_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_sse_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_summary_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_summary_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_takeaway_client.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_takeaway_evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_takeaway_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_text_evaluators.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_timing.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_visualization_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tests/test_workspace.py +0 -0
- {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/tox.ini +0 -0
|
@@ -64,7 +64,9 @@ its own shape. `test_kind` on the item is what labels the result, not the evalua
|
|
|
64
64
|
which is why `knowledge_question` can reuse `GeneralQuestionEvaluator` verbatim.
|
|
65
65
|
`dashboard_summary` items additionally need `summary_input`, `document_takeaway` items
|
|
66
66
|
`takeaway_input`, `catalog_metadata` items `catalog_input`, `agentic_agent_switcher` items
|
|
67
|
-
`agent_switcher_input`.
|
|
67
|
+
`agent_switcher_input`. `agentic_knowledge` items keep earlier user turns in
|
|
68
|
+
`expected_output.setup_turns` (`question` is the graded turn); their evaluator lives in
|
|
69
|
+
`core/evaluators/knowledge.py` but is agentic-only, so it is not in the single-shot registry.
|
|
68
70
|
|
|
69
71
|
## Running the pipeline
|
|
70
72
|
|
|
@@ -8,3 +8,7 @@ calibrate-takeaway:
|
|
|
8
8
|
.PHONY: calibrate-catalog-metadata
|
|
9
9
|
calibrate-catalog-metadata:
|
|
10
10
|
uv run --package gooddata-eval --extra llm-judge python scripts/calibrate_catalog_metadata_judge.py
|
|
11
|
+
|
|
12
|
+
.PHONY: calibrate-knowledge
|
|
13
|
+
calibrate-knowledge:
|
|
14
|
+
uv run --package gooddata-eval --extra llm-judge python scripts/calibrate_knowledge_judge.py
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: gooddata-eval
|
|
3
|
+
Version: 1.80.1.dev10
|
|
4
|
+
Summary: Evaluate the GoodData AI agent against your own questions and models.
|
|
5
|
+
Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
|
|
6
|
+
Author-email: GoodData <support@gooddata.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE.txt
|
|
9
|
+
Keywords: ai,analytics,cli,evaluation,gooddata,llm
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering
|
|
18
|
+
Classifier: Topic :: Software Development
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: gooddata-sdk~=1.80.1.dev10
|
|
22
|
+
Requires-Dist: httpx<1.0,>=0.27
|
|
23
|
+
Requires-Dist: jsonpatch<2.0,>=1.33
|
|
24
|
+
Requires-Dist: orjson<4.0.0,>=3.9.15
|
|
25
|
+
Requires-Dist: pydantic<3.0,>=2.6
|
|
26
|
+
Requires-Dist: rich<15.0,>=13.0
|
|
27
|
+
Provides-Extra: llm-judge
|
|
28
|
+
Requires-Dist: openai<2.0,>=1.45; extra == 'llm-judge'
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
1
31
|
# gooddata-eval
|
|
2
32
|
|
|
3
33
|
CLI to evaluate the GoodData AI agent against a dataset of natural-language
|
|
@@ -132,7 +162,7 @@ gd-eval run \
|
|
|
132
162
|
| `--runs K` | `2` | Independent runs per item. |
|
|
133
163
|
| `--gate` | `any` | Which verdict decides an item: `any` = pass@K (a run passing is enough), `power` = pass^K (every run must pass, so the verdict measures stability). Identical at `--runs 1`. Kinds that repeat K runs only — `power` is refused when the dataset also has non-agentic items or `agentic_conversation`, which are always decided on pass@K. |
|
|
134
164
|
| `--concurrency K` | `1` | Number of items evaluated concurrently. `1` = sequential (default). Increase to load-test the agent under simultaneous requests — see *Concurrency and workspace safety* below. |
|
|
135
|
-
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway` and `
|
|
165
|
+
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway`, `catalog_metadata` and `agentic_knowledge`. Also settable via `GD_EVAL_JUDGE_MODEL`. Two things to weigh before changing it: the gpt-5 family rejects `temperature=0`, so verdicts stop being reproducible (the run warns when this happens); and choosing the same model the agent runs means the judge grades its own family's output. |
|
|
136
166
|
| `--reasoning-effort LEVEL` | server default | `LOW`, `MEDIUM` or `HIGH`, sent as `options.reasoningEffort` on every chat message. Requires the `enableGenAiReasoningEffort` feature flag on the target organization — without it the server ignores the value. Applies to chat items only; `dashboard_summary`, `document_takeaway` and `catalog_metadata` items go through their own endpoints, which have no such option. |
|
|
137
167
|
|
|
138
168
|
**Concurrency and workspace safety.** Agentic kinds that create workspace objects
|
|
@@ -324,7 +354,7 @@ their eval kind, and states latency for each:
|
|
|
324
354
|
- **Multi-turn** — kinds that drive a simulated user or fixture turns: `agentic_visualization` (and
|
|
325
355
|
`vis_agentic`), `agentic_metric_skill`, `agentic_alert_skill`, `agentic_dashboard_skill`,
|
|
326
356
|
`agentic_document_skill`, `agentic_kda_skill`, `agentic_anomaly_detection`, `agentic_what_if`,
|
|
327
|
-
`agentic_agent_switcher` and `agentic_conversation`.
|
|
357
|
+
`agentic_agent_switcher`, `agentic_knowledge` and `agentic_conversation`.
|
|
328
358
|
|
|
329
359
|
```json
|
|
330
360
|
"summary": {
|
|
@@ -983,6 +1013,56 @@ first message when the new conversation is bound to another agent (`agent_bound`
|
|
|
983
1013
|
are reported as `turn<N>_<check>`, e.g. `turn2_skills_used`, `turn2_include_0`. The CI entry point
|
|
984
1014
|
is `evaluate_agentic_agent_switcher`, which takes the whole item; `--agent-id` does not apply.
|
|
985
1015
|
|
|
1016
|
+
### `agentic_knowledge` items
|
|
1017
|
+
|
|
1018
|
+
Knowledge items ask the AI chat questions it answers from knowledge documents (tools
|
|
1019
|
+
`search_knowledge` and `get_knowledge_chunks`). Each run is a fresh conversation that sends
|
|
1020
|
+
`expected_output.setup_turns` in order (no simulated user), then `question`, and grades the
|
|
1021
|
+
answer to `question`. `question` is the graded turn; `setup_turns` (a JSON array of non-empty
|
|
1022
|
+
strings, optional) holds the earlier user turns of a multi-turn item, as in `agentic_search`.
|
|
1023
|
+
In a Langfuse dataset, set `test_kind` (in
|
|
1024
|
+
`metadata` or `expectedOutput`) to route an item to this kind.
|
|
1025
|
+
|
|
1026
|
+
```json
|
|
1027
|
+
{
|
|
1028
|
+
"id": "kn-001",
|
|
1029
|
+
"dataset_name": "agent_knowledge",
|
|
1030
|
+
"test_kind": "agentic_knowledge",
|
|
1031
|
+
"question": "And for 45 %?",
|
|
1032
|
+
"expected_output": {
|
|
1033
|
+
"setup_turns": ["Who must approve a 30 % discount?"],
|
|
1034
|
+
"expected_documents": ["Discount Policy"],
|
|
1035
|
+
"forbidden_documents": ["Discount Policy 2023"],
|
|
1036
|
+
"expected_source": "the parent workspace",
|
|
1037
|
+
"must_include": ["Says that discounts above 40 % are not allowed."],
|
|
1038
|
+
"must_not_include": ["Says that the CFO must approve the discount."]
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
```
|
|
1042
|
+
|
|
1043
|
+
Every `expected_output` key is optional; unknown keys and wrong types are rejected before
|
|
1044
|
+
any request. Code checks over the knowledge tool results of all turns gate the verdict, so a
|
|
1045
|
+
failed item shows whether retrieval (document never found) or reasoning (found, answered
|
|
1046
|
+
wrong) failed:
|
|
1047
|
+
|
|
1048
|
+
- `expect_search` (default `true`) — at least one `search_knowledge` call (`knowledge_searched`).
|
|
1049
|
+
- `expected_documents` — each title is in some knowledge tool result (`expected_documents_found`).
|
|
1050
|
+
- `forbidden_documents` — no title is in any knowledge tool result (`forbidden_documents_absent`).
|
|
1051
|
+
- `expected_source` — an expected document's result carries this `source` label
|
|
1052
|
+
(`expected_source_found`); needs `expected_documents`. One of gen-ai's labels: `this
|
|
1053
|
+
workspace`, `the parent workspace`, `an ancestor workspace`, `AI Hub`.
|
|
1054
|
+
- `must_include`, `must_not_include`, `rubric` — judge criteria on the answer to `question`,
|
|
1055
|
+
graded like `dashboard_summary`; the judge reads the setup turns and their answers as INPUT.
|
|
1056
|
+
|
|
1057
|
+
Titles match case-insensitively on a result's `title` or `filename`. An answer to `question`
|
|
1058
|
+
without text fails (`answered`). Diagnostics that never gate: `documents_retrieved`,
|
|
1059
|
+
`sources_cited` (titles in the answer's trailing "Sources" list) and `turn_count`. Langfuse
|
|
1060
|
+
gets `knowledge_pass` plus each code check as its own score per run; `quality_score` counts the
|
|
1061
|
+
code checks and judge verdicts. A run the judge could not grade is an ERROR (`eval_error`), not
|
|
1062
|
+
a fail. The judge steps are calibrated with
|
|
1063
|
+
`make calibrate-knowledge` (needs `OPENAI_API_KEY`); the CI entry point is
|
|
1064
|
+
`evaluate_agentic_knowledge`.
|
|
1065
|
+
|
|
986
1066
|
### Items asked in a dashboard context (`user_context`)
|
|
987
1067
|
|
|
988
1068
|
An item can be asked the way a user asks from an open dashboard or an attached widget.
|
|
@@ -1085,6 +1165,7 @@ from that turn on until another turn changes it, as the attached context does in
|
|
|
1085
1165
|
| `document_takeaway` | One short takeaway for a page (via `/takeaway` endpoint): deterministic format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1086
1166
|
| `catalog_metadata` | Analytics Catalog title or description for one object (via the `analyticsCatalog/generate*` endpoints): format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1087
1167
|
| `agentic_agent_switcher` | One conversation switched between agents: each answer stamped with the active agent, one switch marker per switch, and per-turn judge, skill, alert and chart checks | `agent_switcher_input`; `[llm-judge]` for judge criteria |
|
|
1168
|
+
| `agentic_knowledge` | Answer from knowledge documents, after optional setup turns: retrieval checks on the knowledge tool results plus a rubric on the last answer scored by LLM | `[llm-judge]` |
|
|
1088
1169
|
|
|
1089
1170
|
## Optional extras
|
|
1090
1171
|
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: gooddata-eval
|
|
3
|
-
Version: 1.80.1.dev8
|
|
4
|
-
Summary: Evaluate the GoodData AI agent against your own questions and models.
|
|
5
|
-
Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
|
|
6
|
-
Author-email: GoodData <support@gooddata.com>
|
|
7
|
-
License-Expression: MIT
|
|
8
|
-
License-File: LICENSE.txt
|
|
9
|
-
Keywords: ai,analytics,cli,evaluation,gooddata,llm
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: Environment :: Console
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.15
|
|
17
|
-
Classifier: Topic :: Scientific/Engineering
|
|
18
|
-
Classifier: Topic :: Software Development
|
|
19
|
-
Classifier: Typing :: Typed
|
|
20
|
-
Requires-Python: >=3.11
|
|
21
|
-
Requires-Dist: gooddata-sdk~=1.80.1.dev8
|
|
22
|
-
Requires-Dist: httpx<1.0,>=0.27
|
|
23
|
-
Requires-Dist: jsonpatch<2.0,>=1.33
|
|
24
|
-
Requires-Dist: orjson<4.0.0,>=3.9.15
|
|
25
|
-
Requires-Dist: pydantic<3.0,>=2.6
|
|
26
|
-
Requires-Dist: rich<15.0,>=13.0
|
|
27
|
-
Provides-Extra: llm-judge
|
|
28
|
-
Requires-Dist: openai<2.0,>=1.45; extra == 'llm-judge'
|
|
29
|
-
Description-Content-Type: text/markdown
|
|
30
|
-
|
|
31
1
|
# gooddata-eval
|
|
32
2
|
|
|
33
3
|
CLI to evaluate the GoodData AI agent against a dataset of natural-language
|
|
@@ -162,7 +132,7 @@ gd-eval run \
|
|
|
162
132
|
| `--runs K` | `2` | Independent runs per item. |
|
|
163
133
|
| `--gate` | `any` | Which verdict decides an item: `any` = pass@K (a run passing is enough), `power` = pass^K (every run must pass, so the verdict measures stability). Identical at `--runs 1`. Kinds that repeat K runs only — `power` is refused when the dataset also has non-agentic items or `agentic_conversation`, which are always decided on pass@K. |
|
|
164
134
|
| `--concurrency K` | `1` | Number of items evaluated concurrently. `1` = sequential (default). Increase to load-test the agent under simultaneous requests — see *Concurrency and workspace safety* below. |
|
|
165
|
-
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway` and `
|
|
135
|
+
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway`, `catalog_metadata` and `agentic_knowledge`. Also settable via `GD_EVAL_JUDGE_MODEL`. Two things to weigh before changing it: the gpt-5 family rejects `temperature=0`, so verdicts stop being reproducible (the run warns when this happens); and choosing the same model the agent runs means the judge grades its own family's output. |
|
|
166
136
|
| `--reasoning-effort LEVEL` | server default | `LOW`, `MEDIUM` or `HIGH`, sent as `options.reasoningEffort` on every chat message. Requires the `enableGenAiReasoningEffort` feature flag on the target organization — without it the server ignores the value. Applies to chat items only; `dashboard_summary`, `document_takeaway` and `catalog_metadata` items go through their own endpoints, which have no such option. |
|
|
167
137
|
|
|
168
138
|
**Concurrency and workspace safety.** Agentic kinds that create workspace objects
|
|
@@ -354,7 +324,7 @@ their eval kind, and states latency for each:
|
|
|
354
324
|
- **Multi-turn** — kinds that drive a simulated user or fixture turns: `agentic_visualization` (and
|
|
355
325
|
`vis_agentic`), `agentic_metric_skill`, `agentic_alert_skill`, `agentic_dashboard_skill`,
|
|
356
326
|
`agentic_document_skill`, `agentic_kda_skill`, `agentic_anomaly_detection`, `agentic_what_if`,
|
|
357
|
-
`agentic_agent_switcher` and `agentic_conversation`.
|
|
327
|
+
`agentic_agent_switcher`, `agentic_knowledge` and `agentic_conversation`.
|
|
358
328
|
|
|
359
329
|
```json
|
|
360
330
|
"summary": {
|
|
@@ -1013,6 +983,56 @@ first message when the new conversation is bound to another agent (`agent_bound`
|
|
|
1013
983
|
are reported as `turn<N>_<check>`, e.g. `turn2_skills_used`, `turn2_include_0`. The CI entry point
|
|
1014
984
|
is `evaluate_agentic_agent_switcher`, which takes the whole item; `--agent-id` does not apply.
|
|
1015
985
|
|
|
986
|
+
### `agentic_knowledge` items
|
|
987
|
+
|
|
988
|
+
Knowledge items ask the AI chat questions it answers from knowledge documents (tools
|
|
989
|
+
`search_knowledge` and `get_knowledge_chunks`). Each run is a fresh conversation that sends
|
|
990
|
+
`expected_output.setup_turns` in order (no simulated user), then `question`, and grades the
|
|
991
|
+
answer to `question`. `question` is the graded turn; `setup_turns` (a JSON array of non-empty
|
|
992
|
+
strings, optional) holds the earlier user turns of a multi-turn item, as in `agentic_search`.
|
|
993
|
+
In a Langfuse dataset, set `test_kind` (in
|
|
994
|
+
`metadata` or `expectedOutput`) to route an item to this kind.
|
|
995
|
+
|
|
996
|
+
```json
|
|
997
|
+
{
|
|
998
|
+
"id": "kn-001",
|
|
999
|
+
"dataset_name": "agent_knowledge",
|
|
1000
|
+
"test_kind": "agentic_knowledge",
|
|
1001
|
+
"question": "And for 45 %?",
|
|
1002
|
+
"expected_output": {
|
|
1003
|
+
"setup_turns": ["Who must approve a 30 % discount?"],
|
|
1004
|
+
"expected_documents": ["Discount Policy"],
|
|
1005
|
+
"forbidden_documents": ["Discount Policy 2023"],
|
|
1006
|
+
"expected_source": "the parent workspace",
|
|
1007
|
+
"must_include": ["Says that discounts above 40 % are not allowed."],
|
|
1008
|
+
"must_not_include": ["Says that the CFO must approve the discount."]
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
```
|
|
1012
|
+
|
|
1013
|
+
Every `expected_output` key is optional; unknown keys and wrong types are rejected before
|
|
1014
|
+
any request. Code checks over the knowledge tool results of all turns gate the verdict, so a
|
|
1015
|
+
failed item shows whether retrieval (document never found) or reasoning (found, answered
|
|
1016
|
+
wrong) failed:
|
|
1017
|
+
|
|
1018
|
+
- `expect_search` (default `true`) — at least one `search_knowledge` call (`knowledge_searched`).
|
|
1019
|
+
- `expected_documents` — each title is in some knowledge tool result (`expected_documents_found`).
|
|
1020
|
+
- `forbidden_documents` — no title is in any knowledge tool result (`forbidden_documents_absent`).
|
|
1021
|
+
- `expected_source` — an expected document's result carries this `source` label
|
|
1022
|
+
(`expected_source_found`); needs `expected_documents`. One of gen-ai's labels: `this
|
|
1023
|
+
workspace`, `the parent workspace`, `an ancestor workspace`, `AI Hub`.
|
|
1024
|
+
- `must_include`, `must_not_include`, `rubric` — judge criteria on the answer to `question`,
|
|
1025
|
+
graded like `dashboard_summary`; the judge reads the setup turns and their answers as INPUT.
|
|
1026
|
+
|
|
1027
|
+
Titles match case-insensitively on a result's `title` or `filename`. An answer to `question`
|
|
1028
|
+
without text fails (`answered`). Diagnostics that never gate: `documents_retrieved`,
|
|
1029
|
+
`sources_cited` (titles in the answer's trailing "Sources" list) and `turn_count`. Langfuse
|
|
1030
|
+
gets `knowledge_pass` plus each code check as its own score per run; `quality_score` counts the
|
|
1031
|
+
code checks and judge verdicts. A run the judge could not grade is an ERROR (`eval_error`), not
|
|
1032
|
+
a fail. The judge steps are calibrated with
|
|
1033
|
+
`make calibrate-knowledge` (needs `OPENAI_API_KEY`); the CI entry point is
|
|
1034
|
+
`evaluate_agentic_knowledge`.
|
|
1035
|
+
|
|
1016
1036
|
### Items asked in a dashboard context (`user_context`)
|
|
1017
1037
|
|
|
1018
1038
|
An item can be asked the way a user asks from an open dashboard or an attached widget.
|
|
@@ -1115,6 +1135,7 @@ from that turn on until another turn changes it, as the attached context does in
|
|
|
1115
1135
|
| `document_takeaway` | One short takeaway for a page (via `/takeaway` endpoint): deterministic format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1116
1136
|
| `catalog_metadata` | Analytics Catalog title or description for one object (via the `analyticsCatalog/generate*` endpoints): format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1117
1137
|
| `agentic_agent_switcher` | One conversation switched between agents: each answer stamped with the active agent, one switch marker per switch, and per-turn judge, skill, alert and chart checks | `agent_switcher_input`; `[llm-judge]` for judge criteria |
|
|
1138
|
+
| `agentic_knowledge` | Answer from knowledge documents, after optional setup turns: retrieval checks on the knowledge tool results plus a rubric on the last answer scored by LLM | `[llm-judge]` |
|
|
1118
1139
|
|
|
1119
1140
|
## Optional extras
|
|
1120
1141
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# (C) 2026 GoodData Corporation
|
|
2
2
|
[project]
|
|
3
3
|
name = "gooddata-eval"
|
|
4
|
-
version = "1.80.1.
|
|
4
|
+
version = "1.80.1.dev10"
|
|
5
5
|
description = "Evaluate the GoodData AI agent against your own questions and models."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
license = "MIT"
|
|
@@ -11,7 +11,7 @@ authors = [
|
|
|
11
11
|
keywords = ["gooddata", "ai", "evaluation", "llm", "analytics", "cli"]
|
|
12
12
|
requires-python = ">=3.11"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"gooddata-sdk~=1.80.1.
|
|
14
|
+
"gooddata-sdk~=1.80.1.dev10",
|
|
15
15
|
"httpx>=0.27,<1.0",
|
|
16
16
|
"jsonpatch>=1.33,<2.0",
|
|
17
17
|
"orjson>=3.9.15,<4.0.0",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# (C) 2026 GoodData Corporation
|
|
2
|
+
"""Does the real judge grade agentic_knowledge criteria on the right side?
|
|
3
|
+
|
|
4
|
+
tests/test_knowledge_evaluator.py pins the wiring, not the verdict. This pins the verdict,
|
|
5
|
+
against tests/fixtures/knowledge_calibration.json: each case is one question, one criterion
|
|
6
|
+
and one real answer, and the criterion must be satisfied ("pass") or not ("fail") on every run.
|
|
7
|
+
|
|
8
|
+
Run it after changing the judge steps in core/evaluators/knowledge.py:
|
|
9
|
+
|
|
10
|
+
OPENAI_API_KEY=... make calibrate-knowledge
|
|
11
|
+
|
|
12
|
+
A script, not a test: CI has no OPENAI_API_KEY. Exits 1 on any mismatch.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import json
|
|
16
|
+
import os
|
|
17
|
+
import sys
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
from gooddata_eval.core.evaluators.knowledge import AgenticKnowledgeEvaluator
|
|
21
|
+
from gooddata_eval.core.models import ChatResult, DatasetItem
|
|
22
|
+
|
|
23
|
+
RUNS = 3
|
|
24
|
+
FIXTURE = Path(__file__).resolve().parent.parent / "tests" / "fixtures" / "knowledge_calibration.json"
|
|
25
|
+
_FIELDS = {"include": "must_include", "exclude": "must_not_include"}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def main() -> int:
|
|
29
|
+
if not os.environ.get("OPENAI_API_KEY"):
|
|
30
|
+
raise SystemExit("OPENAI_API_KEY required")
|
|
31
|
+
cases = json.loads(FIXTURE.read_text(encoding="utf-8"))
|
|
32
|
+
evaluator = AgenticKnowledgeEvaluator()
|
|
33
|
+
print(f"judge model: {evaluator._positive_judge.model}, runs: {RUNS}")
|
|
34
|
+
mismatches = 0
|
|
35
|
+
for case in cases:
|
|
36
|
+
item = DatasetItem(
|
|
37
|
+
id=case["label"],
|
|
38
|
+
dataset_name="knowledge_calibration",
|
|
39
|
+
test_kind="agentic_knowledge",
|
|
40
|
+
question=case["question"],
|
|
41
|
+
# No tool calls here: only the judge is calibrated.
|
|
42
|
+
expected_output={_FIELDS[case["kind"]]: [case["criterion"]], "expect_search": False},
|
|
43
|
+
)
|
|
44
|
+
chat = ChatResult(text_response=case["text"])
|
|
45
|
+
key = f"{case['kind']}_0"
|
|
46
|
+
verdicts = [evaluator.evaluate(item, [chat]).detail.get(key) for _ in range(RUNS)]
|
|
47
|
+
ungraded = sum(not isinstance(v, bool) for v in verdicts)
|
|
48
|
+
satisfied = sum(v is True for v in verdicts)
|
|
49
|
+
want = RUNS if case["want"] == "pass" else 0
|
|
50
|
+
# An ungraded run proves nothing, on either side.
|
|
51
|
+
ok = satisfied == want and not ungraded
|
|
52
|
+
mismatches += not ok
|
|
53
|
+
print(
|
|
54
|
+
f"{case['label'][:44]:44} {case['kind']:7} want {case['want']:4} satisfied {satisfied}/{RUNS}"
|
|
55
|
+
f"{f' ungraded {ungraded}' if ungraded else ''} {'OK' if ok else 'MISMATCH'}"
|
|
56
|
+
)
|
|
57
|
+
print(f"\n{'all calibration answers on the right side' if not mismatches else f'{mismatches} mismatch(es)'}")
|
|
58
|
+
return 1 if mismatches else 0
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
if __name__ == "__main__":
|
|
62
|
+
sys.exit(main())
|
{gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev10}/src/gooddata_eval/cli/agentic_runner.py
RENAMED
|
@@ -24,6 +24,7 @@ from gooddata_eval.core.agentic.forecasting import evaluate_agentic_forecasting
|
|
|
24
24
|
from gooddata_eval.core.agentic.general_question import evaluate_agentic_general_question
|
|
25
25
|
from gooddata_eval.core.agentic.guardrail import evaluate_agentic_guardrail
|
|
26
26
|
from gooddata_eval.core.agentic.kda_skill import evaluate_agentic_kda_skill
|
|
27
|
+
from gooddata_eval.core.agentic.knowledge import evaluate_agentic_knowledge
|
|
27
28
|
from gooddata_eval.core.agentic.metric_skill import evaluate_agentic_metric_skill
|
|
28
29
|
from gooddata_eval.core.agentic.search_tool import evaluate_agentic_search_tool
|
|
29
30
|
from gooddata_eval.core.agentic.visualization import evaluate_agentic_visualization
|
|
@@ -65,6 +66,7 @@ AGENTIC_TEST_KINDS = frozenset(
|
|
|
65
66
|
"agentic_anomaly_detection",
|
|
66
67
|
"agentic_what_if",
|
|
67
68
|
"agentic_agent_switcher",
|
|
69
|
+
"agentic_knowledge",
|
|
68
70
|
}
|
|
69
71
|
)
|
|
70
72
|
|
|
@@ -398,6 +400,19 @@ def _dispatch_agentic(
|
|
|
398
400
|
gate=gate,
|
|
399
401
|
**lf_kw,
|
|
400
402
|
)
|
|
403
|
+
elif kind == "agentic_knowledge":
|
|
404
|
+
return evaluate_agentic_knowledge(
|
|
405
|
+
host=host,
|
|
406
|
+
token=token,
|
|
407
|
+
workspace_id=workspace_id,
|
|
408
|
+
question=item.question,
|
|
409
|
+
expected_output=eo,
|
|
410
|
+
k=k,
|
|
411
|
+
gate=gate,
|
|
412
|
+
agent_id=agent_id,
|
|
413
|
+
user_context=item.user_context,
|
|
414
|
+
**lf_kw,
|
|
415
|
+
)
|
|
401
416
|
elif kind == "agentic_conversation":
|
|
402
417
|
fixture_data = eo.get("fixture") or eo if isinstance(eo, dict) else {}
|
|
403
418
|
return evaluate_agentic_conversation(
|
|
@@ -919,20 +919,70 @@ def _normalize_expected_output(expected: dict) -> CatalogMetricAlert:
|
|
|
919
919
|
)
|
|
920
920
|
|
|
921
921
|
|
|
922
|
-
def
|
|
923
|
-
"""
|
|
922
|
+
def _alert_call_failed(result: dict | None) -> bool:
|
|
923
|
+
"""Whether a ``create_metric_alert`` result reports an error, so the call created nothing.
|
|
924
|
+
|
|
925
|
+
An MCP error carries ``isError``. gen-ai's tool registry reports rejected arguments and a
|
|
926
|
+
failed execution as ``{"success": false, "error": ...}`` instead, with no ``isError``.
|
|
927
|
+
"""
|
|
928
|
+
if not isinstance(result, dict):
|
|
929
|
+
return False
|
|
930
|
+
data = result.get("data")
|
|
931
|
+
payloads = [result, data] if isinstance(data, dict) else [result]
|
|
932
|
+
return any(p.get("isError") or p.get("success") is False for p in payloads)
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
def _created_alert_id(result: dict | None) -> str | None:
|
|
936
|
+
"""Server-assigned id of the automation a call created: it lives in the result, not the arguments."""
|
|
937
|
+
if not isinstance(result, dict):
|
|
938
|
+
return None
|
|
939
|
+
data = result.get("data")
|
|
940
|
+
alert_id = result.get("id") or (data.get("id") if isinstance(data, dict) else None)
|
|
941
|
+
return alert_id if isinstance(alert_id, str) and alert_id else None
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
@dataclass
|
|
945
|
+
class _AlertCalls:
|
|
946
|
+
"""Every ``create_metric_alert`` call of a turn, read for scoring and for cleanup."""
|
|
947
|
+
|
|
948
|
+
called: bool = False
|
|
949
|
+
"""The agent called the tool at least once."""
|
|
950
|
+
created: bool = False
|
|
951
|
+
"""At least one call did not report an error."""
|
|
952
|
+
created_ids: list[str] = field(default_factory=list)
|
|
953
|
+
"""Ids of every alert the calls created; each one is deleted after the run."""
|
|
954
|
+
args: dict = field(default_factory=dict)
|
|
955
|
+
"""Arguments of the first call that did not fail, else of the last call."""
|
|
956
|
+
alert_id: str | None = None
|
|
957
|
+
"""Id of the alert the call in ``args`` created, None when that call failed or its result has no id."""
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
def _extract_alert_calls(tool_call_events: list[ToolCallEvent]) -> _AlertCalls:
|
|
961
|
+
"""Read every ``create_metric_alert`` call, not only the first.
|
|
962
|
+
|
|
963
|
+
The agent may retry after an error. Reading only the first call scored the arguments of a
|
|
964
|
+
call that failed and missed the id of the retry that succeeded, so that alert leaked into
|
|
965
|
+
the workspace (QA-29886). The run is scored on the first call that did not fail, which is
|
|
966
|
+
the first call whenever none failed, as before.
|
|
967
|
+
"""
|
|
968
|
+
calls = _AlertCalls()
|
|
924
969
|
for tc in tool_call_events:
|
|
925
|
-
if tc.function_name
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
970
|
+
if tc.function_name != "create_metric_alert":
|
|
971
|
+
continue
|
|
972
|
+
calls.called = True
|
|
973
|
+
args = tc.parsed_arguments() or {}
|
|
974
|
+
result = tc.parsed_result()
|
|
975
|
+
if _alert_call_failed(result):
|
|
976
|
+
if not calls.created:
|
|
977
|
+
calls.args = args
|
|
978
|
+
continue
|
|
979
|
+
alert_id = _created_alert_id(result)
|
|
980
|
+
if alert_id is not None:
|
|
981
|
+
calls.created_ids.append(alert_id)
|
|
982
|
+
if not calls.created:
|
|
983
|
+
calls.created = True
|
|
984
|
+
calls.args, calls.alert_id = args, alert_id
|
|
985
|
+
return calls
|
|
936
986
|
|
|
937
987
|
|
|
938
988
|
def render_alert_proposal(proposal: dict) -> str:
|
|
@@ -940,16 +990,20 @@ def render_alert_proposal(proposal: dict) -> str:
|
|
|
940
990
|
|
|
941
991
|
The alert skill's confirmation step deliberately emits no text part (GDAI-2032) — the
|
|
942
992
|
prompt and the CTA live only in the proposal payload, which the frontend renders as a
|
|
943
|
-
widget. Dumping the payload (rather than prose) keeps recipients, condition, trigger
|
|
944
|
-
dashboard visible so the simulated user can still verify them against its
|
|
945
|
-
not need updating whenever ``AlertProposal`` grows a field.
|
|
993
|
+
widget. Dumping the payload (rather than prose) keeps recipients, condition, trigger,
|
|
994
|
+
filters and dashboard visible so the simulated user can still verify them against its
|
|
995
|
+
goal, and does not need updating whenever ``AlertProposal`` grows a field.
|
|
946
996
|
"""
|
|
947
997
|
cta = proposal.get("cta") or "Should I create this alert?"
|
|
948
998
|
summary = {k: v for k, v in proposal.items() if k != "cta"}
|
|
949
999
|
alert = dict(summary.get("alert") or {})
|
|
950
|
-
#
|
|
951
|
-
#
|
|
952
|
-
|
|
1000
|
+
# `execution` is the only place a proposal carries its filters, which rule 3 of the simulated
|
|
1001
|
+
# user checks. Hoisting them keeps them visible (QA-29886). The rest stays out: the measures
|
|
1002
|
+
# repeat `condition`, and the simulated user is told nothing about group-bys, so a date
|
|
1003
|
+
# group-by would only read as a time window rule 5 tells it to refuse.
|
|
1004
|
+
execution = alert.pop("execution", None)
|
|
1005
|
+
if isinstance(execution, dict):
|
|
1006
|
+
alert["filters"] = execution.get("filters") or []
|
|
953
1007
|
if "alert" in summary:
|
|
954
1008
|
# Key off presence, not truthiness: an alert whose only key was `execution` must
|
|
955
1009
|
# still be replaced, otherwise the original (execution-bearing) dict survives.
|
|
@@ -1002,12 +1056,12 @@ def run_agentic_alert_skill(
|
|
|
1002
1056
|
sdk = GoodDataSdk.create(host, token)
|
|
1003
1057
|
|
|
1004
1058
|
def _run_once(conv_id: str) -> AlertRunResult:
|
|
1005
|
-
|
|
1059
|
+
alert_ids_to_delete: list[str] = []
|
|
1006
1060
|
run_started = time.monotonic()
|
|
1007
1061
|
try:
|
|
1008
1062
|
alert_id: str | None = None
|
|
1009
1063
|
actual_args: dict = {}
|
|
1010
|
-
|
|
1064
|
+
alert_created = False
|
|
1011
1065
|
reasoning_steps: list[str] = []
|
|
1012
1066
|
response_id: str | None = None
|
|
1013
1067
|
all_tool_call_events: list[ToolCallEvent] = []
|
|
@@ -1036,7 +1090,7 @@ def run_agentic_alert_skill(
|
|
|
1036
1090
|
# discarding every K-run already completed along with any exit_reason.
|
|
1037
1091
|
print(f"[CHAT] send_message failed for conversation {conv_id}: {exc}")
|
|
1038
1092
|
# The stream can break AFTER create_metric_alert already succeeded
|
|
1039
|
-
# server-side. That id only ever reached
|
|
1093
|
+
# server-side. That id only ever reached alert_ids_to_delete from the
|
|
1040
1094
|
# normal path below, so breaking here left the alert in the workspace for
|
|
1041
1095
|
# the `finally` cleanup to miss -- a real object leaking out of a failed
|
|
1042
1096
|
# run, not a reporting gap.
|
|
@@ -1044,9 +1098,7 @@ def run_agentic_alert_skill(
|
|
|
1044
1098
|
if partial is not None:
|
|
1045
1099
|
reasoning_steps.extend(partial.reasoning_steps or [])
|
|
1046
1100
|
response_id = partial.response_id or response_id
|
|
1047
|
-
|
|
1048
|
-
if partial_tool_called:
|
|
1049
|
-
alert_id_to_delete = partial_alert_id
|
|
1101
|
+
alert_ids_to_delete.extend(_extract_alert_calls(partial.tool_call_events or []).created_ids)
|
|
1050
1102
|
exit_reason = chat_failure_exit(exc)
|
|
1051
1103
|
break
|
|
1052
1104
|
# `turns_used` counts attempts (set above, so a failed send still shows the
|
|
@@ -1064,14 +1116,24 @@ def run_agentic_alert_skill(
|
|
|
1064
1116
|
)
|
|
1065
1117
|
all_tool_call_events.extend(chat_result.tool_call_events or [])
|
|
1066
1118
|
all_reasoning_step_events.extend(chat_result.reasoning_step_events or [])
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1119
|
+
calls = _extract_alert_calls(chat_result.tool_call_events or [])
|
|
1120
|
+
alert_ids_to_delete.extend(calls.created_ids)
|
|
1121
|
+
if calls.created:
|
|
1122
|
+
alert_id, actual_args = calls.alert_id, calls.args
|
|
1123
|
+
alert_created = True
|
|
1070
1124
|
exit_reason = LoopExit.SUCCESS
|
|
1071
1125
|
break
|
|
1126
|
+
if calls.called:
|
|
1127
|
+
# Every call reported an error, so nothing was created. Scoring their arguments
|
|
1128
|
+
# would pass a run whose creation failed, and ending here would label it a
|
|
1129
|
+
# success. The agent gets the next turn to recover, as with a user, and the
|
|
1130
|
+
# failed arguments are kept for triage.
|
|
1131
|
+
actual_args = calls.args
|
|
1072
1132
|
response_text = render_turn_for_simulated_user(chat_result)
|
|
1073
|
-
# Stop if agent gave a completely empty response (stuck)
|
|
1074
|
-
|
|
1133
|
+
# Stop if the agent gave a completely empty response (stuck), or wrote nothing after
|
|
1134
|
+
# every create call failed: the rendered turn holds no tool results, so the simulated
|
|
1135
|
+
# user would be asked to answer an empty message.
|
|
1136
|
+
if not response_text and (calls.called or not chat_result.tool_call_events):
|
|
1075
1137
|
exit_reason = LoopExit.AGENT_SILENT
|
|
1076
1138
|
break
|
|
1077
1139
|
# Stop before generating a follow-up for the last iteration
|
|
@@ -1100,23 +1162,23 @@ def run_agentic_alert_skill(
|
|
|
1100
1162
|
current_question = follow_up
|
|
1101
1163
|
|
|
1102
1164
|
ev = AlertEvaluation(
|
|
1103
|
-
alert_created=
|
|
1104
|
-
operator_correct=
|
|
1105
|
-
threshold_correct=
|
|
1106
|
-
trigger_correct=
|
|
1107
|
-
filters_correct=
|
|
1108
|
-
metric_correct=
|
|
1109
|
-
recipients_correct=
|
|
1165
|
+
alert_created=alert_created,
|
|
1166
|
+
operator_correct=alert_created and expected.operator == actual_args.get("operator"),
|
|
1167
|
+
threshold_correct=alert_created and _check_threshold(expected, actual_args),
|
|
1168
|
+
trigger_correct=alert_created and _check_trigger(expected, actual_args),
|
|
1169
|
+
filters_correct=alert_created and _check_filters(expected, actual_args),
|
|
1170
|
+
metric_correct=alert_created and _check_metric(expected, actual_args),
|
|
1171
|
+
recipients_correct=alert_created
|
|
1110
1172
|
and _check_recipients(expected, actual_args, sdk=sdk, current_user_id=current_user_id),
|
|
1111
|
-
attributes_correct=
|
|
1112
|
-
granularity_correct=
|
|
1173
|
+
attributes_correct=alert_created and _check_attributes(expected, actual_args),
|
|
1174
|
+
granularity_correct=alert_created and _check_granularity(expected, actual_args),
|
|
1113
1175
|
comparison_correct=None
|
|
1114
1176
|
if expected.comparison is None
|
|
1115
|
-
else
|
|
1116
|
-
title_correct=None if expected.title is None else
|
|
1177
|
+
else alert_created and _check_comparison(expected, actual_args),
|
|
1178
|
+
title_correct=None if expected.title is None else alert_created and _check_title(expected, actual_args),
|
|
1117
1179
|
dashboard_correct=None
|
|
1118
1180
|
if expected.dashboard_id is None
|
|
1119
|
-
else
|
|
1181
|
+
else alert_created and _check_dashboard(expected, actual_args),
|
|
1120
1182
|
)
|
|
1121
1183
|
return AlertRunResult(
|
|
1122
1184
|
conversation_id=conv_id,
|
|
@@ -1134,8 +1196,8 @@ def run_agentic_alert_skill(
|
|
|
1134
1196
|
run_latency_s=time.monotonic() - run_started,
|
|
1135
1197
|
)
|
|
1136
1198
|
finally:
|
|
1137
|
-
|
|
1138
|
-
_delete_alert(sdk, workspace_id,
|
|
1199
|
+
for created_id in dict.fromkeys(alert_ids_to_delete):
|
|
1200
|
+
_delete_alert(sdk, workspace_id, created_id)
|
|
1139
1201
|
|
|
1140
1202
|
try:
|
|
1141
1203
|
conv_id_0 = initial_conversation_id if initial_conversation_id is not None else client.create_conversation()
|