Skip to content

Commit ed513c1

Browse files
committed
adding note
1 parent 287a0b6 commit ed513c1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ If you are using a published [web app](./use-web-app.md), you need to redeploy i
8383

8484
When using the API, pass the `filter` parameter in each API request. For example:
8585

86+
> [!IMPORTANT]
87+
> The following is for example only. If you use an API key, store it securely somewhere else, such as in [Azure Key Vault](/azure/key-vault/general/overview). Don't include the API key directly in your code, and never post it publicly.
88+
89+
For more information about AI services security, see [Authenticate requests to Azure AI services](/azure/ai-services/authentication).
90+
8691
```json
8792
{
8893
"messages": [
@@ -91,13 +96,13 @@ When using the API, pass the `filter` parameter in each API request. For example
9196
"content": "who is my manager?"
9297
}
9398
],
94-
"dataSources": [
99+
"data_sources": [
95100
{
96-
"type": "AzureCognitiveSearch",
101+
"type": "azure_search",
97102
"parameters": {
98-
"endpoint": "'$AZURE_AI_SEARCH_ENDPOINT'",
99-
"key": "'$AZURE_AI_SEARCH_API_KEY'",
100-
"indexName": "'$AZURE_AI_SEARCH_INDEX'",
103+
"endpoint": "<AZURE_AI_SEARCH_ENDPOINT>",
104+
"key": "<AZURE_AI_SEARCH_API_KEY>",
105+
"index_name": "<AZURE_AI_SEARCH_INDEX>",
101106
"filter": "my_group_ids/any(g:search.in(g, 'group_id1, group_id2'))"
102107
}
103108
}

0 commit comments

Comments
 (0)