Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update structured outputs notebook reference #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion real_world_prompting/02_medical_prompt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down