You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/model-inference/includes/use-image-embeddings/csharp.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: msakande
7
7
reviewer: santiagxf
8
8
ms.service: azure-ai-model-inference
9
9
ms.topic: how-to
10
-
ms.date: 01/22/2025
10
+
ms.date: 02/14/2025
11
11
ms.author: mopeakande
12
12
ms.reviewer: fasantia
13
13
ms.custom: generated
@@ -37,7 +37,7 @@ To use embedding models in your application, you need:
37
37
> [!TIP]
38
38
> Read more about the [Azure AI inference package and reference](https://aka.ms/azsdk/azure-ai-inference/python/reference).
39
39
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:
41
41
42
42
```bash
43
43
dotnet add package Azure.Identity
@@ -55,7 +55,7 @@ EmbeddingsClient client = new EmbeddingsClient(
55
55
);
56
56
```
57
57
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.
59
59
60
60
```csharp
61
61
TokenCredential credential = new DefaultAzureCredential(includeInteractiveCredentials: true);
@@ -105,7 +105,7 @@ foreach (EmbeddingItem item in response.Value.Data)
105
105
```
106
106
107
107
> [!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.
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.
134
134
135
-
The following example shows how to create embeddings that are used to create an embedding fora document that will be storedin a vector database:
135
+
The following example shows how to create embeddings for a document that will be stored in a vector database:
0 commit comments