From aa730c478781c1758e9d93d2603122484ac6be0d Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Tue, 21 Oct 2025 00:16:43 -0400 Subject: [PATCH] Add section on refining prompt with SDK for workshop --- .../SDK_notebook.ipynb | 315 ++++++++++++++---- 1 file changed, 248 insertions(+), 67 deletions(-) diff --git a/programmatic_actions_workshop/SDK_notebook.ipynb b/programmatic_actions_workshop/SDK_notebook.ipynb index 96bc64b..350d8ea 100644 --- a/programmatic_actions_workshop/SDK_notebook.ipynb +++ b/programmatic_actions_workshop/SDK_notebook.ipynb @@ -20,14 +20,14 @@ }, { "cell_type": "code", - "execution_count": 205, + "execution_count": null, "id": "c066e663-a7ae-4077-a1d0-55a0439bb3d1", "metadata": {}, "outputs": [], "source": [ - "# credentials and setup \n", - "label_studio_url = \"http://app.heartex.com\" \n", - "label_studio_api_key = \"Your Label Studio API Key\"" + "# credentials and setup\n", + "label_studio_url = \"your_label_studio_url_here\"\n", + "label_studio_api_key = \"your_api_key_here\"" ] }, { @@ -40,7 +40,7 @@ }, { "cell_type": "code", - "execution_count": 206, + "execution_count": null, "id": "6678f533-b167-460f-954e-5e5a031db3d4", "metadata": {}, "outputs": [], @@ -64,7 +64,7 @@ }, { "cell_type": "code", - "execution_count": 207, + "execution_count": null, "id": "e10ab73f-c7ba-4e3f-aeda-57a2eb1d2533", "metadata": {}, "outputs": [], @@ -73,7 +73,7 @@ "\n", "# the Label Studio Client is the main entry point for the SDK.\n", "ls = LabelStudio(\n", - " base_url=label_studio_url, \n", + " base_url=label_studio_url,\n", " api_key=label_studio_api_key,\n", ")" ] @@ -96,22 +96,22 @@ "from label_studio_sdk.label_interface import LabelInterface\n", "from label_studio_sdk.label_interface.create import labels, choices\n", "\n", - "# We can define the labeling config in one of two ways: \n", + "# We can define the labeling config in one of two ways:\n", "# 1. a string\n", "label_config = \"\"\"\n", - " \n", + "\n", " \n", - " \n", + "\n", " \n", " \n", "\n", - "