diff --git a/rag_app_sample_code/A_POC_app/pdf_uc_volume/03_deploy_poc_to_review_app.py b/rag_app_sample_code/A_POC_app/pdf_uc_volume/03_deploy_poc_to_review_app.py index ee8a8bd..dd5a556 100644 --- a/rag_app_sample_code/A_POC_app/pdf_uc_volume/03_deploy_poc_to_review_app.py +++ b/rag_app_sample_code/A_POC_app/pdf_uc_volume/03_deploy_poc_to_review_app.py @@ -134,9 +134,11 @@ # MAGIC %md # MAGIC ## Grant stakeholders access to the Review App # MAGIC -# MAGIC Now, grant your stakeholders permissions to use the Review App. Your stakeholders do not Databricks accounts as long as you have [insert docs]. +# MAGIC Now, grant your stakeholders permissions to use the Review App. Your stakeholders do not need to have Databricks accounts. From the documentation: # MAGIC -# MAGIC `#TODO: add docs link` +# MAGIC > If reviewers don’t have access already, account admins can use account-level SCIM provisioning to sync users and groups automatically from your identity provider to your Databricks account. You can also manually register these users and groups as you set up identities in Databricks. This allows them to be included as eligible reviewers. +# MAGIC +# MAGIC [Refer to documentation here](https://docs.databricks.com/en/generative-ai/agent-evaluation/human-evaluation.html#set-up-permissions-to-the-review-app-workspace). # COMMAND ---------- diff --git a/rag_app_sample_code/A_POC_app/pdf_uc_volume/04_create_evaluation_set.py b/rag_app_sample_code/A_POC_app/pdf_uc_volume/04_create_evaluation_set.py index fd5b5b9..9bcf0b8 100644 --- a/rag_app_sample_code/A_POC_app/pdf_uc_volume/04_create_evaluation_set.py +++ b/rag_app_sample_code/A_POC_app/pdf_uc_volume/04_create_evaluation_set.py @@ -108,6 +108,21 @@ F.col("is_correct"), )) +# COMMAND ---------- +# MAGIC %md +# MAGIC ## Ingest chats into the Review App to be reviewed + +# COMMAND ---------- + +from databricks.agents import enable_trace_reviews + +request_id_list = request_log_df.toPandas()["databricks_request_id"].tolist() + +enable_trace_reviews( + model_name=UC_MODEL_NAME, + request_ids=request_id_list +) + # COMMAND ---------- # MAGIC %md