Skip to main content

genie_eval_runs

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

Overview

Namegenie_eval_runs
TypeResource
Iddatabricks_workspace.dashboards.genie_eval_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
eval_run_idstring
created_timestampintegerTimestamp when the evaluation run was created (milliseconds since epoch).
eval_run_statusstringCurrent status of the evaluation run. (DONE, EVALUATION_CANCELLED, EVALUATION_FAILED, EVALUATION_TIMEOUT, NOT_STARTED, RUNNING)
last_updated_timestampintegerTimestamp when the evaluation run was last updated (milliseconds since epoch).
num_correctintegerNumber of questions answered correctly.
num_doneintegerNumber of questions that have been completed.
num_needs_reviewintegerNumber of questions that need manual review.
num_questionsintegerTotal number of questions in the evaluation run.
run_by_userintegerUser ID who initiated the evaluation run.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectspace_id, eval_run_id, deployment_nameGet evaluation run details.
listselectspace_id, deployment_namepage_size, page_tokenLists all evaluation runs in a space.
createinsertspace_id, deployment_nameCreate and run evaluations for multiple benchmark questions in a Genie space.

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_idstring
space_idstringThe ID associated with the Genie space where the evaluations will be executed.
page_sizeintegerMaximum number of evaluation runs to return per page
page_tokenstringToken to get the next page of results

SELECT examples

Get evaluation run details.

SELECT
eval_run_id,
created_timestamp,
eval_run_status,
last_updated_timestamp,
num_correct,
num_done,
num_needs_review,
num_questions,
run_by_user
FROM databricks_workspace.dashboards.genie_eval_runs
WHERE space_id = '{{ space_id }}' -- required
AND eval_run_id = '{{ eval_run_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Create and run evaluations for multiple benchmark questions in a Genie space.

INSERT INTO databricks_workspace.dashboards.genie_eval_runs (
benchmark_question_ids,
space_id,
deployment_name
)
SELECT
'{{ benchmark_question_ids }}',
'{{ space_id }}',
'{{ deployment_name }}'
RETURNING
eval_run_id,
created_timestamp,
eval_run_status,
last_updated_timestamp,
num_correct,
num_done,
num_needs_review,
num_questions,
run_by_user
;