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: docs/deploy_existing.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ You should set these values before running `azd up`. Once you've set them, retur
31
31
1. Run `azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION {Version string for existing chat deployment}`. Only needed if your chat deployment model version is not the default '0125'. You definitely need to change this if you changed the model.
32
32
1. Run `azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_SKU {Name of SKU for existing chat deployment}`. Only needed if your chat deployment SKU is not the default 'Standard', like if it is 'GlobalStandard' instead.
33
33
1. Run `azd env set AZURE_OPENAI_EMB_DEPLOYMENT {Name of existing embedding deployment}`. Only needed if your embeddings deployment is not the default 'embedding'.
34
-
1. Run `azd env set AZURE_OPENAI_EMB_MODEL_NAME {Model name of existing embedding deployment}`. Only needed if your embeddings model is not the default 'text-embedding-ada-002'.
35
-
1. Run `azd env set AZURE_OPENAI_EMB_DIMENSIONS {Dimensions for existing embedding deployment}`. Only needed if your embeddings model is not the default 'text-embedding-ada-002'.
34
+
1. Run `azd env set AZURE_OPENAI_EMB_MODEL_NAME {Model name of existing embedding deployment}`. Only needed if your embeddings model is not the default 'text-embedding-3-large'.
35
+
1. Run `azd env set AZURE_OPENAI_EMB_DIMENSIONS {Dimensions for existing embedding deployment}`. Only needed if your embeddings model is not the default 'text-embedding-3-large'.
36
36
1. Run `azd env set AZURE_OPENAI_EMB_DEPLOYMENT_VERSION {Version string for existing embedding deployment}`. If your embeddings deployment is one of the 'text-embedding-3' models, set this to the number 1.
37
37
1. This project does *not* use keys when authenticating to Azure OpenAI. However, if your Azure OpenAI service must have key access enabled for some reason (like for use by other projects), then run `azd env set AZURE_OPENAI_DISABLE_KEYS false`. The default value is `true` so you should only run the command if you need key access.
*[Enabling persistent chat history with Azure Cosmos DB](#enabling-persistent-chat-history-with-azure-cosmos-db)
@@ -121,12 +121,16 @@ This process does *not* delete your previous model deployment. If you want to de
121
121
> [!NOTE]
122
122
> To revert back to a previous model, run the same commands with the previous model name and version.
123
123
124
-
## Using text-embedding-3 models
124
+
## Using different embedding models
125
125
126
-
By default, the deployed Azure web app uses the `text-embedding-ada-002` embedding model. If you want to use one of the text-embedding-3 models, you can do so by following these steps:
126
+
By default, the deployed Azure web app uses the `text-embedding-3-large` embedding model. If you want to use a different embeddig model, you can do so by following these steps:
127
127
128
128
1. Run one of the following commands to set the desired model:
129
129
130
+
```shell
131
+
azd env set AZURE_OPENAI_EMB_MODEL_NAME text-embedding-ada-002
132
+
```
133
+
130
134
```shell
131
135
azd env set AZURE_OPENAI_EMB_MODEL_NAME text-embedding-3-small
132
136
```
@@ -137,32 +141,65 @@ By default, the deployed Azure web app uses the `text-embedding-ada-002` embeddi
137
141
138
142
2. Specify the desired dimensions of the model: (from 256-3072, model dependent)
139
143
144
+
Default dimensions for text-embedding-ada-002
145
+
146
+
```shell
147
+
azd env set AZURE_OPENAI_EMB_DIMENSIONS 1536
148
+
```
149
+
150
+
Default dimensions for text-embedding-3-small
151
+
140
152
```shell
141
-
azd env set AZURE_OPENAI_EMB_DIMENSIONS 256
153
+
azd env set AZURE_OPENAI_EMB_DIMENSIONS 1536
142
154
```
143
155
144
-
3. Set the model version to "1" (the only version as of March 2024):
156
+
Default dimensions for text-embedding-3-large
157
+
158
+
```shell
159
+
azd env set AZURE_OPENAI_EMB_DIMENSIONS 3072
160
+
```
161
+
162
+
3. Set the model version, depending on the model you are using:
163
+
164
+
For text-embedding-ada-002:
165
+
166
+
```shell
167
+
azd env set AZURE_OPENAI_EMB_DEPLOYMENT_VERSION 2
168
+
```
169
+
170
+
For text-embedding-3-small and text-embedding-3-large:
145
171
146
172
```shell
147
173
azd env set AZURE_OPENAI_EMB_DEPLOYMENT_VERSION 1
148
174
```
149
175
150
-
4. When prompted during `azd up`, make sure to selecta region for the OpenAI resource group location that supports the text-embedding-3 models. There are [limited regions available](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#embeddings-models).
176
+
4. To set the embedding model deployment SKU name, run this command with [the desired SKU name](https://learn.microsoft.com/azure/ai-services/openai/how-to/deployment-types#deployment-types).
177
+
178
+
For GlobalStandard:
179
+
180
+
```bash
181
+
azd env set AZURE_OPENAI_EMB_DEPLOYMENT_SKU GlobalStandard
182
+
```
183
+
184
+
For Standard:
185
+
186
+
```bash
187
+
azd env set AZURE_OPENAI_EMB_DEPLOYMENT_SKU Standard
188
+
```
189
+
190
+
5. When prompted during `azd up`, make sure to selecta region for the OpenAI resource group location that supports the desired embedding model and deployment SKU. There are [limited regions available](https://learn.microsoft.com/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#models-by-deployment-type).
151
191
152
192
If you have already deployed:
153
193
154
194
* You'll need to change the deployment name by running `azd env set AZURE_OPENAI_EMB_DEPLOYMENT <new-deployment-name>`
155
195
* You'll need to create a new index, and re-index all of the data using the new model. You can either delete the current index in the Azure Portal, or create an index with a different name by running `azd env set AZURE_SEARCH_INDEX new-index-name`. When you next run `azd up`, the new index will be created and the data will be re-indexed.
156
196
* If your OpenAI resource is not in one of the supported regions, you should delete `openAiResourceGroupLocation` from `.azure/YOUR-ENV-NAME/config.json`. When running `azd up`, you will be prompted to selecta new region.
157
197
158
-
>![NOTE]
159
-
> The text-embedding-3 models are not currently supported by the integrated vectorization feature.
160
-
161
-
## Enabling GPT-4 Turbo with Vision
198
+
## Enabling GPT vision feature
162
199
163
200
⚠️ This feature is not currently compatible with [integrated vectorization](#enabling-integrated-vectorization).
164
201
165
-
This section covers the integration of GPT-4 Vision with Azure AI Search. Learn how to enhance your search capabilities with the power of image and text indexing, enabling advanced search functionalities over diverse document types. For a detailed guide on setup and usage, visit our [Enabling GPT-4 Turbo with Vision](gpt4v.md) page.
202
+
This section covers the integration of GPT vision models with Azure AI Search. Learn how to enhance your search capabilities with the power of image and text indexing, enabling advanced search functionalities over diverse document types. For a detailed guide on setup and usage, visit our page on [Using GPT vision model with RAG approach](gpt4v.md).
166
203
167
204
## Enabling media description with Azure Content Understanding
Copy file name to clipboardExpand all lines: docs/gpt4v.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,10 @@ For more details on how this feature works, read [this blog post](https://techco
21
21
22
22
* Create a [AI Vision account in Azure Portal first](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision), so that you can agree to the Responsible AI terms for that resource. You can delete that account after agreeing.
23
23
* The ability to deploy a gpt-4o model in the [supported regions](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#standard-deployment-model-availability). If you're not sure, try to create a gpt-4o deployment from your Azure OpenAI deployments page.
24
-
* Ensure that you can deploy the Azure OpenAI resource group in [a region where all required components are available](https://learn.microsoft.com/azure/cognitive-services/openai/concepts/models#model-summary-table-and-region-availability):
24
+
* Ensure that you can deploy the Azure OpenAI resource group in [a region and deployment SKU where all required components are available](https://learn.microsoft.com/azure/cognitive-services/openai/concepts/models#model-summary-table-and-region-availability):
25
25
* Azure OpenAI models
26
26
* gpt-4o-mini
27
-
* text-embedding-ada-002
27
+
* text-embedding-3-large
28
28
* gpt-4o (for vision/evaluation features)
29
29
*[Azure AI Vision](https://learn.microsoft.com/azure/ai-services/computer-vision/)
0 commit comments