FIX: fix typo
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"However, when we prime Claude to inhabit the role of a cat, Claude's perspective changes, and thus **Claude's response tone, style, content adapts to the new role**. \n",
|
"However, when we prime Claude to inhabit the role of a cat, Claude's perspective changes, and thus **Claude's response tone, style, content adapts to the new role**. \n",
|
||||||
"\n",
|
"\n",
|
||||||
"**Note:** A bonus technique you can use is to **provide Claude context on its intended audience**. Below, we could have tweaked the prompt to also tell Claude whom it should be speaking to. \"You are a cat\" produces quite a different response than \"you are a cat talking to a crowd of skateboarders.\n",
|
"**Note:** A bonus technique you can use is to **provide Claude context on its intended audience**. Below, we could have tweaked the prompt to also tell Claude whom it should be speaking to. \"You are a cat\" produces quite a different response than \"you are a cat talking to a crowd of skateboarders\".\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Here is the prompt without role prompting in the system prompt:"
|
"Here is the prompt without role prompting in the system prompt:"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"Why is this something we'd want to do? Well, having the output in **XML tags allows the end user to reliably get the poem and only the poem by writing a short program to extract the content between XML tags**.\n",
|
"Why is this something we'd want to do? Well, having the output in **XML tags allows the end user to reliably get the poem and only the poem by writing a short program to extract the content between XML tags**.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"An extension of this technique is to **put the first XML tag in the `assistant` turn. When you put text in the `assistant` turn, you're basically telling Claude that Claude has already said something, and that it should continue from that point onward. This technique is called \"speaking for Claude\" or \"prefilling Claude's response.\"\n",
|
"An extension of this technique is to **put the first XML tag in the `assistant` turn**. When you put text in the `assistant` turn, you're basically telling Claude that Claude has already said something, and that it should continue from that point onward. This technique is called \"speaking for Claude\" or \"prefilling Claude's response.\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Below, we've done this with the first `<haiku>` XML tag. Notice how Claude continues directly from where we left off."
|
"Below, we've done this with the first `<haiku>` XML tag. Notice how Claude continues directly from where we left off."
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user