From adc6c807a77c368defefa75bda5c67e431738a07 Mon Sep 17 00:00:00 2001 From: Zack Witten Date: Mon, 18 Sep 2023 15:18:53 -0700 Subject: [PATCH] add more xml tags --- 01_Generation/02_contextual_generation.ipynb | 5 ++++- 02_Summarization/01.small-text-summarization-claude.ipynb | 3 ++- 03_QuestionAnswering/01_qa_w_rag_claude.ipynb | 8 ++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/01_Generation/02_contextual_generation.ipynb b/01_Generation/02_contextual_generation.ipynb index df61ae69..4aa94040 100644 --- a/01_Generation/02_contextual_generation.ipynb +++ b/01_Generation/02_contextual_generation.ipynb @@ -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", + "\n", + "{feedbackFromCustomer}\n", + "\n", "\n", "Assistant:\"\"\"\n", ")\n", diff --git a/02_Summarization/01.small-text-summarization-claude.ipynb b/02_Summarization/01.small-text-summarization-claude.ipynb index 1094dab4..276e80ee 100644 --- a/02_Summarization/01.small-text-summarization-claude.ipynb +++ b/02_Summarization/01.small-text-summarization-claude.ipynb @@ -163,7 +163,7 @@ "prompt = \"\"\"\n", "\n", "Human: Please provide a summary of the following text.\n", - "\n", + "\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", @@ -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", + "\n", "\n", "Assistant:\"\"\"" ] diff --git a/03_QuestionAnswering/01_qa_w_rag_claude.ipynb b/03_QuestionAnswering/01_qa_w_rag_claude.ipynb index e49917f0..d9d7dc21 100644 --- a/03_QuestionAnswering/01_qa_w_rag_claude.ipynb +++ b/03_QuestionAnswering/01_qa_w_rag_claude.ipynb @@ -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", + "\n", "{context}\n", + "