Skip to content

Commit 759268c

Browse files
committed
mc
2 parents db907c5 + c320ebb commit 759268c

File tree

121 files changed

+1957
-633
lines changed

Some content is hidden

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

121 files changed

+1957
-633
lines changed

.openpublishing.redirection.virtual-desktop.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@
369369
"source_path_from_root": "/articles/virtual-desktop/publish-applications.md",
370370
"redirect_url": "/azure/virtual-desktop/publish-applications-stream-remoteapp",
371371
"redirect_document_id": false
372+
},
373+
{
374+
"source_path_from_root": "/articles/virtual-desktop/autoscale-new-existing-host-pool.md",
375+
"redirect_url": "/azure/virtual-desktop/autoscale-scaling-plan",
376+
"redirect_document_id": true
372377
}
373378
]
374379
}

articles/advisor/advisor-reference-reliability-recommendations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Full list of available reliability recommendations in Advisor.
44
author: mabrahms
55
ms.author: v-mabrahms
66
ms.topic: article
7-
ms.date: 09/27/2023
7+
ms.date: 12/11/2023
88
---
99

1010
# Reliability recommendations
@@ -544,7 +544,7 @@ Learn more about [Front Door Profile - RenewExpiredBYOC (Renew the expired Azure
544544

545545
Deploying two or more medium or large sized instances ensures business continuity during outages caused by planned or unplanned maintenance.
546546

547-
Learn more about [Application gateway - AppGateway (Upgrade your SKU or add more instances to ensure fault tolerance)](https://aka.ms/aa_gatewayrec_learnmore).
547+
Learn more about [Improve the reliability of your application by using Azure Advisor - Ensure application gateway fault tolerance)](/azure/advisor/advisor-high-availability-recommendations#ensure-application-gateway-fault-tolerance).
548548

549549
### Avoid hostname override to ensure site integrity
550550

articles/ai-services/computer-vision/how-to/shelf-analyze.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To analyze a shelf image, do the following steps:
3636
1. Copy the following `curl` command into a text editor.
3737

3838
```bash
39-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/productrecognition/ms-pretrained-product-detection/runs/<your_run_name>?api-version=2023-04-01-preview" -d "{
39+
curl -X PUT -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/productrecognition/ms-pretrained-product-detection/runs/<your_run_name>?api-version=2023-04-01-preview" -d "{
4040
'url':'<your_url_string>'
4141
}"
4242
```

articles/ai-services/computer-vision/how-to/video-retrieval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Azure AI Spatial Analysis Video Retrieval APIs are part of Azure AI Vision and e
2020
## Prerequisites
2121

2222
- Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services).
23-
- Once you have your Azure subscription, [create a Vision resource using the portal](/azure/cognitive-services/cognitive-services-apis-create-account). For this preview, you must create your resource in the East US region.
23+
- Once you have your Azure subscription, [create a Vision resource using the portal](/azure/cognitive-services/cognitive-services-apis-create-account). For this preview, you must create your resource in the one of the following regions - Australia East, Switzerland North, Sweden Central, or East US.
2424
- An Azure Storage resource - [Create one](/azure/storage/common/storage-account-create?tabs=azure-portal)
2525

2626
## Input requirements

articles/ai-services/document-intelligence/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
ms.topic: landing-page
1313
author: laujan
1414
ms.author: lajanuar
15-
ms.date: 07/28/2023
15+
ms.date: 01/02/2024
1616
monikerRange: '<=doc-intel-4.0.0'
1717
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | video | whats-new
1818
# Limits: https://review.learn.microsoft.com/help/contribute/contribute-how-to-write-landing-page?branch=main#limits

articles/ai-services/language-service/concepts/model-lifecycle.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: azure-ai-language
99
ms.custom: event-tier1-build-2022
1010
ms.topic: conceptual
11-
ms.date: 12/19/2023
11+
ms.date: 01/16/2024
1212
ms.author: aahi
1313
---
1414

@@ -33,8 +33,7 @@ Preview models used for preview features do not maintain a minimum retirement pe
3333
By default, API and SDK requests will use the latest Generally Available model. You can use an optional parameter to select the version of the model to be used (not recommended).
3434

3535
> [!NOTE]
36-
> * If you are using a model version that is not listed in the table, then it was subjected to the expiration policy.
37-
> * Abstractive document and conversation summarization do not provide model versions other than the latest available.
36+
> If you are using a model version that is not listed in the table, then it was subjected to the expiration policy.
3837
3938
Use the table below to find which model versions are supported by each feature:
4039

@@ -49,7 +48,7 @@ Use the table below to find which model versions are supported by each feature:
4948
| Question answering | `latest*` | |
5049
| Text Analytics for health | `latest*` | `2022-08-15-preview`, `2023-01-01-preview**`|
5150
| Key phrase extraction | `latest*` | |
52-
| Document summarization - extractive only (preview) | |`2022-08-31-preview**` |
51+
| Summarization | `latest*` | |
5352

5453

5554
\* Latest Generally Available (GA) model version

articles/ai-services/openai/concepts/models.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ These models can only be used with Embedding API requests.
148148
| `text-embedding-ada-002` (version 2) | Australia East <br> Canada East <br> East US <br> East US2 <br> France Central <br> Japan East <br> North Central US <br> Norway East <br> South Central US <br> Sweden Central <br> Switzerland North <br> UK South <br> West Europe <br> West US |8,191 | Sep 2021 | 1,536 |
149149
| `text-embedding-ada-002` (version 1) | East US <br> South Central US <br> West Europe |2,046 | Sep 2021 | 1,536 |
150150

151+
> [!NOTE]
152+
> When sending an array of inputs for embedding, the max number of input items in the array per call to the embedding endpoint is 2048.
153+
151154
### DALL-E models (Preview)
152155

153156
| Model ID | Feature Availability | Max Request (characters) |

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Learn how to generate embeddings with Azure OpenAI
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 11/06/2023
9+
ms.date: 01/16/2024
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -126,7 +126,9 @@ return $response.data.embedding
126126

127127
### Verify inputs don't exceed the maximum length
128128

129-
The maximum length of input text for our latest embedding models is 8192 tokens. You should verify that your inputs don't exceed this limit before making a request.
129+
- The maximum length of input text for our latest embedding models is 8192 tokens. You should verify that your inputs don't exceed this limit before making a request.
130+
- If sending an array of inputs in a single embedding request the max array size is 2048.
131+
130132

131133
## Limitations & risks
132134

articles/ai-services/openai/how-to/switching-endpoints.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: mbullwin
77
ms.service: azure-ai-openai
88
ms.custom: devx-track-python
99
ms.topic: how-to
10-
ms.date: 11/22/2023
10+
ms.date: 01/06/2023
1111
manager: nitinme
1212
---
1313

@@ -31,10 +31,11 @@ We recommend using environment variables. If you haven't done this before our [P
3131
<td>
3232

3333
```python
34+
import os
3435
from openai import OpenAI
3536

3637
client = OpenAI(
37-
api_key=os.environ["OPENAI_API_KEY"]
38+
api_key=os.getenv("OPENAI_API_KEY")
3839
)
3940

4041

@@ -51,7 +52,7 @@ from openai import AzureOpenAI
5152
client = AzureOpenAI(
5253
api_key=os.getenv("AZURE_OPENAI_KEY"),
5354
api_version="2023-12-01-preview",
54-
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
55+
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT")
5556
)
5657
```
5758

@@ -71,10 +72,11 @@ client = AzureOpenAI(
7172
<td>
7273

7374
```python
75+
import os
7476
from openai import OpenAI
7577

7678
client = OpenAI(
77-
api_key=os.environ["OPENAI_API_KEY"]
79+
api_key=os.getenv("OPENAI_API_KEY")
7880
)
7981

8082

@@ -93,7 +95,9 @@ client = OpenAI(
9395
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
9496
from openai import AzureOpenAI
9597

96-
token_provider = get_bearer_token_provider(DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default")
98+
token_provider = get_bearer_token_provider(
99+
DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
100+
)
97101

98102
api_version = "2023-12-01-preview"
99103
endpoint = "https://my-resource.openai.azure.com"
@@ -126,7 +130,7 @@ OpenAI uses the `model` keyword argument to specify what model to use. Azure Ope
126130
```python
127131
completion = client.completions.create(
128132
model="gpt-3.5-turbo-instruct",
129-
prompt="<prompt>")
133+
prompt="<prompt>"
130134
)
131135

132136
chat_completion = client.chat.completions.create(
@@ -135,8 +139,8 @@ chat_completion = client.chat.completions.create(
135139
)
136140

137141
embedding = client.embeddings.create(
138-
input="<input>",
139-
model="text-embedding-ada-002"
142+
model="text-embedding-ada-002",
143+
input="<input>"
140144
)
141145
```
142146

@@ -146,17 +150,17 @@ embedding = client.embeddings.create(
146150
```python
147151
completion = client.completions.create(
148152
model="gpt-35-turbo-instruct", # This must match the custom deployment name you chose for your model.
149-
prompt=<"prompt">
153+
prompt="<prompt>"
150154
)
151155

152156
chat_completion = client.chat.completions.create(
153157
model="gpt-35-turbo", # model = "deployment_name".
154-
messages=<"messages">
158+
messages="<messages>"
155159
)
156160

157161
embedding = client.embeddings.create(
158-
input = "<input>",
159-
model= "text-embedding-ada-002" # model = "deployment_name".
162+
model="text-embedding-ada-002", # model = "deployment_name".
163+
input="<input>"
160164
)
161165
```
162166

@@ -166,7 +170,7 @@ embedding = client.embeddings.create(
166170

167171
## Azure OpenAI embeddings multiple input support
168172

169-
OpenAI currently allows a larger number of array inputs with text-embedding-ada-002. Azure OpenAI currently supports input arrays up to 16 for text-embedding-ada-002 Version 2. Both require the max input token limit per API request to remain under 8191 for this model.
173+
OpenAI and Azure OpenAI currently support input arrays up to 2048 input items for text-embedding-ada-002. Both require the max input token limit per API request to remain under 8191 for this model.
170174

171175
<table>
172176
<tr>
@@ -179,8 +183,8 @@ OpenAI currently allows a larger number of array inputs with text-embedding-ada-
179183
inputs = ["A", "B", "C"]
180184

181185
embedding = client.embeddings.create(
182-
input=inputs,
183-
model="text-embedding-ada-002"
186+
input=inputs,
187+
model="text-embedding-ada-002"
184188
)
185189

186190

@@ -190,12 +194,12 @@ embedding = client.embeddings.create(
190194
<td>
191195

192196
```python
193-
inputs = ["A", "B", "C"] #max array size=16
197+
inputs = ["A", "B", "C"] #max array size=2048
194198

195199
embedding = client.embeddings.create(
196-
input=inputs,
197-
model="text-embedding-ada-002" # This must match the custom deployment name you chose for your model.
198-
#engine="text-embedding-ada-002"
200+
input=inputs,
201+
model="text-embedding-ada-002" # This must match the custom deployment name you chose for your model.
202+
# engine="text-embedding-ada-002"
199203
)
200204

201205
```

articles/ai-services/openai/how-to/use-blocklists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The configurable content filters are sufficient for most content moderation need
2020

2121
- An Azure subscription. <a href="https://azure.microsoft.com/free/ai-services" target="_blank">Create one for free</a>.
2222
- Once you have your Azure subscription, create an Azure OpenAI resource in the Azure portal to get your token, key and endpoint. Enter a unique name for your resource, select the subscription you entered on the application form, select a resource group, supported region, and supported pricing tier. Then select **Create**.
23-
- The resource takes a few minutes to deploy. After it finishes, sSelect **go to resource**. In the left pane, under **Resource Management**, select **Subscription Key and Endpoint**. The endpoint and either of the keys are used to call APIs.
23+
- The resource takes a few minutes to deploy. After it finishes, select **go to resource**. In the left pane, under **Resource Management**, select **Subscription Key and Endpoint**. The endpoint and either of the keys are used to call APIs.
2424
- [Azure CLI](/cli/azure/install-azure-cli) installed
2525
- [cURL](https://curl.haxx.se/) installed
2626

@@ -279,4 +279,4 @@ You can also create custom blocklists in the Azure OpenAI Studio as part of your
279279

280280
- Read more about [content filtering categories and severity levels](/azure/ai-services/openai/concepts/content-filter?tabs=python) with Azure OpenAI Service.
281281

282-
- Learn more about red teaming from our: [Introduction to red teaming large language models (LLMs)](/azure/ai-services/openai/concepts/red-teaming) article.
282+
- Learn more about red teaming from our: [Introduction to red teaming large language models (LLMs)](/azure/ai-services/openai/concepts/red-teaming) article.

0 commit comments

Comments
 (0)