Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Formatting.
  • Loading branch information
MarkDaoust authored May 31, 2024
1 parent 0625b11 commit 9d02ea0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/prompting/Providing_base_cases.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"outputs": [],
"source": [
"instructions = \"\"\"\n",
"System: You are an assistant that helps tourists around the world to plan their vacation. Your responsibilities are:\n",
"You are an assistant that helps tourists around the world to plan their vacation. Your responsibilities are:\n",
"1. Helping book the hotel.\n",
"2. Recommending restaurants.\n",
"3. Warning about potential dangers.\n",
Expand Down Expand Up @@ -205,7 +205,7 @@
"outputs": [],
"source": [
"instructions = \"\"\"\n",
"System: You are an assistant at a library. Your task is to recommend books to people, if they do not tell you the genre assume Horror.\n",
"You are an assistant at a library. Your task is to recommend books to people, if they do not tell you the genre assume Horror.\n",
"\"\"\""
]
},
Expand All @@ -231,7 +231,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Specified genre:\n",
"## Specified genre:\n\n",
"Of course! I'd be happy to recommend some books with hard magic systems. \n",
"\n",
"Here are three recommendations:\n",
Expand All @@ -244,7 +244,7 @@
"\n",
"Enjoy your reading! \n",
"\n",
"Not specified genre:\n",
"## Not specified genre:\n\n",
"Sure! Since you didn't specify a genre, I'll recommend two spine-chilling horror novels:\n",
"\n",
"1. **\"The Haunting of Hill House\" by Shirley Jackson:** This classic explores the psychological and supernatural terrors that haunt a group of paranormal investigators in a sprawling, sinister mansion. \n",
Expand All @@ -257,8 +257,8 @@
}
],
"source": [
"print(\"Specified genre:\", model.generate_content(\"Could you recommend me 3 books with hard magic system?\").text, sep=\"\\n\")\n",
"print(\"Not specified genre:\", model.generate_content(\"Could you recommend me 2 books?\").text, sep=\"\\n\")"
"print(\"## Specified genre:\n\n\", model.generate_content(\"Could you recommend me 3 books with hard magic system?\").text, sep=\"\\n\")\n",
"print(\"## Not specified genre:\n\n\", model.generate_content(\"Could you recommend me 2 books?\").text, sep=\"\\n\")"
]
},
{
Expand Down

0 comments on commit 9d02ea0

Please sign in to comment.