From f65a90f8200e388f7b186de4f1fdcd1adf3a1bc0 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Thu, 19 Sep 2024 12:16:37 +0300 Subject: [PATCH] update structured outputs notebook reference Signed-off-by: Emmanuel Ferdman --- real_world_prompting/02_medical_prompt.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/real_world_prompting/02_medical_prompt.ipynb b/real_world_prompting/02_medical_prompt.ipynb index 69dd048..a855c3b 100644 --- a/real_world_prompting/02_medical_prompt.ipynb +++ b/real_world_prompting/02_medical_prompt.ipynb @@ -1476,7 +1476,7 @@ "\n", "We might be perfectly happy to have Claude generate the text summaries that our current prompt results in, but often we want specific structured responses that are easier to programmatically digest. The most common approach is to use JSON. \n", "\n", - "**Note: The easiest way to 'force' a JSON response is through Claude's tool use functionality, [which we cover in a separate lesson in our tool-use course](https://github.com/anthropics/courses/blob/master/ToolUse/03_structured_outputs.ipynb). The point of this demonstration is to show the impact that changing a prompt can have.**\n", + "**Note: The easiest way to 'force' a JSON response is through Claude's tool use functionality, [which we cover in a separate lesson in our tool-use course](https://github.com/anthropics/courses/blob/master/tool_use/03_structured_outputs.ipynb). The point of this demonstration is to show the impact that changing a prompt can have.**\n", "\n", "To adapt our current prompt so that it generates a JSON response, we need to make a few changes:\n", "* Explicitly tell Claude we want a JSON result and specify what the JSON output should include.\n",