Skip to content

Commit d1dc3cf

Browse files
committed
review
1 parent 431ec48 commit d1dc3cf

File tree

1 file changed

+5
-5
lines changed
  • articles/ai-foundry/model-inference/includes/use-image-embeddings

1 file changed

+5
-5
lines changed

articles/ai-foundry/model-inference/includes/use-image-embeddings/csharp.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: msakande
77
reviewer: santiagxf
88
ms.service: azure-ai-model-inference
99
ms.topic: how-to
10-
ms.date: 01/22/2025
10+
ms.date: 02/14/2025
1111
ms.author: mopeakande
1212
ms.reviewer: fasantia
1313
ms.custom: generated
@@ -37,7 +37,7 @@ To use embedding models in your application, you need:
3737
> [!TIP]
3838
> Read more about the [Azure AI inference package and reference](https://aka.ms/azsdk/azure-ai-inference/python/reference).
3939

40-
* If you are using Entra ID, you also need the following package:
40+
* If you're using Entra ID, you also need the following package:
4141
4242
```bash
4343
dotnet add package Azure.Identity
@@ -55,7 +55,7 @@ EmbeddingsClient client = new EmbeddingsClient(
5555
);
5656
```
5757
58-
If you configured the resource to with **Microsoft Entra ID** support, you can use the following code snippet to create a client. Note that here `includeInteractiveCredentials` is set to `true` only for demonstration purposes so authentication can happen using the web browser. On production workloads, you should remove such parameter.
58+
If you configured the resource with **Microsoft Entra ID** support, you can use the following code snippet to create a client. Notice that `includeInteractiveCredentials` is set to `true` only for demonstration purposes so authentication can happen using the web browser. For production workloads, you should remove the parameter.
5959
6060
```csharp
6161
TokenCredential credential = new DefaultAzureCredential(includeInteractiveCredentials: true);
@@ -105,7 +105,7 @@ foreach (EmbeddingItem item in response.Value.Data)
105105
```
106106
107107
> [!IMPORTANT]
108-
> Computing embeddings in batches may not be supported for all the models. For example, for `Cohere-embed-v3-english` model, you need to send one image at a time.
108+
> Computing embeddings in batches might not be supported for all the models. For example, for `Cohere-embed-v3-english` model, you need to send one image at a time.
109109
110110
#### Embedding images and text pairs
111111
@@ -132,7 +132,7 @@ Response<EmbeddingsResult> response = client.Embed(requestOptions);
132132
133133
Some models can generate multiple embeddings for the same input depending on how you plan to use them. This capability allows you to retrieve more accurate embeddings for RAG patterns.
134134
135-
The following example shows how to create embeddings that are used to create an embedding for a document that will be stored in a vector database:
135+
The following example shows how to create embeddings for a document that will be stored in a vector database:
136136
137137
138138
```csharp

0 commit comments

Comments
 (0)