Skip to content

Commit

Permalink
Fixing streamlit lab
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkWme committed Sep 2, 2024
1 parent 3462a98 commit b92283c
Show file tree
Hide file tree
Showing 15 changed files with 80 additions and 2,105 deletions.

This file was deleted.

12 changes: 6 additions & 6 deletions labs/00-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ During these labs, we'll make use of a *Completions* model and an *Embeddings* m

Someone may have already set these up for you to use, however if you need to deploy your own you can follow these instructions.

1. Check if you already have an Azure OpenAI service deployed. Go to the Azure Portal and in the top search bar, enter `openai`. You'll then see **Azure OpenAI** listed under **Services**. Click on **Azure OpenAI** to see all deployed services.
1. Check if you already have an Azure OpenAI Service deployed. Go to the Azure Portal and in the top search bar, enter `openai`. You'll then see **Azure OpenAI** listed under **Services**. Click on **Azure OpenAI** to see all deployed services.

![Alt text](images/search-openai.png)

On the next page, you should see a list of deployed services. If you have one and are able to access it, click on it. Otherwise, click the **+ Create** button at the top of the page to create a new Azure OpenAI service.
On the next page, you should see a list of deployed services. If you have one and are able to access it, click on it. Otherwise, click the **+ Create** button at the top of the page to create a new Azure OpenAI Service.

![Alt text](images/openai-service-list.png)

Expand All @@ -39,11 +39,11 @@ You can see above that we have a *completions* model `gpt-35-turbo` with version
Make a note of both the **deployment name** and the **model name** for each of the two deployments.

## Environment Configuration
We need to update a configuration file in this repo so that the labs are able to make use of your Azure OpenAI service. In the root of this repository, you will see a file named `env.example`. Make a copy of this file in the same location (the root of the repository) and rename the file to `.env` (don't forget the period at the beginning of the filename!)
We need to update a configuration file in this repo so that the labs are able to make use of your Azure OpenAI Service. In the root of this repository, you will see a file named `env.example`. Make a copy of this file in the same location (the root of the repository) and rename the file to `.env` (don't forget the period at the beginning of the filename!)

Here's a detailed list of what you need to enter into the `.env` file and where to find the information you need to supply.

OPTIONAL: The `OPENAI_API_TYPE` value can be set to one of two values, depending on how you plan to authenticate to the Azure OpenAI service. To use an API key, set this to `azure` (default). To use Azure AD authentication, set this to `azure_ad` (currently not supported by this lab)
OPTIONAL: The `OPENAI_API_TYPE` value can be set to one of two values, depending on how you plan to authenticate to the Azure OpenAI Service. To use an API key, set this to `azure` (default). To use Azure AD authentication, set this to `azure_ad` (currently not supported by this lab)

```
OPENAI_API_TYPE = "azure"
Expand Down Expand Up @@ -75,7 +75,7 @@ The `OPENAI_API_VERSION` is used for the Azure OpenAI API to determine which ver
OPENAI_API_VERSION = "2023-09-01-preview"
```

The next sections all relate to the models you have deployed in the Azure OpenAI service.
The next sections all relate to the models you have deployed in the Azure OpenAI Service.

First is `AZURE_OPENAI_COMPLETION_MODEL`. This is the name of the **completions model**. It's likely to be `gpt-35-turbo`, but if you're using a different completions model, provide the name of the model here.

Expand All @@ -87,7 +87,7 @@ Note for this value, it's the name of the **model**, NOT the name of the **deplo
AZURE_OPENAI_COMPLETION_MODEL = "gpt-35-turbo"
```

The next two items are the **deployments** you have created using the Azure OpenAI service. First is the name of the deployment for the completions model and can be found in the **Deployment name** column of the **Deployments** page in Azure AI Studio.
The next two items are the **deployments** you have created using the Azure OpenAI Service. First is the name of the deployment for the completions model and can be found in the **Deployment name** column of the **Deployments** page in Azure AI Studio.

![Alt text](images/completion-deployment.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.12.5"
},
"orig_nbformat": 4
},
Expand Down
10 changes: 4 additions & 6 deletions labs/03-orchestration/02-Embeddings/embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,11 @@
"\n",
"Choose one or more of the following Vector Store and AI Orchestration options:\n",
"\n",
"📣 [Qdrant with Langchain](../03-Qdrant/qdrant.ipynb)\n",
"📣 [Implement Retrieval Augmented Generation with Qdrant as vector store](../03-VectorStore/qdrant.ipynb)\n",
"\n",
"📣 [Azure AI Search with Semantic Kernel and C#](../04-ACS/acs-sk-csharp.ipynb)\n",
"📣 [Implement Retrieval Augmented Generation with Azure CosmosDB as vector store and as semantic cache](../03-VectorStore/mongo.ipynb)\n",
"\n",
"📣 [Azure AI Search with Semantic Kernel and Python](../04-ACS/acs-sk-python.ipynb)\n",
"\n",
"📣 [Azure AI Search with Langchain and Python](../04-ACS/acs-lc-python.ipynb)"
"📣 [Implement Retrieval Augmented Generation with Azure AI Search as vector store with semantic ranking](../03-VectorStore/aisearch.ipynb)"
]
}
],
Expand All @@ -459,7 +457,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.3"
},
"orig_nbformat": 4
},
Expand Down
6 changes: 1 addition & 5 deletions labs/03-orchestration/03-VectorStore/mongo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,7 @@
"source": [
"## Next Section\n",
"\n",
"📣 [Azure AI Search with Semantic Kernel and C#](../04-ACS/acs-sk-csharp.ipynb)\n",
"\n",
"📣 [Azure AI Search with Semantic Kernel and Python](../04-ACS/acs-sk-python.ipynb)\n",
"\n",
"📣 [Azure AI Search with Langchain and Python](../04-ACS/acs-lc-python.ipynb)"
"📣 [Implement Retrieval Augmented Generation with Azure AI Search as vector store with semantic ranking](./aisearch.ipynb)"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions labs/03-orchestration/03-VectorStore/qdrant.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@
"source": [
"## Next Section\n",
"\n",
"📣 [Azure AI Search with Semantic Kernel and C#](../04-ACS/acs-sk-csharp.ipynb)\n",
"📣 [Implement Retrieval Augmented Generation with Azure CosmosDB as vector store and as semantic cache](./mongo.ipynb)\n",
"\n",
"📣 [Azure AI Search with Langchain and Python](../04-ACS/acs-lc-python.ipynb)"
"📣 [Implement Retrieval Augmented Generation with Azure AI Search as vector store with semantic ranking](./aisearch.ipynb)"
]
}
],
Expand Down
Loading

0 comments on commit b92283c

Please sign in to comment.