Skip to content

Commit 0cd80f1

Browse files
authored
Merge pull request microsoft#368 from hyoshioka0128/patch-6
Update README.md (Typo "Azure Open AI"→"Azure OpenAI")
2 parents d5e5e70 + 71063c2 commit 0cd80f1

File tree

1 file changed

+7
-7
lines changed
  • 11-integrating-with-function-calling

1 file changed

+7
-7
lines changed

11-integrating-with-function-calling/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This lesson will cover:
2121
After completing this lesson you will be able to:
2222

2323
- Explain the purpose of using function calling.
24-
- Setup Function Call using the Azure Open AI Service.
24+
- Setup Function Call using the Azure OpenAI Service.
2525
- Design effective function calls for your application's use case.
2626

2727
## Scenario: improving our chatbot with functions
@@ -30,7 +30,7 @@ For this lesson, we want to build a feature for our education startup that allow
3030

3131
To complete this scenario we will use a combination of:
3232

33-
- `Azure Open AI` to create a chat experience for the user.
33+
- `Azure OpenAI` to create a chat experience for the user.
3434
- `Microsoft Learn Catalog API` to help users find courses based on the request of the user.
3535
- `Function Calling` to take the user's query and send it to a function to make the API request.
3636

@@ -40,7 +40,7 @@ To get started, let's look at why we would want to use function calling in the f
4040

4141
Before function calling, responses from an LLM were unstructured and inconsistent. Developers were required to write complex validation code to make sure they are able to handle each variation of a response. Users could not get answers like "What is the current weather in Stockholm?". This is because models were limited to the time the data was trained on.
4242

43-
Function Calling is a feature of the Azure Open AI Service to overcome to the following limitations:
43+
Function Calling is a feature of the Azure OpenAI Service to overcome to the following limitations:
4444

4545
- **Consistent response format**. If we can better control the response format we can more easily integrate the response downstream to other systems.
4646
- **External data**. Ability to use data from other sources of an application in a chat context.
@@ -53,7 +53,7 @@ Let's look at the example that illustrates the response format problem:
5353

5454
Let's say we want to create a database of student data so we can suggest the right course to them. Below we have two descriptions of students that are very similar in the data they contain.
5555

56-
1. Create a connection to our Azure Open AI resource:
56+
1. Create a connection to our Azure OpenAI resource:
5757

5858
```python
5959
import os
@@ -70,7 +70,7 @@ Let's say we want to create a database of student data so we can suggest the rig
7070
deployment=os.environ['AZURE_OPENAI_DEPLOYMENT']
7171
```
7272

73-
Below is some Python code for configuring our connection to Azure Open AI where we set `api_type`, `api_base`, `api_version` and `api_key`.
73+
Below is some Python code for configuring our connection to Azure OpenAI where we set `api_type`, `api_base`, `api_version` and `api_key`.
7474

7575
1. Creating two student descriptions using variables `student_1_description` and `student_2_description`.
7676

@@ -114,7 +114,7 @@ Let's say we want to create a database of student data so we can suggest the rig
114114

115115
The above prompts instruct the LLM to extract information and return the response in JSON format.
116116

117-
1. After setting up the prompts and the connection to Azure Open AI, we will now send the prompts to the LLM by using `openai.ChatCompletion`. We store the prompt in the `messages` variable and assign the role to `user`. This is to mimic a message from a user being written to a chatbot.
117+
1. After setting up the prompts and the connection to Azure OpenAI, we will now send the prompts to the LLM by using `openai.ChatCompletion`. We store the prompt in the `messages` variable and assign the role to `user`. This is to mimic a message from a user being written to a chatbot.
118118

119119
```python
120120
# response from prompt one
@@ -433,7 +433,7 @@ Ok, so we created `functions` variables and a corresponding Python function, how
433433

434434
## Assignment
435435

436-
To continue your learning of Azure Open AI Function Calling you can build:
436+
To continue your learning of Azure OpenAI Function Calling you can build:
437437

438438
- More parameters of the function that might help learners find more courses.
439439
- Create another function call that takes more information from the learner like their native language

0 commit comments

Comments
 (0)