Skip to content

Commit 82486c7

Browse files
Merge pull request #248524 from aahill/pnet-add
private network support
2 parents 22accb3 + e519f0d commit 82486c7

File tree

6 files changed

+22
-31
lines changed

6 files changed

+22
-31
lines changed

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For documents and datasets with long text, you should use the available [data pr
4343

4444
## Data formats and file types
4545

46-
Azure OpenAI on your data supports the following filetypes:
46+
Azure OpenAI on your data supports the following filetypes (16 MB or less per file):
4747

4848
* `.txt`
4949
* `.md`
@@ -65,9 +65,23 @@ There are some caveats about document structure and how it might affect the qual
6565

6666
This will impact the quality of Azure Cognitive Search and the model response.
6767

68-
## Virtual network support & private link support
68+
## Virtual network support & private network support
6969

70-
Azure OpenAI on your data does not currently support private endpoints.
70+
If you have Azure OpenAI resource protected by a private network, and want to allow Azure OpenAI on your data to access your search service, complete [an application form](https://aka.ms/applyacsvpnaoaionyourdata). The application will be reviewed in five business days and you will be contacted via email about the results. If you are eligible, we will send a private endpoint request to your search service, and you will need to approve the request.
71+
72+
:::image type="content" source="../media/use-your-data/approve-private-endpoint.png" alt-text="A screenshot showing private endpoint approval screen." lightbox="../media/use-your-data/approve-private-endpoint.png":::
73+
74+
Learn more about the [manual approval workflow](/azure/private-link/private-endpoint-overview#access-to-a-private-link-resource-using-approval-workflow).
75+
76+
After you approve the request in your search service, you can start using the [chat completions extensions API](/azure/ai-services/openai/reference#completions-extensions). Public network access can be disabled for that search service. Private network access for Azure OpenAI Studio is not currently supported.
77+
78+
### Azure OpenAI resources in private networks
79+
80+
You can protect Azure OpenAI resource in [private networks](/azure/ai-services/cognitive-services-virtual-networks) the same way as any Azure AI services.
81+
82+
### Storage accounts in private networks
83+
84+
Storage accounts in private networks are currently not supported by Azure OpenAI on your data.
7185

7286
## Azure Role-based access controls (Azure RBAC)
7387

@@ -241,7 +255,7 @@ You can send a streaming request using the `stream` parameter, allowing data to
241255

242256
#### Conversation history for better results
243257

244-
When chatting with a model, providing a history of the chat will help the model return higher quality results.
258+
When you chat with a model, providing a history of the chat will help the model return higher quality results.
245259

246260
```json
247261
{

articles/ai-services/openai/includes/connect-your-data-studio.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Navigate to [Azure OpenAI Studio](https://oai.azure.com/) and sign-in with crede
2424
1. In the pane that appears, select **Upload files** under **Select data source**. Select **Upload files**. Azure OpenAI needs both a storage resource and a search resource to access and index your data.
2525

2626
> [!TIP]
27-
> * For a list of supported data sources, see [Data source options](../concepts/use-your-data.md#data-source-options)
27+
> * See the following resource for more information:
28+
> * [Data source options](../concepts/use-your-data.md#data-source-options)
29+
> * [supported file types and formats](../concepts/use-your-data.md#data-formats-and-file-types)
2830
> * For documents and datasets with long text, we recommend using the available [data preparation script](../concepts/use-your-data.md#ingesting-your-data-into-azure-cognitive-search).
2931
3032
1. For Azure OpenAI to access your storage account, you will need to turn on [Cross-origin resource sharing (CORS)](https://go.microsoft.com/fwlink/?linkid=2237228). If CORS isn't already turned on for the Azure Blob storage resource, select **Turn on CORS**.

articles/ai-services/openai/includes/use-your-data-rest.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ To successfully make a call against Azure OpenAI, you need the following variabl
2323
| `AOAIEndpoint` | This value can be found in the **Keys & Endpoint** section when examining your Azure OpenAI resource from the Azure portal. Alternatively, you can find the value in **Azure AI studio** > **Chat playground** > **Code view**. An example endpoint is: `https://my-resoruce.openai.azure.com`.|
2424
| `AOAIKey` | This value can be found in **Resource management** > **Keys & Endpoint** section when examining your Azure OpenAI resource from the Azure portal. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption. |
2525
| `AOAIDeploymentId` | This value corresponds to the custom name you chose for your deployment when you deployed a model. This value can be found under **Resource Management** > **Deployments** in the Azure portal or alternatively under **Management** > **Deployments** in Azure AI studio.|
26-
| `ChatGptUrl` | The Azure OpenAI ChatGPT endpoint that will be used to fulfill the request. This can be the same endpoint as `AoAIEndpoint`. |
27-
| `ChatGptKey` | If you are using the same Azure OpenAI resource for both `ChatGptUrl` and `AOAIEndpoint`, use the same value as `AOAIKey`. |
2826
| `SearchEndpoint` | This value can be found in the **Overview** section when examining your Azure Cognitive Search resource from the Azure portal. |
2927
| `SearchKey` | This value can be found in the **Resource management** > **Keys & Endpoint** section when examining your Azure Cognitive Search resource from the Azure portal. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption. |
3028
| `SearchIndex` | This value corresponds to the name of the index you created to store your data. You can find it in the **Overview** section when examining your Azure Cognitive Search resource from the Azure portal. |
@@ -43,12 +41,6 @@ setx AOAIKey REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
4341
setx AOAIDeploymentId REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE
4442
```
4543
```CMD
46-
setx ChatGptUrl REPLACE_WITH_YOUR_AOAI_COMPLETION_VALUE_HERE
47-
```
48-
```CMD
49-
setx ChatGptKey REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
50-
```
51-
```CMD
5244
setx SearchEndpoint REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE
5345
```
5446
```CMD
@@ -73,14 +65,6 @@ setx SearchIndex REPLACE_WITH_YOUR_INDEX_NAME_HERE
7365
[System.Environment]::SetEnvironmentVariable('AOAIDeploymentId', 'REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE', 'User')
7466
```
7567

76-
```powershell
77-
[System.Environment]::SetEnvironmentVariable('ChatGptUrl', 'REPLACE_WITH_YOUR_AOAI_COMPLETION_VALUE_HERE', 'User')
78-
```
79-
80-
```powershell
81-
[System.Environment]::SetEnvironmentVariable('ChatGptKey', 'REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE', 'User')
82-
```
83-
8468
```powershell
8569
[System.Environment]::SetEnvironmentVariable('SearchEndpoint', 'REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE', 'User')
8670
```
@@ -105,12 +89,6 @@ export AOAIKey=REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
10589
export AOAIDeploymentId=REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE
10690
```
10791
```Bash
108-
export ChatGptUrl=REPLACE_WITH_YOUR_AOAI_COMPLETION_VALUE_HERE
109-
```
110-
```Bash
111-
export ChatGptKey=REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
112-
```
113-
```Bash
11492
export SearchEndpoint=REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE
11593
```
11694
```Bash
@@ -138,8 +116,6 @@ To trigger a response from the model, you should end with a user message indicat
138116
curl -i -X POST $AOAIEndpoint/openai/deployments/$AOAIDeploymentId/extensions/chat/completions?api-version=2023-06-01-preview \
139117
-H "Content-Type: application/json" \
140118
-H "api-key: $AOAIKey" \
141-
-H "chatgpt_url: $ChatGptUrl" \
142-
-H "chatgpt_key: $ChatGptKey" \
143119
-d \
144120
'
145121
{
59.3 KB
Loading

articles/ai-services/openai/reference.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ POST {your-resource-name}/openai/deployments/{deployment-id}/extensions/chat/com
310310
curl -i -X POST YOUR_RESOURCE_NAME/openai/deployments/YOUR_DEPLOYMENT_NAME/extensions/chat/completions?api-version=2023-06-01-preview \
311311
-H "Content-Type: application/json" \
312312
-H "api-key: YOUR_API_KEY" \
313-
-H "chatgpt_url: YOUR_RESOURCE_URL" \
314-
-H "chatgpt_key: YOUR_API_KEY" \
315313
-d \
316314
'
317315
{

articles/ai-services/openai/whats-new.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ keywords:
1818
## August 2023
1919

2020
- You can now deploy Azure OpenAI on your data to [Power Virtual Agents](/azure/ai-services/openai/concepts/use-your-data#deploying-the-model).
21+
- [Azure OpenAI on your data](./concepts/use-your-data.md#virtual-network-support--private-network-support) now supports private endpoints.
2122

2223
## July 2023
2324

0 commit comments

Comments
 (0)