Skip to content

Commit 0d9b5d4

Browse files
committed
fix
1 parent 6fef125 commit 0d9b5d4

11 files changed

+426
-312
lines changed

articles/ai-studio/how-to/deploy-models-cohere-command.md

Lines changed: 64 additions & 50 deletions
Large diffs are not rendered by default.

articles/ai-studio/how-to/deploy-models-cohere-embed.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ titleSuffix: Azure AI studio
44
description: Learn how to use Cohere Embed V3 models with Azure AI studio.
55
ms.service: azure-ai-studio
66
ms.topic: how-to
7-
ms.date: 07/25/2024
7+
ms.date: 08/01/2024
88
ms.reviewer: kritifaujdar
99
reviewer: fkriti
1010
ms.author: mopeakande
@@ -28,7 +28,7 @@ The Cohere family of models for embeddings includes the following models:
2828

2929
# [Cohere Embed v3 - English](#tab/cohere-embed-v3-english)
3030

31-
Cohere Embed English is a text representation model used for semantic search, retrieval-augmented generation (RAG), classification, and clustering. Embed English performs well on the HuggingFace MTEB benchmark and on use-cases for various industries, such as Finance, Legal, and General-Purpose Corpora. Embed English also has the following attributes:
31+
Cohere Embed English is a text representation model used for semantic search, retrieval-augmented generation (RAG), classification, and clustering. Embed English performs well on the HuggingFace (massive text embed) MTEB benchmark and on use-cases for various industries, such as Finance, Legal, and General-Purpose Corpora. Embed English also has the following attributes:
3232

3333
* Embed English has 1,024 dimensions.
3434
* Context window of the model is 512 tokens
@@ -80,7 +80,7 @@ Read more about the [Azure AI inference package and reference](https://aka.ms/az
8080
8181
## Work with embeddings
8282

83-
In this section, you use the [Azure AI model inference API](https://aka.ms/azureai/modelinference) with a embeddings model.
83+
In this section, you use the [Azure AI model inference API](https://aka.ms/azureai/modelinference) with an embeddings model.
8484

8585
### Create a client to consume the model
8686

@@ -180,7 +180,7 @@ print("Usage:", response.usage)
180180

181181
Cohere Embed V3 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.
182182

183-
The following example shows how to create embeddings used to create an embedding for a document that will be stored in a vector database:
183+
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:
184184

185185

186186
```python
@@ -217,7 +217,7 @@ The Cohere family of models for embeddings includes the following models:
217217

218218
# [Cohere Embed v3 - English](#tab/cohere-embed-v3-english)
219219

220-
Cohere Embed English is a text representation model used for semantic search, retrieval-augmented generation (RAG), classification, and clustering. Embed English performs well on the HuggingFace MTEB benchmark and on use-cases for various industries, such as Finance, Legal, and General-Purpose Corpora. Embed English also has the following attributes:
220+
Cohere Embed English is a text representation model used for semantic search, retrieval-augmented generation (RAG), classification, and clustering. Embed English performs well on the HuggingFace (massive text embed) MTEB benchmark and on use-cases for various industries, such as Finance, Legal, and General-Purpose Corpora. Embed English also has the following attributes:
221221

222222
* Embed English has 1,024 dimensions.
223223
* Context window of the model is 512 tokens
@@ -267,7 +267,7 @@ npm install @azure-rest/ai-inference
267267
268268
## Work with embeddings
269269

270-
In this section, you use the [Azure AI model inference API](https://aka.ms/azureai/modelinference) with a embeddings model.
270+
In this section, you use the [Azure AI model inference API](https://aka.ms/azureai/modelinference) with an embeddings model.
271271

272272
### Create a client to consume the model
273273

@@ -371,7 +371,7 @@ console.log(response.body.usage);
371371

372372
Cohere Embed V3 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.
373373

374-
The following example shows how to create embeddings used to create an embedding for a document that will be stored in a vector database:
374+
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:
375375

376376

377377
```javascript
@@ -408,7 +408,7 @@ The Cohere family of models for embeddings includes the following models:
408408

409409
# [Cohere Embed v3 - English](#tab/cohere-embed-v3-english)
410410

411-
Cohere Embed English is a text representation model used for semantic search, retrieval-augmented generation (RAG), classification, and clustering. Embed English performs well on the HuggingFace MTEB benchmark and on use-cases for various industries, such as Finance, Legal, and General-Purpose Corpora. Embed English also has the following attributes:
411+
Cohere Embed English is a text representation model used for semantic search, retrieval-augmented generation (RAG), classification, and clustering. Embed English performs well on the HuggingFace (massive text embed) MTEB benchmark and on use-cases for various industries, such as Finance, Legal, and General-Purpose Corpora. Embed English also has the following attributes:
412412

413413
* Embed English has 1,024 dimensions.
414414
* Context window of the model is 512 tokens
@@ -451,7 +451,7 @@ Models deployed with the [Azure AI model inference API](https://aka.ms/azureai/m
451451
452452
## Work with embeddings
453453

454-
In this section, you use the [Azure AI model inference API](https://aka.ms/azureai/modelinference) with a embeddings model.
454+
In this section, you use the [Azure AI model inference API](https://aka.ms/azureai/modelinference) with an embeddings model.
455455

456456
### Create a client to consume the model
457457

@@ -582,7 +582,7 @@ The response is as follows, where you can see the model's usage statistics:
582582

583583
Cohere Embed V3 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.
584584

585-
The following example shows how to create embeddings used to create an embedding for a document that will be stored in a vector database:
585+
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:
586586

587587

588588
```json
@@ -618,7 +618,7 @@ Cohere Embed V3 models can optimize the embeddings based on its use case.
618618
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://aka.ms/azsdk/azure-ai-inference/javascript/samples) |
619619
| Azure AI Inference package for Python | Python | [Link](https://aka.ms/azsdk/azure-ai-inference/python/samples) |
620620
| OpenAI SDK (experimental) | Python | [Link](https://aka.ms/samples/cohere-command/openaisdk) |
621-
| LangChain | Pyton | [Link](https://aka.ms/samples/cohere/langchain) |
621+
| LangChain | Python | [Link](https://aka.ms/samples/cohere/langchain) |
622622
| Cohere SDK | Python | [Link](https://aka.ms/samples/cohere-python-sdk) |
623623
| LiteLLM SDK | Python | [Link](https://github.com/Azure/azureml-examples/blob/main/sdk/python/foundation-models/cohere/litellm.ipynb) |
624624

0 commit comments

Comments
 (0)