Skip to content

Commit

Permalink
add more xml tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-anthropic committed Sep 18, 2023
1 parent ef54f91 commit adc6c80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 4 additions & 1 deletion 01_Generation/02_contextual_generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@
" input_variables=[\"customerServiceManager\", \"customerName\", \"feedbackFromCustomer\"], \n",
" template=\"\"\"\n",
"\n",
"Human: Create an apology email from the Service Manager {customerServiceManager} to {customerName} in response to the following feedback that was received from the customer: {feedbackFromCustomer}.\n",
"Human: Create an apology email from the Service Manager {customerServiceManager} to {customerName} in response to the following feedback that was received from the customer: \n",
"<customer_feedback>\n",
"{feedbackFromCustomer}\n",
"</customer_feedback>\n",
"\n",
"Assistant:\"\"\"\n",
")\n",
Expand Down
3 changes: 2 additions & 1 deletion 02_Summarization/01.small-text-summarization-claude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"prompt = \"\"\"\n",
"\n",
"Human: Please provide a summary of the following text.\n",
"\n",
"<text>\n",
"AWS took all of that feedback from customers, and today we are excited to announce Amazon Bedrock, \\\n",
"a new service that makes FMs from AI21 Labs, Anthropic, Stability AI, and Amazon accessible via an API. \\\n",
"Bedrock is the easiest way for customers to build and scale generative AI-based applications using FMs, \\\n",
Expand All @@ -174,6 +174,7 @@
"customize FMs with their own data, and easily integrate and deploy them into their applications using the AWS \\\n",
"tools and capabilities they are familiar with, without having to manage any infrastructure (including integrations \\\n",
"with Amazon SageMaker ML features like Experiments to test different models and Pipelines to manage their FMs at scale).\n",
"</text>\n",
"\n",
"Assistant:\"\"\""
]
Expand Down
8 changes: 2 additions & 6 deletions 03_QuestionAnswering/01_qa_w_rag_claude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,9 @@
"prompt_template = \"\"\"\n",
"\n",
"Human: Use the following pieces of context to provide a concise answer to the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.\n",
"\n",
"<context>\n",
"{context}\n",
"</context\n",
"\n",
"Question: {question}\n",
"\n",
Expand Down Expand Up @@ -507,11 +508,6 @@
"\n",
"# Thank You"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit adc6c80

Please sign in to comment.