Skip to content

Commit 9a006af

Browse files
committed
update how-to
1 parent 711f257 commit 9a006af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88

99
ms.service: azure-ai-vision
1010
ms.topic: how-to
11-
ms.date: 01/30/2024
11+
ms.date: 02/20/2024
1212
ms.author: pafarley
1313
ms.custom: references_regions
1414
---
@@ -43,9 +43,10 @@ The `retrieval:vectorizeImage` API lets you convert an image's data to a vector.
4343
1. Replace `<endpoint>` with your Azure AI Vision endpoint.
4444
1. Replace `<subscription-key>` with your Azure AI Vision key.
4545
1. In the request body, set `"url"` to the URL of a remote image you want to use.
46+
1. Optionally, change the `model-version` parameter to an older version. `2022-04-11` is the legacy model that supports only English text. Images and text that are vectorized with a certain model aren't compatible with other models, so be sure to use the same model for both.
4647

4748
```bash
48-
curl.exe -v -X POST "https://<endpoint>/computervision/retrieval:vectorizeImage?api-version=2023-02-01-preview&modelVersion=latest" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription-key>" --data-ascii "
49+
curl.exe -v -X POST "https://<endpoint>/computervision/retrieval:vectorizeImage?api-version=2024-02-01-preview&model-version=2023-04-15" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription-key>" --data-ascii "
4950
{
5051
'url':'https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png'
5152
}"
@@ -69,9 +70,10 @@ The `retrieval:vectorizeText` API lets you convert a text string to a vector. To
6970
1. Replace `<endpoint>` with your Azure AI Vision endpoint.
7071
1. Replace `<subscription-key>` with your Azure AI Vision key.
7172
1. In the request body, set `"text"` to the example search term you want to use.
73+
1. Optionally, change the `model-version` parameter to an older version. `2022-04-11` is the legacy model that supports only English text. Images and text that are vectorized with a certain model aren't compatible with other models, so be sure to use the same model for both.
7274

7375
```bash
74-
curl.exe -v -X POST "https://<endpoint>/computervision/retrieval:vectorizeText?api-version=2023-02-01-preview&modelVersion=latest" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription-key>" --data-ascii "
76+
curl.exe -v -X POST "https://<endpoint>/computervision/retrieval:vectorizeText?api-version=2023-02-01-preview&model-version=2023-04-15" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: <subscription-key>" --data-ascii "
7577
{
7678
'text':'cat jumping'
7779
}"

0 commit comments

Comments
 (0)