Skip to content

Commit 3c21a05

Browse files
committed
changes from bug bash
1 parent 47d6e48 commit 3c21a05

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

articles/ai-studio/includes/create-env-file-tutorial.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ CHAT_MODEL="gpt-4o-mini"
2323
EVALUATION_MODEL="gpt-4o-mini"
2424
```
2525

26+
If you changed the name of the models you deployed, or you want to try different models, update those names in this `.env` file.
27+
2628
Find your connection string in the Azure AI Studio project you created in the [AI Studio playground quickstart](../quickstarts/get-started-playground.md). Open the project, then find the connection string on the **Overview** page. Copy the connection string and paste it into the `.env` file.
2729

2830
:::image type="content" source="../media/quickstarts/azure-ai-sdk/connection-string.png" alt-text="Screenshot shows the overview page of a project and the location of the connection string.":::

articles/ai-studio/tutorials/copilot-sdk-create-resources.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,30 @@ To create a project in [Azure AI Studio](https://ai.azure.com), follow these ste
4444
1. Go to the **Home** page of [Azure AI Studio](https://ai.azure.com).
4545
1. Select **+ Create project**.
4646
1. Enter a name for the project. Keep all the other settings as default.
47+
1. Projects are created in hubs. If you don't have one, it will be created for you. If you do have one (or more), the project is created in the most recent hub you've used. If you want to create it in a different place, or you want to create a new hub, select **New hub** and fill out the details.
4748
1. Select **Create project**.
4849

50+
## Deploy models
51+
52+
You need two models to build a RAG-based chat app: an Azure OpenAI chat model (`gpt-4o-mini`) and an Azure OpenAI embedding model (`text-embedding-ada-002`). Deploy these models in your Azure AI Studio project, using this set of steps for each model.
53+
54+
These steps deploy a model to a real-time endpoint from the AI Studio [model catalog](../how-to/model-catalog-overview.md):
55+
56+
1. Sign in to [Azure AI Studio](https://ai.azure.com).
57+
1. Studio remembers where you were last, so you should now see the project you created at the beginning of this tutorial. If you instead see a list of projects, select the one you created for this tutorial.
58+
1. On the left navigation pane, select **Model catalog**.
59+
1. Select the **gpt-4o-mini** model from the list of models. You can use the search bar to find it.
60+
61+
:::image type="content" source="../media/tutorials/chat/select-model.png" alt-text="Screenshot of the model selection page." lightbox="../media/tutorials/chat/select-model.png":::
62+
63+
1. On the model details page, select **Deploy**.
64+
65+
:::image type="content" source="../media/tutorials/chat/deploy-model.png" alt-text="Screenshot of the model details page with a button to deploy the model." lightbox="../media/tutorials/chat/deploy-model.png":::
66+
67+
1. Leave the default **Deployment name**. select **Deploy**. Or, if the model isn't available in your region, a different region is selected for you and connected to your project. In this case, select **Connect and deploy**.
68+
69+
After you deploy the **gpt-4o-mini**, repeat the steps to deploy the **text-embedding-ada-002** model.
70+
4971
## Create an Azure AI Search service
5072

5173
The goal with this application is to ground the model responses in your custom data. The search index is used to retrieve relevant documents based on the user's question.
@@ -80,10 +102,13 @@ In the Azure AI Studio, check for an Azure AI Search connected resource.
80102
1. Otherwise, select **New connection** and then **Azure AI Search**.
81103
1. Find your Azure AI Search service in the options and select **Add connection**.
82104
1. Use **API key** for **Authentication**.
105+
106+
> [!NOTE]
107+
> You can instead use **Microsoft Entra ID** for **Authentication**. If you do this, you must also configure access control for the Azure AI Search service. Assign yourself the **Search Index Data Contributor** and **Search Service Contributor** roles. If you don't know how to do this, or don't have the necessary permissions, use the **API key** for **Authentication**.
108+
83109
1. Select **Add connection**.
84110

85-
> [!NOTE]
86-
> You can instead use **Microsoft Entra ID** for **Authentication**. If you do this, you must also configure access control for the Azure AI Search service. Assign yourself the **Cognitive Services OpenAI User** role. If you don't know how to do this, or don't have the necessary permissions, use the **API key** for **Authentication**.
111+
87112

88113
## <a name="installs"></a> Install the Azure CLI and sign in
89114

@@ -113,25 +138,6 @@ Create a folder for your work. Create a file called **config.py** in this folder
113138

114139
:::code language="python" source="~/azureai-samples-nov2024/scenarios/rag/custom-rag-app/config.py":::
115140

116-
## Deploy models
117-
118-
You need two models to build a RAG-based chat app: an Azure OpenAI chat model (`gpt-4o-mini`) and an Azure OpenAI embedding model (`text-embedding-ada-002`). Deploy these models in your Azure AI Studio project, using this set of steps for each model.
119-
120-
These steps deploy a model to a real-time endpoint from the AI Studio [model catalog](../how-to/model-catalog-overview.md):
121-
122-
1. Sign in to [Azure AI Studio](https://ai.azure.com).
123-
1. Studio remembers where you were last, so you should now see the project you created at the beginning of this tutorial. If you instead see a list of projects, select the one you created for this tutorial.
124-
1. Select the **gpt-4o-mini** model from the list of models. You can use the search bar to find it.
125-
126-
:::image type="content" source="../media/tutorials/chat/select-model.png" alt-text="Screenshot of the model selection page." lightbox="../media/tutorials/chat/select-model.png":::
127-
128-
1. On the model details page, select **Deploy**.
129-
130-
:::image type="content" source="../media/tutorials/chat/deploy-model.png" alt-text="Screenshot of the model details page with a button to deploy the model." lightbox="../media/tutorials/chat/deploy-model.png":::
131-
132-
1. Leave the default **Deployment name**. Select **Connect and deploy**.
133-
134-
After you deploy the **gpt-4o-mini**, repeat the steps to deploy the **text-embedding-ada-002** model.
135141

136142
## Configure environment variables
137143

articles/ai-studio/tutorials/copilot-sdk-evaluate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ In Part 1 of this tutorial series, you created an **.env** file that specifies t
9696
1. Install the required package:
9797

9898
```bash
99-
pip install azure_ai-evaluation[remote]
99+
pip install azure_ai-evaluation[prompts]
100100
```
101101

102102
1. Now run the evaluation script:

0 commit comments

Comments
 (0)