Skip to content

Commit

Permalink
Merge pull request #154 from Azure-Samples/workshop_updates
Browse files Browse the repository at this point in the history
workshop updates.
  • Loading branch information
marlenezw authored Aug 30, 2024
2 parents 9f19b64 + 189ce81 commit dfb73a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
File renamed without changes
16 changes: 10 additions & 6 deletions docs/workshop/workshop.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"\n",
"Contoso Creative Writer is made up of 4 agents: \n",
"\n",
"<img src=“../images/agents.png alt=Agents in Contoso Creative Writer width=900 height=380>\n",
"<img src=\"agents.png\" alt=\"Agents in Contoso Creative Writer\" width=\"900\" height=\"380\">\n",
"\n",
"### Building an Agent with Prompty and Azure OpenAI\n",
"We’ll focus on the Researcher Agent, which searches for relevant information online using Bing Search and Azure OpenAI with the GPT-3.5 Turbo model.\n",
Expand Down Expand Up @@ -101,7 +101,7 @@
"metadata": {},
"outputs": [],
"source": [
"instructions = \"Can you do some research about the person Guido van Rossum?\"\n",
"instructions = \"Can you tell me about the person Guido van Rossum?\"\n",
"\n",
"research(instructions=instructions)"
]
Expand Down Expand Up @@ -188,7 +188,11 @@
" assignment_context,\n",
" )\n",
"\n",
"processed_writer_result = writer.process(writer_result)\n",
"full_result = \" \"\n",
"for item in writer_result:\n",
" full_result = full_result + f'{item}'\n",
"\n",
"processed_writer_result = writer.process(full_result)\n",
"print(processed_writer_result)"
]
},
Expand Down Expand Up @@ -229,11 +233,11 @@
" fastapi dev main.py\n",
" ```\n",
"\n",
"Do not click open browser if prompted. \n",
" Do not click open browser if prompted. \n",
"\n",
"Next you'll need to change the visibility of the API's 8000 and 5173 ports to public in the `PORTS` tab. You can do this by right clicking on the visibility section of the port, selecting port visibility and setting it to public. The ports tab should look like this:\n",
" Next you'll need to change the visibility of the API's 8000 and 5173 ports to public in the `PORTS` tab. You can do this by right clicking on the visibility section of the port, selecting port visibility and setting it to public. The ports tab should look like this:\n",
"\n",
"<img src=\"../../images/ports.png\" alt=\"Screenshot showing setting port-visibility\" width=\"800px\" />\n",
" <img src=\"../../images/ports.png\" alt=\"Screenshot showing setting port-visibility\" width=\"800px\" />\n",
"\n",
"\n",
"2. Running the web app \n",
Expand Down
1 change: 1 addition & 0 deletions src/api/agents/writer/writer.prompty
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ model:
configuration:
type: azure_openai
azure_deployment: gpt-4
api_version: 2023-07-01-preview
parameters:
max_tokens: 2000
sample:
Expand Down

0 comments on commit dfb73a2

Please sign in to comment.