Skip to content

Commit 809876d

Browse files
authored
Minor updates to documentation and dependencies (#5)
1 parent d85f039 commit 809876d

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.devcontainer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
azure-identity==1.16.0
22
ipykernel==6.29.4
33
Jinja2==3.1.4
4-
openai==1.26.0
4+
openai==1.28.1
55
python-dotenv==1.0.1
66
requests==2.31.0
77
stop-words==2018.7.23

.github/docs/step-by-step-setup.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,23 @@ Before implementing this example scenario the following is needed:
3434
3535
## 1.2. Deploy Azure resources
3636

37-
1. Run the following command to get your Object ID of your Azure AD user.
37+
1. Before running the notebooks ensure you authenticate with the Azure CLI by running the following command:
38+
39+
```bash
40+
az login --tenant <your-tenant-id>
41+
```
42+
43+
This will open a browser window to authenticate with the Azure CLI.
44+
45+
2. Run the following command to get your Object ID of your Azure AD user.
3846

3947
```bash
4048
az ad signed-in-user show --query "id" -o tsv
4149
```
4250

4351
This will be used to assign the required permissions needed to interact with the Azure resources during the setup or a development scenario.
4452

45-
2. Click the `Deploy to Azure` button below to deploy the Azure resources required for these example scenarios.
53+
3. Click the `Deploy to Azure` button below to deploy the Azure resources required for these example scenarios.
4654

4755
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fnfmoore%2Fazure-open-ai-example-scenarios%2Fmain%2Finfrastructure%2Fmain.json)
4856

@@ -64,10 +72,10 @@ The [Getting Started](.github/docs/getting-started.md) section of this repositor
6472

6573
```bash
6674
AZURE_SUBSCRIPTION_ID=<your-subscription-id>
67-
AZURE_RESOURCE_GROUP=<your-resource-group>
75+
AZURE_RESOURCE_GROUP_NAME=<your-resource-group>
6876
69-
AZURE_OPENAI_API_BASE=<your-open-ai-service-name>.openai.azure.com
70-
AZURE_AI_SEARCH_ENDPOINT=<your-search-service-name>.search.windows.net
77+
AZURE_OPENAI_API_BASE=https://<your-open-ai-service-name>.openai.azure.com
78+
AZURE_AI_SEARCH_ENDPOINT=https://<your-search-service-name>.search.windows.net
7179
7280
AZURE_OPENAI_CHAT_DEPLOYMENT=gpt-35-turbo-16k-0613
7381
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-ada-002-2
@@ -161,11 +169,11 @@ The [Getting Started](.github/docs/getting-started.md) section of this repositor
161169
export USER_ASSIGNED_IDENTITY_ID=$(az identity show --resource-group $RESOURCE_GROUP_NAME --name $USER_ASSIGNED_IDENTITY_NAME | jq '.id' -r)
162170
export USER_ASSIGNED_IDENTITY_CLIENT_ID=$(az identity show --resource-group $RESOURCE_GROUP_NAME --name $USER_ASSIGNED_IDENTITY_NAME | jq '.clientId' -r)
163171
164-
export AZURE_OPENAI_API_BASE=<your-open-ai-service-name>.openai.azure.com # can be found on the Azure Portal
172+
export AZURE_OPENAI_API_BASE=https://<your-open-ai-service-name>.openai.azure.com # can be found on the Azure Portal
165173
export AZURE_OPENAI_CHAT_DEPLOYMENT=gpt-35-turbo-16k-0613
166174
export AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-ada-002-2
167175
168-
export AZURE_AI_SEARCH_ENDPOINT=<your-search-service-name>.search.windows.net # can be found on the Azure Portal
176+
export AZURE_AI_SEARCH_ENDPOINT=https://<your-search-service-name>.search.windows.net # can be found on the Azure Portal
169177
export AZURE_AI_SEARCH_INDEX_NAME=contoso-trek-product-info-01-index
170178
171179
az containerapp create \

app/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
azure-identity==1.16.0
22
ipykernel==6.29.4
33
Jinja2==3.1.4
4-
openai==1.26.0
4+
openai==1.28.1
55
python-dotenv==1.0.1
66
requests==2.31.0
77
streamlit==1.34.0

0 commit comments

Comments
 (0)