Skip to content

Commit

Permalink
Clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhershey committed Mar 14, 2024
1 parent 22c8fb8 commit fea206c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions misc/using_citations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"## Download the Anthropic Documentation\n",
"For this example, you'll test Claude's ability to answer questions about its own documentation. Let's start by writing a function to download everything at [docs.anthropic.com](docs.anthropic.com). \n",
"\n",
"To get started, we'll define a function to download the text content from a website's sitemap."
"First, we'll define a function to download the text content from a website's sitemap."
]
},
{
Expand Down Expand Up @@ -136,7 +136,7 @@
"source": [
"## Set up the Anthropic client\n",
"\n",
"Now we'll initialize the Anthropic client using your API key:"
"Next, we'll initialize the Anthropic client using your API key:"
]
},
{
Expand All @@ -155,7 +155,7 @@
"source": [
"## Build a Question-Answering Prompt with Citations\n",
"\n",
"Now we'll work on constructing a prompt that asks Claude to answer user questions about Anthropics documentation while citing its sources. We'll start with the System prompt -- let's look at the prompt first, then break down the relevant sections:"
"Now we'll build a prompt that asks Claude to answer user questions about the Anthropic documentation while citing its sources. We'll start with the system prompt; read the whole prompt first, then we can break down the relevant sections:"
]
},
{
Expand Down Expand Up @@ -207,7 +207,7 @@
"source": [
"### Breaking down the system prompt\n",
"\n",
"#### First, we'll format the content of the documentation into a list of documents, in an XML format that Claude will understand well.\n",
"#### Format the content of the documentation into a list of documents, in an XML format that Claude will understand well.\n",
"```\n",
"website_content_string = \"\"\n",
"for page in text_content:\n",
Expand Down

0 comments on commit fea206c

Please sign in to comment.