Skip to content
Open
Show file tree
Hide file tree
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 AmazonBedrock/anthropic/00_Tutorial_How-To.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"- When you reach the bottom of a tutorial page, navigate to the next numbered file in the folder, or to the next numbered folder if you're finished with the content within that chapter file.\n",
"\n",
"### The Anthropic SDK & the Messages API\n",
"We will be using the [Anthropic python SDK](https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock) and the [Messages API](https://docs.anthropic.com/claude/reference/messages_post) throughout this tutorial.\n",
"We will be using the [Anthropic python SDK](https://docs.anthropic.com/en/api/claude-on-amazon-bedrock) and the [Messages API](https://docs.anthropic.com/en/api/messages) throughout this tutorial.\n",
"\n",
"Below is an example of what running a prompt will look like in this tutorial."
]
Expand Down
2 changes: 1 addition & 1 deletion AmazonBedrock/anthropic/01_Basic_Prompt_Structure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Why use a system prompt? A **well-written system prompt can improve Claude's performance** in a variety of ways, such as increasing Claude's ability to follow rules and instructions. For more information, visit our documentation on [how to use system prompts](https://docs.anthropic.com/claude/docs/how-to-use-system-prompts) with Claude.\n",
"Why use a system prompt? A **well-written system prompt can improve Claude's performance** in a variety of ways, such as increasing Claude's ability to follow rules and instructions. For more information, visit our documentation on [how to use system prompts](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts) with Claude.\n",
"\n",
"Now we'll dive into some exercises. If you would like to experiment with the lesson prompts without changing any content above, scroll all the way to the bottom of the lesson notebook to visit the [**Example Playground**](#example-playground)."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"source": [
"How do we solve this? **Wrap the input in XML tags**! We did this below, and as you can see, there's no more \"Dear Claude\" in the output.\n",
"\n",
"[XML tags](https://docs.anthropic.com/claude/docs/use-xml-tags) are angle-bracket tags like `<tag></tag>`. They come in pairs and consist of an opening tag, such as `<tag>`, and a closing tag marked by a `/`, such as `</tag>`. XML tags are used to wrap around content, like this: `<tag>content</tag>`.\n",
"[XML tags](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags) are angle-bracket tags like `<tag></tag>`. They come in pairs and consist of an opening tag, such as `<tag>`, and a closing tag marked by a `/`, such as `</tag>`. XML tags are used to wrap around content, like this: `<tag>content</tag>`.\n",
"\n",
"**Note:** While Claude can recognize and work with a wide range of separators and delimeters, we recommend that you **use specifically XML tags as separators** for Claude, as Claude was trained specifically to recognize XML tags as a prompt organizing mechanism. Outside of function calling, **there are no special sauce XML tags that Claude has been trained on that you should use to maximally boost your performance**. We have purposefully made Claude very malleable and customizable this way."
]
Expand Down
2 changes: 1 addition & 1 deletion AmazonBedrock/anthropic/08_Avoiding_Hallucinations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"\n",
"Sometimes, Claude's hallucinations can be solved by lowering the `temperature` of Claude's responses. Temperature is a measurement of answer creativity between 0 and 1, with 1 being more unpredictable and less standardized, and 0 being the most consistent. \n",
"\n",
"Asking Claude something at temperature 0 will generally yield an almost-deterministic answer set across repeated trials (although complete determinism is not guaranteed). Asking Claude something at temperature 1 (or gradations in between) will yield more variable answers. Learn more about temperature and other parameters [here](https://docs.anthropic.com/claude/reference/messages_post).\n",
"Asking Claude something at temperature 0 will generally yield an almost-deterministic answer set across repeated trials (although complete determinism is not guaranteed). Asking Claude something at temperature 1 (or gradations in between) will yield more variable answers. Learn more about temperature and other parameters [here](https://docs.anthropic.com/en/api/messages).\n",
"\n",
"If you would like to experiment with the lesson prompts without changing any content above, scroll all the way to the bottom of the lesson notebook to visit the [**Example Playground**](#example-playground)."
]
Expand Down
6 changes: 3 additions & 3 deletions AmazonBedrock/anthropic/09_Complex_Prompts_from_Scratch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -894,11 +894,11 @@
"\n",
"If you want to see **more examples of good prompts** for inspiration:\t\t\t\t\t\n",
"- Learn from examples of production-ready prompts from our [cookbook](https://anthropic.com/cookbook)\n",
"- Read through our [prompting guide](https://docs.anthropic.com/claude/docs/prompt-engineering)\n",
"- Read through our [prompting guide](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview)\n",
"- Check out our [prompt library](https://anthropic.com/prompts) for inspiration\n",
"- Try our experimental [metaprompt](https://docs.anthropic.com/claude/docs/helper-metaprompt-experimental) to get Claude to write prompt templates for you!\n",
"- Try our experimental [metaprompt](https://docs.anthropic.com/en/docs/prompt-generator) to get Claude to write prompt templates for you!\n",
"- Ask questions in our [discord server](https://anthropic.com/discord)\n",
"- Learn about the [Anthropic API parameters](https://docs.anthropic.com/claude/reference/complete_post) like temperature and `max_tokens`\n",
"- Learn about the [Anthropic API parameters](https://docs.anthropic.com/en/build-with-claude/working-with-messages) like temperature and `max_tokens`\n",
"- If you're feeling academic, read some [papers](https://www.promptingguide.ai/papers) on prompt engineering\n",
"- Practice building prompts to get Claude to do something you're interested in\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"\n",
"The saying goes, \"Writing is rewriting.\" It turns out, **Claude can often improve the accuracy of its response when asked to do so**!\n",
"\n",
"There are many ways to prompt Claude to \"think again\". The ways that feel natural to ask a human to double check their work will also generally work for Claude. (Check out our [prompt chaining documentation](https://docs.anthropic.com/claude/docs/chain-prompts) for further examples of when and how to use prompt chaining.)"
"There are many ways to prompt Claude to \"think again\". The ways that feel natural to ask a human to double check their work will also generally work for Claude. (Check out our [prompt chaining documentation](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/chain-prompts) for further examples of when and how to use prompt chaining.)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"Did you know you can use Claude to **search through Wikipedia for you**? Claude can find and retrieve articles, at which point you can also use Claude to summarize and synthesize them, write novel content from what it found, and much more. And not just Wikipedia! You can also search over your own docs, whether stored as plain text or embedded in a vector datastore.\n",
"\n",
"See our [RAG cookbook examples](https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/Wikipedia/wikipedia-search-cookbook.ipynb) to learn how to supplement Claude's knowledge and improve the accuracy and relevance of Claude's responses with data retrieved from vector databases, Wikipedia, the internet, and more. There, you can also learn about how to use certain [embeddings](https://docs.anthropic.com/claude/docs/embeddings) and vector database tools.\n",
"See our [RAG cookbook examples](https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/Wikipedia/wikipedia-search-cookbook.ipynb) to learn how to supplement Claude's knowledge and improve the accuracy and relevance of Claude's responses with data retrieved from vector databases, Wikipedia, the internet, and more. There, you can also learn about how to use certain [embeddings](https://docs.anthropic.com/en/docs/build-with-claude/embeddings) and vector database tools.\n",
"\n",
"If you are interested in learning about advanced RAG architectures using Claude, check out our [Claude 3 technical presentation slides on RAG architectures](https://docs.google.com/presentation/d/1zxkSI7lLUBrZycA-_znwqu8DDyVhHLkQGScvzaZrUns/edit#slide=id.g2c736259dac_63_782)."
]
Expand Down
2 changes: 1 addition & 1 deletion AmazonBedrock/boto3/00_Tutorial_How-To.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"- When you reach the bottom of a tutorial page, navigate to the next numbered file in the folder, or to the next numbered folder if you're finished with the content within that chapter file.\n",
"\n",
"### The Anthropic SDK & the Messages API\n",
"We will be using the [Anthropic python SDK](https://docs.anthropic.com/claude/reference/client-sdks) and the [Messages API](https://docs.anthropic.com/claude/reference/messages_post) throughout this tutorial. \n",
"We will be using the [Anthropic python SDK](https://docs.anthropic.com/en/api/client-sdks) and the [Messages API](https://docs.anthropic.com/en/api/messages) throughout this tutorial. \n",
"\n",
"Below is an example of what running a prompt will look like in this tutorial. First, we create `get_completion`, which is a helper function that sends a prompt to Claude and returns Claude's generated response. Run that cell now."
]
Expand Down
2 changes: 1 addition & 1 deletion AmazonBedrock/boto3/01_Basic_Prompt_Structure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Why use a system prompt? A **well-written system prompt can improve Claude's performance** in a variety of ways, such as increasing Claude's ability to follow rules and instructions. For more information, visit our documentation on [how to use system prompts](https://docs.anthropic.com/claude/docs/how-to-use-system-prompts) with Claude.\n",
"Why use a system prompt? A **well-written system prompt can improve Claude's performance** in a variety of ways, such as increasing Claude's ability to follow rules and instructions. For more information, visit our documentation on [how to use system prompts](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts) with Claude.\n",
"\n",
"Now we'll dive into some exercises. If you would like to experiment with the lesson prompts without changing any content above, scroll all the way to the bottom of the lesson notebook to visit the [**Example Playground**](#example-playground)."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"source": [
"How do we solve this? **Wrap the input in XML tags**! We did this below, and as you can see, there's no more \"Dear Claude\" in the output.\n",
"\n",
"[XML tags](https://docs.anthropic.com/claude/docs/use-xml-tags) are angle-bracket tags like `<tag></tag>`. They come in pairs and consist of an opening tag, such as `<tag>`, and a closing tag marked by a `/`, such as `</tag>`. XML tags are used to wrap around content, like this: `<tag>content</tag>`.\n",
"[XML tags](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags) are angle-bracket tags like `<tag></tag>`. They come in pairs and consist of an opening tag, such as `<tag>`, and a closing tag marked by a `/`, such as `</tag>`. XML tags are used to wrap around content, like this: `<tag>content</tag>`.\n",
"\n",
"**Note:** While Claude can recognize and work with a wide range of separators and delimeters, we recommend that you **use specifically XML tags as separators** for Claude, as Claude was trained specifically to recognize XML tags as a prompt organizing mechanism. Outside of function calling, **there are no special sauce XML tags that Claude has been trained on that you should use to maximally boost your performance**. We have purposefully made Claude very malleable and customizable this way."
]
Expand Down
2 changes: 1 addition & 1 deletion AmazonBedrock/boto3/08_Avoiding_Hallucinations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
"\n",
"Sometimes, Claude's hallucinations can be solved by lowering the `temperature` of Claude's responses. Temperature is a measurement of answer creativity between 0 and 1, with 1 being more unpredictable and less standardized, and 0 being the most consistent. \n",
"\n",
"Asking Claude something at temperature 0 will generally yield an almost-deterministic answer set across repeated trials (although complete determinism is not guaranteed). Asking Claude something at temperature 1 (or gradations in between) will yield more variable answers. Learn more about temperature and other parameters [here](https://docs.anthropic.com/claude/reference/messages_post).\n",
"Asking Claude something at temperature 0 will generally yield an almost-deterministic answer set across repeated trials (although complete determinism is not guaranteed). Asking Claude something at temperature 1 (or gradations in between) will yield more variable answers. Learn more about temperature and other parameters [here](https://docs.anthropic.com/en/api/messages).\n",
"\n",
"If you would like to experiment with the lesson prompts without changing any content above, scroll all the way to the bottom of the lesson notebook to visit the [**Example Playground**](#example-playground)."
]
Expand Down
6 changes: 3 additions & 3 deletions AmazonBedrock/boto3/09_Complex_Prompts_from_Scratch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,11 @@
"\n",
"If you want to see **more examples of good prompts** for inspiration:\t\t\t\t\t\n",
"- Learn from examples of production-ready prompts from our [cookbook](https://anthropic.com/cookbook)\n",
"- Read through our [prompting guide](https://docs.anthropic.com/claude/docs/prompt-engineering)\n",
"- Read through our [prompting guide](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview)\n",
"- Check out our [prompt library](https://anthropic.com/prompts) for inspiration\n",
"- Try our experimental [metaprompt](https://docs.anthropic.com/claude/docs/helper-metaprompt-experimental) to get Claude to write prompt templates for you!\n",
"- Try our experimental [metaprompt](https://docs.anthropic.com/en/docs/prompt-generator) to get Claude to write prompt templates for you!\n",
"- Ask questions in our [discord server](https://anthropic.com/discord)\n",
"- Learn about the [Anthropic API parameters](https://docs.anthropic.com/claude/reference/complete_post) like temperature and `max_tokens`\n",
"- Learn about the [Anthropic API parameters](https://docs.anthropic.com/en/build-with-claude/working-with-messages) like temperature and `max_tokens`\n",
"- If you're feeling academic, read some [papers](https://www.promptingguide.ai/papers) on prompt engineering\n",
"- Practice building prompts to get Claude to do something you're interested in\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion AmazonBedrock/boto3/10_1_Appendix_Chaining_Prompts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"\n",
"The saying goes, \"Writing is rewriting.\" It turns out, **Claude can often improve the accuracy of its response when asked to do so**!\n",
"\n",
"There are many ways to prompt Claude to \"think again\". The ways that feel natural to ask a human to double check their work will also generally work for Claude. (Check out our [prompt chaining documentation](https://docs.anthropic.com/claude/docs/chain-prompts) for further examples of when and how to use prompt chaining.)"
"There are many ways to prompt Claude to \"think again\". The ways that feel natural to ask a human to double check their work will also generally work for Claude. (Check out our [prompt chaining documentation](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/chain-prompts) for further examples of when and how to use prompt chaining.)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"Did you know you can use Claude to **search through Wikipedia for you**? Claude can find and retrieve articles, at which point you can also use Claude to summarize and synthesize them, write novel content from what it found, and much more. And not just Wikipedia! You can also search over your own docs, whether stored as plain text or embedded in a vector datastore.\n",
"\n",
"See our [RAG cookbook examples](https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/Wikipedia/wikipedia-search-cookbook.ipynb) to learn how to supplement Claude's knowledge and improve the accuracy and relevance of Claude's responses with data retrieved from vector databases, Wikipedia, the internet, and more. There, you can also learn about how to use certain [embeddings](https://docs.anthropic.com/claude/docs/embeddings) and vector database tools.\n",
"See our [RAG cookbook examples](https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/Wikipedia/wikipedia-search-cookbook.ipynb) to learn how to supplement Claude's knowledge and improve the accuracy and relevance of Claude's responses with data retrieved from vector databases, Wikipedia, the internet, and more. There, you can also learn about how to use certain [embeddings](https://docs.anthropic.com/en/docs/build-with-claude/embeddings) and vector database tools.\n",
"\n",
"If you are interested in learning about advanced RAG architectures using Claude, check out our [Claude 3 technical presentation slides on RAG architectures](https://docs.google.com/presentation/d/1zxkSI7lLUBrZycA-_znwqu8DDyVhHLkQGScvzaZrUns/edit#slide=id.g2c736259dac_63_782)."
]
Expand Down
2 changes: 1 addition & 1 deletion Anthropic 1P/00_Tutorial_How-To.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"- When you reach the bottom of a tutorial page, navigate to the next numbered file in the folder, or to the next numbered folder if you're finished with the content within that chapter file.\n",
"\n",
"### The Anthropic SDK & the Messages API\n",
"We will be using the [Anthropic python SDK](https://docs.anthropic.com/claude/reference/client-sdks) and the [Messages API](https://docs.anthropic.com/claude/reference/messages_post) throughout this tutorial. \n",
"We will be using the [Anthropic python SDK](https://docs.anthropic.com/en/api/client-sdks) and the [Messages API](https://docs.anthropic.com/en/api/messages) throughout this tutorial. \n",
"\n",
"Below is an example of what running a prompt will look like in this tutorial. First, we create `get_completion`, which is a helper function that sends a prompt to Claude and returns Claude's generated response. Run that cell now."
]
Expand Down
Loading