gooddata-eval 1.80.1.dev8__tar.gz → 1.80.1.dev9__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.
Files changed (192) hide show
  1. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/AGENTS.md +3 -1
  2. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/Makefile +4 -0
  3. gooddata_eval-1.80.1.dev8/README.md → gooddata_eval-1.80.1.dev9/PKG-INFO +83 -2
  4. gooddata_eval-1.80.1.dev8/PKG-INFO → gooddata_eval-1.80.1.dev9/README.md +53 -32
  5. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/pyproject.toml +2 -2
  6. gooddata_eval-1.80.1.dev9/scripts/calibrate_knowledge_judge.py +62 -0
  7. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/agentic_runner.py +15 -0
  8. gooddata_eval-1.80.1.dev9/src/gooddata_eval/core/agentic/knowledge.py +449 -0
  9. gooddata_eval-1.80.1.dev9/src/gooddata_eval/core/evaluators/knowledge.py +246 -0
  10. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/interaction.py +1 -0
  11. gooddata_eval-1.80.1.dev9/tests/fixtures/knowledge_calibration.json +98 -0
  12. gooddata_eval-1.80.1.dev9/tests/test_agentic_knowledge.py +330 -0
  13. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_runner.py +30 -0
  14. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_cli.py +47 -0
  15. gooddata_eval-1.80.1.dev9/tests/test_knowledge_evaluator.py +407 -0
  16. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_source.py +15 -0
  17. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_trace_linker.py +1 -0
  18. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/.gitignore +0 -0
  19. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/CLAUDE.md +0 -0
  20. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/LICENSE.txt +0 -0
  21. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/scripts/calibrate_catalog_metadata_judge.py +0 -0
  22. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/scripts/calibrate_takeaway_judge.py +0 -0
  23. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/scripts/verify_guardrail_refusal_criteria.py +0 -0
  24. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/__init__.py +0 -0
  25. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/_version.py +0 -0
  26. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/__init__.py +0 -0
  27. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/main.py +0 -0
  28. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/__init__.py +0 -0
  29. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/_output.py +0 -0
  30. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/_retry.py +0 -0
  31. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/__init__.py +0 -0
  32. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_catalog.py +0 -0
  33. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_clarification.py +0 -0
  34. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_conversation_context.py +0 -0
  35. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_editor_takeaways.py +0 -0
  36. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_failed_runs.py +0 -0
  37. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_failure_message.py +0 -0
  38. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_filters.py +0 -0
  39. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_gate.py +0 -0
  40. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_langfuse.py +0 -0
  41. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_metric_expectation.py +0 -0
  42. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_metric_workspace.py +0 -0
  43. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_outcome.py +0 -0
  44. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_search_expectation.py +0 -0
  45. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_trace_linker.py +0 -0
  46. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/agent_switcher.py +0 -0
  47. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/alert_skill.py +0 -0
  48. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/anomaly_detection.py +0 -0
  49. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/conversation.py +0 -0
  50. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/dashboard_skill.py +0 -0
  51. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/dashboard_summary.py +0 -0
  52. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/document_skill.py +0 -0
  53. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/forecasting.py +0 -0
  54. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/general_question.py +0 -0
  55. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/guardrail.py +0 -0
  56. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/kda_skill.py +0 -0
  57. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/metric_skill.py +0 -0
  58. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/report_skill.py +0 -0
  59. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/search_tool.py +0 -0
  60. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/visualization.py +0 -0
  61. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/what_if.py +0 -0
  62. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/catalog/__init__.py +0 -0
  63. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/catalog/evaluate.py +0 -0
  64. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/catalog/http_client.py +0 -0
  65. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/chat/__init__.py +0 -0
  66. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/chat/render.py +0 -0
  67. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/chat/sse_client.py +0 -0
  68. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/config.py +0 -0
  69. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/connection.py +0 -0
  70. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/__init__.py +0 -0
  71. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/from_insights.py +0 -0
  72. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/langfuse_source.py +0 -0
  73. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/local.py +0 -0
  74. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/__init__.py +0 -0
  75. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_deep_subset.py +0 -0
  76. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_guardrail_criteria.py +0 -0
  77. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_llm_judge.py +0 -0
  78. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_maql.py +0 -0
  79. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_rubric.py +0 -0
  80. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_text_utils.py +0 -0
  81. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/alert_skill.py +0 -0
  82. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/base.py +0 -0
  83. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/catalog_metadata.py +0 -0
  84. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/general_question.py +0 -0
  85. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/guardrail.py +0 -0
  86. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/metric_skill.py +0 -0
  87. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/search_tool.py +0 -0
  88. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/summary.py +0 -0
  89. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/takeaway.py +0 -0
  90. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/visualization.py +0 -0
  91. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/granularity.py +0 -0
  92. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/__init__.py +0 -0
  93. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/_env.py +0 -0
  94. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/client.py +0 -0
  95. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/experiment.py +0 -0
  96. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/item_scope.py +0 -0
  97. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/observations.py +0 -0
  98. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/otlp.py +0 -0
  99. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/sink.py +0 -0
  100. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/models.py +0 -0
  101. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/number_format.py +0 -0
  102. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/outcome.py +0 -0
  103. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/__init__.py +0 -0
  104. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/console.py +0 -0
  105. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/html_report.py +0 -0
  106. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/json_report.py +0 -0
  107. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/report_template.html +0 -0
  108. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/runner.py +0 -0
  109. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/scoring.py +0 -0
  110. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/summary/__init__.py +0 -0
  111. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/summary/http_client.py +0 -0
  112. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/takeaway/__init__.py +0 -0
  113. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/takeaway/evaluate.py +0 -0
  114. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/takeaway/http_client.py +0 -0
  115. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/timing.py +0 -0
  116. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/workspace.py +0 -0
  117. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/__init__.py +0 -0
  118. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/_fake_langfuse.py +0 -0
  119. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/conftest.py +0 -0
  120. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/fixtures/catalog_metadata_calibration.json +0 -0
  121. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/fixtures/sample_dataset/metric_skill_create.json +0 -0
  122. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/fixtures/sample_dataset/visualization_revenue.json +0 -0
  123. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/fixtures/sse_visualization_stream.txt +0 -0
  124. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/fixtures/takeaway_calibration.json +0 -0
  125. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_agent_switcher.py +0 -0
  126. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_alert_skill.py +0 -0
  127. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_anomaly_detection.py +0 -0
  128. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_conversation.py +0 -0
  129. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_dashboard_skill.py +0 -0
  130. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_dashboard_summary.py +0 -0
  131. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_document_editor_takeaways.py +0 -0
  132. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_document_skill.py +0 -0
  133. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_failure_message.py +0 -0
  134. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_forecasting.py +0 -0
  135. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_gate.py +0 -0
  136. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_general_question.py +0 -0
  137. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_guardrail.py +0 -0
  138. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_join_trace.py +0 -0
  139. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_kda_skill.py +0 -0
  140. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_langfuse_trace.py +0 -0
  141. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_metric_skill.py +0 -0
  142. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_metric_skill_options.py +0 -0
  143. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_observe_experiment.py +0 -0
  144. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_run_context.py +0 -0
  145. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_search_tool.py +0 -0
  146. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_search_tool_checks.py +0 -0
  147. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_visualization.py +0 -0
  148. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_what_if.py +0 -0
  149. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_alert_skill_evaluator.py +0 -0
  150. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_catalog_metadata_client.py +0 -0
  151. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_catalog_metadata_evaluate.py +0 -0
  152. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_catalog_metadata_evaluator.py +0 -0
  153. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_chat_render.py +0 -0
  154. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_connection.py +0 -0
  155. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_context_date_filter.py +0 -0
  156. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_deep_subset.py +0 -0
  157. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_eval_error_scores.py +0 -0
  158. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_fake_langfuse.py +0 -0
  159. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_from_insights.py +0 -0
  160. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_guardrail_criteria.py +0 -0
  161. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_html_report.py +0 -0
  162. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_interaction.py +0 -0
  163. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_client.py +0 -0
  164. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_e2e_fake_server.py +0 -0
  165. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_env.py +0 -0
  166. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_experiment.py +0 -0
  167. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_item_scope.py +0 -0
  168. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_observations.py +0 -0
  169. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_otlp.py +0 -0
  170. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_sink.py +0 -0
  171. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_llm_judge.py +0 -0
  172. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_local_loader.py +0 -0
  173. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_maql_normalize.py +0 -0
  174. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_metric_skill_evaluator.py +0 -0
  175. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_models.py +0 -0
  176. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_number_format.py +0 -0
  177. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_outcome.py +0 -0
  178. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_reporting.py +0 -0
  179. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_runner.py +0 -0
  180. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_scoring.py +0 -0
  181. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_search_tool_evaluator.py +0 -0
  182. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_sse_client.py +0 -0
  183. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_summary_client.py +0 -0
  184. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_summary_evaluator.py +0 -0
  185. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_takeaway_client.py +0 -0
  186. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_takeaway_evaluate.py +0 -0
  187. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_takeaway_evaluator.py +0 -0
  188. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_text_evaluators.py +0 -0
  189. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_timing.py +0 -0
  190. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_visualization_evaluator.py +0 -0
  191. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/tests/test_workspace.py +0 -0
  192. {gooddata_eval-1.80.1.dev8 → gooddata_eval-1.80.1.dev9}/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.dev9
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.dev9
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 `catalog_metadata`. 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. |
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 `catalog_metadata`. 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. |
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.dev8"
4
+ version = "1.80.1.dev9"
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.dev8",
14
+ "gooddata-sdk~=1.80.1.dev9",
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())
@@ -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(