Skip to main content

genie_eval_results

Creates, updates, deletes, gets or lists a genie_eval_results resource.

Overview

Namegenie_eval_results
TypeResource
Iddatabricks_workspace.dashboards.genie_eval_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
benchmark_question_idstringThe ID of the benchmark question that was evaluated.
result_idstringThe unique identifier for the evaluation result.
space_idstringThe ID of the space the evaluation result belongs to.
actual_responsearrayThe actual response generated by Genie.
assessmentstringAssessment of the evaluation result: good, bad, or needs review (BAD, GOOD, NEEDS_REVIEW)
assessment_reasonsarrayReasons for the assessment score. Assessment reasons describe why a Genie response was scored as BAD. Deterministic values (compared against the ground truth result): - EMPTY_RESULT: Genie's generated SQL results were empty for this benchmark question. - RESULT_MISSING_ROWS: Genie's generated SQL response is missing rows from the provided ground truth SQL. - RESULT_EXTRA_ROWS: Genie's generated SQL response has more rows than the provided ground truth SQL. - RESULT_MISSING_COLUMNS: Genie's generated SQL response is missing columns from the provided ground truth SQL. - RESULT_EXTRA_COLUMNS: Genie's generated SQL response has more columns than the provided ground truth SQL. - SINGLE_CELL_DIFFERENCE: Single value result was produced but differs from ground truth result. - EMPTY_GOOD_SQL: The benchmark SQL returned an empty result. - COLUMN_TYPE_DIFFERENCE: The values between the results match but the column type is different. LLM judge ratings explain the factors driving BAD results: - LLM_JUDGE_MISSING_OR_INCORRECT_FILTER: Genie's generated SQL is missing a WHERE clause condition or has incorrect filter logic that excludes/includes wrong data. - LLM_JUDGE_INCOMPLETE_OR_PARTIAL_OUTPUT: Genie's generated SQL returns only some of the requested data or columns, missing parts of what the ground truth SQL returns. - LLM_JUDGE_MISINTERPRETATION_OF_USER_REQUEST: Genie's generated SQL fundamentally misunderstands what the user is asking for, addressing the wrong question or goal. - LLM_JUDGE_INSTRUCTION_COMPLIANCE_OR_MISSING_BUSINESS_LOGIC: Genie's generated SQL fails to apply specified instructions or business logic that should be followed. - LLM_JUDGE_INCORRECT_METRIC_CALCULATION: Genie's generated SQL uses incorrect logic or makes wrong assumptions when calculating metrics. - LLM_JUDGE_INCORRECT_TABLE_OR_FIELD_USAGE: Genie's generated SQL references wrong tables, columns, or uses fields that don't match the ground truth SQL's intent. - LLM_JUDGE_INCORRECT_FUNCTION_USAGE: Genie's generated SQL uses SQL functions incorrectly or inappropriately (wrong parameters, wrong function for the task, etc.). - LLM_JUDGE_MISSING_OR_INCORRECT_JOIN: Genie's generated SQL is missing necessary joins between tables or has incorrect join conditions/types that produce wrong results. - LLM_JUDGE_MISSING_OR_INCORRECT_AGGREGATION: Genie's generated SQL is missing GROUP BY clauses or has incorrect grouping that doesn't match the requested aggregation level. - LLM_JUDGE_FORMATTING_ERROR: Genie's generated SQL output has incorrect formatting, ordering (ORDER BY), or presentation issues that don't match expectations. - LLM_JUDGE_OTHER: LLM judge identified an error that doesn't fall into other categories. Deprecated LLM judge values (kept for backward compatibility, do not use): - LLM_JUDGE_MISSING_JOIN (deprecated) - LLM_JUDGE_WRONG_FILTER (deprecated) - LLM_JUDGE_WRONG_AGGREGATION (deprecated) - LLM_JUDGE_WRONG_COLUMNS (deprecated) - LLM_JUDGE_SYNTAX_ERROR (deprecated) - LLM_JUDGE_SEMANTIC_ERROR (deprecated)
eval_run_statusstringCurrent status of the evaluation run. (DONE, EVALUATION_CANCELLED, EVALUATION_FAILED, EVALUATION_TIMEOUT, NOT_STARTED, RUNNING)
expected_responsearrayThe expected responses from the benchmark.
manual_assessmentbooleanWhether this evaluation was manually assessed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_detailsselectspace_id, eval_run_id, result_id, deployment_nameGet details for evaluation results.
listselectspace_id, eval_run_id, deployment_namepage_size, page_tokenList evaluation results for a specific evaluation run.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
eval_run_idstringThe unique identifier for the evaluation run.
result_idstringThe unique identifier for the evaluation result.
space_idstringThe ID associated with the Genie space where the evaluation run is located.
page_sizeintegerMaximum number of eval results to return per page.
page_tokenstringOpaque token to retrieve the next page of results.

SELECT examples

Get details for evaluation results.

SELECT
benchmark_question_id,
result_id,
space_id,
actual_response,
assessment,
assessment_reasons,
eval_run_status,
expected_response,
manual_assessment
FROM databricks_workspace.dashboards.genie_eval_results
WHERE space_id = '{{ space_id }}' -- required
AND eval_run_id = '{{ eval_run_id }}' -- required
AND result_id = '{{ result_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;