Skip to content

Commit

Permalink
Minor updates to documentation and dependencies (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfmoore authored May 11, 2024
1 parent d85f039 commit 809876d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
azure-identity==1.16.0
ipykernel==6.29.4
Jinja2==3.1.4
openai==1.26.0
openai==1.28.1
python-dotenv==1.0.1
requests==2.31.0
stop-words==2018.7.23
Expand Down
22 changes: 15 additions & 7 deletions .github/docs/step-by-step-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,23 @@ Before implementing this example scenario the following is needed:
## 1.2. Deploy Azure resources

1. Run the following command to get your Object ID of your Azure AD user.
1. Before running the notebooks ensure you authenticate with the Azure CLI by running the following command:

```bash
az login --tenant <your-tenant-id>
```

This will open a browser window to authenticate with the Azure CLI.

2. Run the following command to get your Object ID of your Azure AD user.

```bash
az ad signed-in-user show --query "id" -o tsv
```

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

2. Click the `Deploy to Azure` button below to deploy the Azure resources required for these example scenarios.
3. Click the `Deploy to Azure` button below to deploy the Azure resources required for these example scenarios.

[![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)

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

```bash
AZURE_SUBSCRIPTION_ID=<your-subscription-id>
AZURE_RESOURCE_GROUP=<your-resource-group>
AZURE_RESOURCE_GROUP_NAME=<your-resource-group>
AZURE_OPENAI_API_BASE=<your-open-ai-service-name>.openai.azure.com
AZURE_AI_SEARCH_ENDPOINT=<your-search-service-name>.search.windows.net
AZURE_OPENAI_API_BASE=https://<your-open-ai-service-name>.openai.azure.com
AZURE_AI_SEARCH_ENDPOINT=https://<your-search-service-name>.search.windows.net
AZURE_OPENAI_CHAT_DEPLOYMENT=gpt-35-turbo-16k-0613
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-ada-002-2
Expand Down Expand Up @@ -161,11 +169,11 @@ The [Getting Started](.github/docs/getting-started.md) section of this repositor
export USER_ASSIGNED_IDENTITY_ID=$(az identity show --resource-group $RESOURCE_GROUP_NAME --name $USER_ASSIGNED_IDENTITY_NAME | jq '.id' -r)
export USER_ASSIGNED_IDENTITY_CLIENT_ID=$(az identity show --resource-group $RESOURCE_GROUP_NAME --name $USER_ASSIGNED_IDENTITY_NAME | jq '.clientId' -r)
export AZURE_OPENAI_API_BASE=<your-open-ai-service-name>.openai.azure.com # can be found on the Azure Portal
export AZURE_OPENAI_API_BASE=https://<your-open-ai-service-name>.openai.azure.com # can be found on the Azure Portal
export AZURE_OPENAI_CHAT_DEPLOYMENT=gpt-35-turbo-16k-0613
export AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-ada-002-2
export AZURE_AI_SEARCH_ENDPOINT=<your-search-service-name>.search.windows.net # can be found on the Azure Portal
export AZURE_AI_SEARCH_ENDPOINT=https://<your-search-service-name>.search.windows.net # can be found on the Azure Portal
export AZURE_AI_SEARCH_INDEX_NAME=contoso-trek-product-info-01-index
az containerapp create \
Expand Down
2 changes: 1 addition & 1 deletion app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
azure-identity==1.16.0
ipykernel==6.29.4
Jinja2==3.1.4
openai==1.26.0
openai==1.28.1
python-dotenv==1.0.1
requests==2.31.0
streamlit==1.34.0
Expand Down

0 comments on commit 809876d

Please sign in to comment.