Skip to content

Commit 0efca20

Browse files
committed
gstatMerge branch 'main' of https://github.com/microsoftdocs/azure-docs-pr into payment-hsm
2 parents d288b57 + 2ae623d commit 0efca20

File tree

468 files changed

+4269
-3109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

468 files changed

+4269
-3109
lines changed

articles/ai-services/containers/azure-kubernetes-recipe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: aahill
77
manager: nitinme
88
ms.service: azure-ai-language
99
ms.topic: conceptual
10-
ms.date: 01/10/2022
10+
ms.date: 02/26/2024
1111
ms.author: aahi
1212
ms.custom: devx-track-azurecli
1313
ms.devlang: azurecli

articles/ai-services/language-service/native-document-support/use-native-documents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ms.author: lajanuar
2626
> * Azure AI Language public preview releases provide early access to features that are in active development.
2727
> * Features, approaches, and processes may change, prior to General Availability (GA), based on user feedback.
2828
29-
Azure AI Language is a cloud-based service that applies Natural Language Processing (NLP) features to text-based data. The native document support capability enables you to send API requests asynchronously, using an HTTP POST request body to send your data and HTTP GET request query string to retrieve the processed data.
29+
Azure AI Language is a cloud-based service that applies Natural Language Processing (NLP) features to text-based data. The native document support capability enables you to send API requests asynchronously, using an HTTP POST request body to send your data and HTTP GET request query string to retrieve the status results. Your processed documents are located in your Azure Blob Storage target container.
3030

3131
A native document refers to the file format used to create the original document such as Microsoft Word (docx) or a portable document file (pdf). Native document support eliminates the need for text preprocessing before using Azure AI Language resource capabilities. Currently, native document support is available for the following capabilities:
3232

articles/ai-services/language-service/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: aahill
77
manager: nitinme
88
ms.service: azure-ai-language
99
ms.topic: whats-new
10-
ms.date: 01/31/2024
10+
ms.date: 02/26/2024
1111
ms.author: aahi
1212
---
1313

166 KB
Loading

articles/ai-services/openai/concepts/use-your-data.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: azure-ai-openai
88
ms.topic: quickstart
99
author: aahill
1010
ms.author: aahi
11-
ms.date: 01/09/2023
11+
ms.date: 02/26/2024
1212
recommendations: false
1313
ms.custom: references_regions
1414
---
@@ -125,7 +125,12 @@ If you're using your own index, you will be prompted in the Azure OpenAI Studio
125125

126126
In this example, the fields mapped to **Content data** and **Title** provide information to the model to answer questions. **Title** is also used to title citation text. The field mapped to **File name** generates the citation names in the response.
127127

128-
Mapping these fields correctly helps ensure the model has better response and citation quality. You can additionally configure this [in the API](../reference.md#completions-extensions) using the `fieldsMapping` parameter.
128+
Mapping these fields correctly helps ensure the model has better response and citation quality. You can additionally configure this [in the API](../references/on-your-data.md) using the `fieldsMapping` parameter.
129+
130+
### Search filter (API)
131+
132+
If you want to implement additional value-based criteria for query execution, you can set up a search filter using the `filter` parameter in the [REST API](../references/azure-search.md).
133+
129134

130135
# [Azure Cosmos DB for MongoDB vCore](#tab/mongo-db)
131136

@@ -232,7 +237,7 @@ Once you have added the URL/web address for data ingestion, the web pages from y
232237

233238
Data is ingested into Azure AI search using the following process:
234239

235-
1. Ingestion assets are created in Azure AI Search resource and Azure storage account. Currently these assets are: indexers, indexes, data sources, a [custom skill](/azure/search/cognitive-search-custom-skill-interface) in the search resource, and a container (later called the chunks container) in the Azure storage account. You can specify the input Azure storage container using the [Azure OpenAI studio](https://oai.azure.com/), or the [ingestion API (preview)](../reference.md#start-an-ingestion-job-preview).
240+
1. Ingestion assets are created in Azure AI Search resource and Azure storage account. Currently these assets are: indexers, indexes, data sources, a [custom skill](/azure/search/cognitive-search-custom-skill-interface) in the search resource, and a container (later called the chunks container) in the Azure storage account. You can specify the input Azure storage container using the [Azure OpenAI studio](https://oai.azure.com/), or the [ingestion API (preview)](/rest/api/azureopenai/ingestion-jobs).
236241

237242
2. Data is read from the input container, contents are opened and chunked into small chunks with a maximum of 1,024 tokens each. If vector search is enabled, the service calculates the vector representing the embeddings on each chunk. The output of this step (called the "preprocessed" or "chunked" data) is stored in the chunks container created in the previous step.
238243

@@ -261,7 +266,7 @@ Use the following sections to learn how to improve the quality of responses give
261266

262267
### Runtime parameters
263268

264-
You can modify the following additional settings in the **Data parameters** section in Azure OpenAI Studio and [the API](../reference.md#completions-extensions). You don't need to reingest your data when you update these parameters.
269+
You can modify the following additional settings in the **Data parameters** section in Azure OpenAI Studio and [the API](../references/on-your-data.md). You don't need to reingest your data when you update these parameters.
265270

266271

267272
|Parameter name | Description |
@@ -274,7 +279,7 @@ You can modify the following additional settings in the **Data parameters** sect
274279

275280
You can define a system message to steer the model's reply when using Azure OpenAI On Your Data. This message allows you to customize your replies on top of the retrieval augmented generation (RAG) pattern that Azure OpenAI On Your Data uses. The system message is used in addition to an internal base prompt to provide the experience. To support this, we truncate the system message after a specific [number of tokens](#token-usage-estimation-for-azure-openai-on-your-data) to ensure the model can answer questions using your data. If you are defining extra behavior on top of the default experience, ensure that your system prompt is detailed and explains the exact expected customization.
276281

277-
Once you select add your dataset, you can use the **System message** section in the Azure OpenAI Studio, or the `roleInformation` [parameter in the API](../reference.md#completions-extensions).
282+
Once you select add your dataset, you can use the **System message** section in the Azure OpenAI Studio, or the `roleInformation` [parameter in the API](../references/on-your-data.md).
278283

279284
:::image type="content" source="../media/use-your-data/system-message.png" alt-text="A screenshot showing the system message option in Azure OpenAI Studio." lightbox="../media/use-your-data/system-message.png":::
280285

@@ -361,9 +366,9 @@ You can send a streaming request using the `stream` parameter, allowing data to
361366
{
362367
"type": "AzureCognitiveSearch",
363368
"parameters": {
364-
"endpoint": "'$SearchEndpoint'",
365-
"key": "'$SearchKey'",
366-
"indexName": "'$SearchIndex'"
369+
"endpoint": "'$AZURE_AI_SEARCH_ENDPOINT'",
370+
"key": "'$AZURE_AI_SEARCH_API_KEY'",
371+
"indexName": "'$AZURE_AI_SEARCH_INDEX'"
367372
}
368373
}
369374
],
@@ -386,9 +391,9 @@ When you chat with a model, providing a history of the chat will help the model
386391
{
387392
"type": "AzureCognitiveSearch",
388393
"parameters": {
389-
"endpoint": "'$SearchEndpoint'",
390-
"key": "'$SearchKey'",
391-
"indexName": "'$SearchIndex'"
394+
"endpoint": "'$AZURE_AI_SEARCH_ENDPOINT'",
395+
"key": "'$AZURE_AI_SEARCH_API_KEY'",
396+
"indexName": "'$AZURE_AI_SEARCH_INDEX'"
392397
}
393398
}
394399
],

articles/ai-services/openai/encrypt-data-at-rest.md

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: mrbullwinkle
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: conceptual
9-
ms.date: 11/14/2022
9+
ms.date: 2/21/2024
1010
ms.author: mbullwin
1111
---
1212

@@ -22,37 +22,66 @@ Azure OpenAI is part of Azure AI services. Azure AI services data is encrypted a
2222

2323
By default, your subscription uses Microsoft-managed encryption keys. There's also the option to manage your subscription with your own keys called customer-managed keys (CMK). CMK offers greater flexibility to create, rotate, disable, and revoke access controls. You can also audit the encryption keys used to protect your data.
2424

25-
## Customer-managed keys with Azure Key Vault
25+
## Use customer-managed keys with Azure Key Vault
2626

2727
Customer-managed keys (CMK), also known as Bring your own key (BYOK), offer greater flexibility to create, rotate, disable, and revoke access controls. You can also audit the encryption keys used to protect your data.
2828

2929
You must use Azure Key Vault to store your customer-managed keys. You can either create your own keys and store them in a key vault, or you can use the Azure Key Vault APIs to generate keys. The Azure AI services resource and the key vault must be in the same region and in the same Microsoft Entra tenant, but they can be in different subscriptions. For more information about Azure Key Vault, see [What is Azure Key Vault?](../../key-vault/general/overview.md).
3030

31-
To enable customer-managed keys, you must also enable both the **Soft Delete** and **Do Not Purge** properties on the key vault.
31+
To enable customer-managed keys, the key vault containing your keys must meet these requirements:
3232

33-
Only RSA keys of size 2048 are supported with Azure AI services encryption. For more information about keys, see **Key Vault keys** in [About Azure Key Vault keys, secrets and certificates](../../key-vault/general/about-keys-secrets-certificates.md).
33+
- You must enable both the **Soft Delete** and **Do Not Purge** properties on the key vault.
34+
- If you use the [Key Vault firewall](/azure/key-vault/general/access-behind-firewall), you must allow trusted Microsoft services to access the key vault.
35+
- The key vault must use [legacy access policies](/azure/key-vault/general/assign-access-policy).
36+
- You must grant the Azure OpenAI resource's system-assigned managed identity the following permissions on your key vault: *get key*, *wrap key*, *unwrap key*.
3437

35-
## Enable customer-managed keys for your resource
38+
Only RSA and RSA-HSM keys of size 2048 are supported with Azure AI services encryption. For more information about keys, see **Key Vault keys** in [About Azure Key Vault keys, secrets and certificates](../../key-vault/general/about-keys-secrets-certificates.md).
39+
40+
### Enable your Azure OpenAI resource's managed identity
41+
42+
1. Go to your Azure AI services resource.
43+
1. On the left, under **Resource Management**, select **Identity**.
44+
1. Switch the system-assigned managed identity status to **On**.
45+
1. Save your changes, and confirm that you want to enable the system-assigned managed identity.
46+
47+
### Configure your key vault's access permissions
48+
49+
1. In the Azure portal, go to your key vault.
50+
1. On the left, select **Access policies**.
51+
52+
If you see a message advising you that access policies aren't available, [reconfigure your key vault to use legacy access policies](/azure/key-vault/general/assign-access-policy) before continuing.
53+
1. Select **Create**.
54+
1. Under **Key permissions**, select **Get**, **Wrap Key**, and **Unwrap Key**. Leave the remaining checkboxes unselected.
55+
56+
:::image type="content" source="../media/cognitive-services-encryption/key-vault-access-policy.png" alt-text="Screenshot of the Azure portal page for a key vault access policy. The permissions selected are Get Key, Wrap Key, and Unwrap Key.":::
57+
58+
1. Select **Next**.
59+
1. Search for the name of your Azure OpenAI resource and select its managed identity.
60+
1. Select **Next**.
61+
1. Select **Next** to skip configuring any application settings.
62+
1. Select **Create**.
63+
64+
### Enable customer-managed keys on your Azure OpenAI resource
3665

3766
To enable customer-managed keys in the Azure portal, follow these steps:
3867

3968
1. Go to your Azure AI services resource.
40-
1. On the left, select **Encryption**.
69+
1. On the left, under **Resource Management**, select **Encryption**.
4170
1. Under **Encryption type**, select **Customer Managed Keys**, as shown in the following screenshot.
4271

43-
> [!div class="mx-imgBorder"]
44-
> ![Screenshot of create a resource user experience](./media/encryption/encryption.png)
72+
> [!div class="mx-imgBorder"]
73+
> ![Screenshot of create a resource user experience.](./media/encryption/encryption.png)
4574
46-
## Specify a key
75+
### Specify a key
4776

4877
After you enable customer-managed keys, you can specify a key to associate with the Azure AI services resource.
4978

50-
### Specify a key as a URI
79+
#### Specify a key as a URI
5180

5281
To specify a key as a URI, follow these steps:
5382

5483
1. In the Azure portal, go to your key vault.
55-
1. Under **Settings**, select **Keys**.
84+
1. Under **Objects**, select **Keys**.
5685
1. Select the desired key, and then select the key to view its versions. Select a key version to view the settings for that version.
5786
1. Copy the **Key Identifier** value, which provides the URI.
5887

@@ -67,9 +96,9 @@ To specify a key as a URI, follow these steps:
6796
1. Under **Subscription**, select the subscription that contains the key vault.
6897
1. Save your changes.
6998

70-
### Specify a key from a key vault
99+
#### Select a key from a key vault
71100

72-
To specify a key from a key vault, first make sure that you have a key vault that contains a key. Then follow these steps:
101+
To select a key from a key vault, first make sure that you have a key vault that contains a key. Then follow these steps:
73102

74103
1. Go to your Azure AI services resource, and then select **Encryption**.
75104
1. Under **Encryption key**, select **Select from Key Vault**.

articles/ai-services/openai/how-to/migration.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: How to migrate to OpenAI Python v1.x
33
titleSuffix: Azure OpenAI Service
4-
description: Learn about migrating to the latest release of the OpenAI Python library with Azure OpenAI
4+
description: Learn about migrating to the latest release of the OpenAI Python library with Azure OpenAI.
55
author: mrbullwinkle
66
ms.author: mbullwin
77
ms.service: azure-ai-openai
88
ms.custom: devx-track-python
99
ms.topic: how-to
10-
ms.date: 11/15/2023
10+
ms.date: 02/26/2024
1111
manager: nitinme
1212
---
1313

@@ -17,7 +17,7 @@ OpenAI has just released a new version of the [OpenAI Python API library](https:
1717

1818
## Updates
1919

20-
- This is a completely new version of the OpenAI Python API library.
20+
- This is a new version of the OpenAI Python API library.
2121
- Starting on November 6, 2023 `pip install openai` and `pip install openai --upgrade` will install `version 1.x` of the OpenAI Python library.
2222
- Upgrading from `version 0.28.1` to `version 1.x` is a breaking change, you'll need to test and update your code.
2323
- Auto-retry with backoff if there's an error
@@ -259,7 +259,7 @@ print(completion.model_dump_json(indent=2))
259259

260260
## Use your data
261261

262-
For the full configuration steps that are required to make these code examples work, please consult the [use your data quickstart](../use-your-data-quickstart.md).
262+
For the full configuration steps that are required to make these code examples work, consult the [use your data quickstart](../use-your-data-quickstart.md).
263263
# [OpenAI Python 0.28.1](#tab/python)
264264

265265
```python
@@ -270,10 +270,10 @@ import requests
270270

271271
dotenv.load_dotenv()
272272

273-
openai.api_base = os.environ.get("AOAIEndpoint")
273+
openai.api_base = os.environ.get("AZURE_OPENAI_ENDPOINT")
274274
openai.api_version = "2023-08-01-preview"
275275
openai.api_type = 'azure'
276-
openai.api_key = os.environ.get("AOAIKey")
276+
openai.api_key = os.environ.get("AZURE_OPENAI_API_KEY")
277277

278278
def setup_byod(deployment_id: str) -> None:
279279
"""Sets up the OpenAI Python SDK to use your own data for the chat endpoint.
@@ -299,19 +299,19 @@ def setup_byod(deployment_id: str) -> None:
299299

300300
openai.requestssession = session
301301

302-
aoai_deployment_id = os.environ.get("AOAIDeploymentId")
302+
aoai_deployment_id = os.environ.get("AZURE_OPEN_AI_DEPLOYMENT_ID")
303303
setup_byod(aoai_deployment_id)
304304

305305
completion = openai.ChatCompletion.create(
306306
messages=[{"role": "user", "content": "What are the differences between Azure Machine Learning and Azure AI services?"}],
307-
deployment_id=os.environ.get("AOAIDeploymentId"),
307+
deployment_id=os.environ.get("AZURE_OPEN_AI_DEPLOYMENT_ID"),
308308
dataSources=[ # camelCase is intentional, as this is the format the API expects
309309
{
310310
"type": "AzureCognitiveSearch",
311311
"parameters": {
312-
"endpoint": os.environ.get("SearchEndpoint"),
313-
"key": os.environ.get("SearchKey"),
314-
"indexName": os.environ.get("SearchIndex"),
312+
"endpoint": os.environ.get("AZURE_AI_SEARCH_ENDPOINT"),
313+
"key": os.environ.get("AZURE_AI_SEARCH_API_KEY"),
314+
"indexName": os.environ.get("AZURE_AI_SEARCH_INDEX"),
315315
}
316316
}
317317
]
@@ -328,9 +328,9 @@ import dotenv
328328

329329
dotenv.load_dotenv()
330330

331-
endpoint = os.environ.get("AOAIEndpoint")
332-
api_key = os.environ.get("AOAIKey")
333-
deployment = os.environ.get("AOAIDeploymentId")
331+
endpoint = os.environ.get("AZURE_OPENAI_ENDPOINT")
332+
api_key = os.environ.get("AZURE_OPENAI_API_KEY")
333+
deployment = os.environ.get("AZURE_OPEN_AI_DEPLOYMENT_ID")
334334

335335
client = openai.AzureOpenAI(
336336
base_url=f"{endpoint}/openai/deployments/{deployment}/extensions",
@@ -351,9 +351,9 @@ completion = client.chat.completions.create(
351351
{
352352
"type": "AzureCognitiveSearch",
353353
"parameters": {
354-
"endpoint": os.environ["SearchEndpoint"],
355-
"key": os.environ["SearchKey"],
356-
"indexName": os.environ["SearchIndex"]
354+
"endpoint": os.environ["AZURE_AI_SEARCH_ENDPOINT"],
355+
"key": os.environ["AZURE_AI_SEARCH_API_KEY"],
356+
"indexName": os.environ["AZURE_AI_SEARCH_INDEX"]
357357
}
358358
}
359359
]

articles/ai-services/openai/how-to/use-web-app.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: azure-ai-openai
77
ms.topic: how-to
88
author: aahill
99
ms.author: aahi
10-
ms.date: 02/09/2024
10+
ms.date: 02/23/2024
1111
recommendations: false
1212
---
1313

@@ -33,7 +33,7 @@ Along with Azure OpenAI Studio, APIs and SDKs, you can also use the available st
3333

3434
## Web app customization
3535

36-
You can customize the app's frontend and backend logic. For example, you could change the icon that appears in the center of the app by updating `/frontend/src/assets/Contoso.svg` and then redeploying the app [using the Azure CLI](https://github.com/microsoft/sample-app-aoai-chatGPT#deploy-with-the-azure-cli). See the source code for the web app, and more information on [GitHub](https://github.com/microsoft/sample-app-aoai-chatGPT).
36+
You can customize the app's frontend and backend logic. The app provides several [environment variables](https://github.com/microsoft/sample-app-aoai-chatGPT#common-customization-scenarios-eg-updating-the-default-chat-logo-and-headers) for common customization scenarios such as changing the icon in the app. See the source code for the web app, and more information on [GitHub](https://github.com/microsoft/sample-app-aoai-chatGPT).
3737

3838
When customizing the app, we recommend:
3939

@@ -43,6 +43,8 @@ When customizing the app, we recommend:
4343

4444
- When you rotate API keys for your Azure OpenAI or Azure AI Search resource, be sure to update the app settings for each of your deployed apps to use the new keys.
4545

46+
Sample source code for the web app is available on [GitHub](https://github.com/microsoft/sample-app-aoai-chatGPT). Source code is provided "as is" and as a sample only. Customers are responsible for all customization and implementation of their web apps.
47+
4648
### Updating the web app
4749

4850
We recommend pulling changes from the `main` branch for the web app's source code frequently to ensure you have the latest bug fixes, API version, and improvements.

articles/ai-services/openai/how-to/use-your-data-securely.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ When using the API, pass the `filter` parameter in each API request. For example
9090
{
9191
"type": "AzureCognitiveSearch",
9292
"parameters": {
93-
"endpoint": "'$SearchEndpoint'",
94-
"key": "'$SearchKey'",
95-
"indexName": "'$SearchIndex'",
93+
"endpoint": "'$AZURE_AI_SEARCH_ENDPOINT'",
94+
"key": "'$AZURE_AI_SEARCH_API_KEY'",
95+
"indexName": "'$AZURE_AI_SEARCH_INDEX'",
9696
"filter": "my_group_ids/any(g:search.in(g, 'group_id1, group_id2'))"
9797
}
9898
}

0 commit comments

Comments
 (0)