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/machine-learning/how-to-use-batch-model-openai-embeddings.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,13 +220,13 @@ The conda YAML file, *conda.yml*, contains the following lines:
220
220
221
221
This example uses a scoring script that performs the execution. In batch endpoints, MLflow models don't require a scoring script. But this example extends the capabilities of batch endpoints by:
222
222
223
-
- Allowing the endpoint to read multiple data types, including `csv`, `tsv`, `parquet`, `json`, `jsonl`, `arrow`, and `txt` formats.
223
+
- Allowing the endpoint to read multiple data types, including CSV, TSV, Parquet, JSON, JSON Lines, Arrow, and text formats.
224
224
- Adding some validations to ensure the MLflow model has an OpenAI flavor.
225
225
- Formatting the output in `jsonl` format.
226
-
- Adding an environment variable `AZUREML_BI_TEXT_COLUMN` to optionally control which input field you want to generate embeddings for.
226
+
- Adding the `AZUREML_BI_TEXT_COLUMN` environment variable to optionally control which input field you want to generate embeddings for.
227
227
228
228
> [!TIP]
229
-
> By default, MLflow generates embeddings from the first text column that's available in the input data. If you want to use a different column, set the environment variable `AZUREML_BI_TEXT_COLUMN` to the name of your preferred column. Leave that variable blank if the default behavior works for you.
229
+
> By default, MLflow generates embeddings from the first text column that's available in the input data. If you want to use a different column, set the `AZUREML_BI_TEXT_COLUMN` environment variable to the name of your preferred column. Leave that variable blank if the default behavior works for you.
230
230
231
231
The scoring script, *code/batch_driver.py*, contains the following lines:
232
232
@@ -236,13 +236,13 @@ The scoring script, *code/batch_driver.py*, contains the following lines:
236
236
237
237
To configure the OpenAI deployment, you use environment variables. Specifically, you use the following keys:
238
238
239
+
- `OPENAI_API_TYPE` is the type of API and authentication that you want to use.
239
240
- `OPENAI_API_BASE` is the URL of your Azure OpenAI resource.
240
241
- `OPENAI_API_VERSION` is the version of the API that you plan to use.
241
-
- `OPENAI_API_TYPE` is the type of API and authentication that you want to use.
242
242
243
243
# [Microsoft Entra authentication](#tab/ad)
244
244
245
-
If you use the environment variable `OPENAI_API_TYPE` with a value of `azure_ad`, OpenAI uses Microsoft Entra authentication. No key is required to invoke the OpenAI deployment. Instead, the identity of the cluster is used.
245
+
If you use the `OPENAI_API_TYPE` environment variable with a value of `azure_ad`, OpenAI uses Microsoft Entra authentication. No key is required to invoke the OpenAI deployment. Instead, the identity of the cluster is used.
Copy file name to clipboardExpand all lines: articles/machine-learning/includes/azureml-batch-prereqs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
2
ms.service: azure-machine-learning
3
3
ms.topic: include
4
-
ms.date: 08/19/2024
4
+
ms.date: 11/20/2024
5
5
author: ccrestana
6
6
ms.author: cacrest
7
7
---
8
8
9
9
- An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
10
10
- An Azure Machine Learning workspace. To create a workspace, see [Manage Azure Machine Learning workspaces](../how-to-manage-workspace.md).
11
11
- The following permissions in the Azure Machine Learning workspace:
12
-
- For creating or managing batch endpoints and deployments: Use an Owner, Contributor, or custom role that has been assigned the `Microsoft.MachineLearningServices/workspaces/batchEndpoints/*`actions.
13
-
- For creating Azure Resource Manager deployments in the workspace resource group: Use an Owner, Contributor, or custom role that has been assigned the `Microsoft.Resources/deployments/write`action in the resource group where the workspace is deployed.
12
+
- For creating or managing batch endpoints and deployments: Use an Owner, Contributor, or custom role that has been assigned the `Microsoft.MachineLearningServices/workspaces/batchEndpoints/*`permissions.
13
+
- For creating Azure Resource Manager deployments in the workspace resource group: Use an Owner, Contributor, or custom role that has been assigned the `Microsoft.Resources/deployments/write`permission in the resource group where the workspace is deployed.
14
14
- The Azure Machine Learning CLI or the Azure Machine Learning SDK for Python:
0 commit comments