You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/includes/create-env-file-tutorial.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ CHAT_MODEL="gpt-4o-mini"
23
23
EVALUATION_MODEL="gpt-4o-mini"
24
24
```
25
25
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
+
26
28
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.
27
29
28
30
:::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.":::
Copy file name to clipboardExpand all lines: articles/ai-studio/tutorials/copilot-sdk-create-resources.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,30 @@ To create a project in [Azure AI Studio](https://ai.azure.com), follow these ste
44
44
1. Go to the **Home** page of [Azure AI Studio](https://ai.azure.com).
45
45
1. Select **+ Create project**.
46
46
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.
47
48
1. Select **Create project**.
48
49
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
+
49
71
## Create an Azure AI Search service
50
72
51
73
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.
80
102
1. Otherwise, select **New connection** and then **Azure AI Search**.
81
103
1. Find your Azure AI Search service in the options and select **Add connection**.
82
104
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
+
83
109
1. Select **Add connection**.
84
110
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
+
87
112
88
113
## <aname="installs"></a> Install the Azure CLI and sign in
89
114
@@ -113,25 +138,6 @@ Create a folder for your work. Create a file called **config.py** in this folder
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, selectthe 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.
0 commit comments