Notebooks
C
Cohere
Embed Models

Embed Models

notebookscohere-developer-experiencesagemaker

Cohere Embed Models in SageMaker

In this notebook, we demonstrate how to use the SageMaker Python SDK to deploy and run inference on Embedding models from Cohere.

Setup

First, upgrade to the latest Sagemaker, Boto and Cohere SDKs to be able to deploy and invoke Cohere models.

[ ]

Deploy

Latest Models

Model NameModel ID
Embed v4.0 (Multilingual)cohere-embed-v4-0

Older Models

Model NameModel ID
Embed v3 Multilingualcohere-embed-multilingual
Embed v3 Englishcohere-embed-english
Embed-Light v3 Multilingualcohere-embed-light-multilingual
Embed-Light v3 Englishcohere-embed-light-english

Specify the model ID to deploy one of the models from the above list.

[ ]

Use the Sagemaker Jumpstart SDK to deploy the model.

[ ]

Use the model

Embed v4.0 and newer models

[ ]

Embed v3.0 and older models

[ ]

More API Features

To learn more about API features such as multi-modality, input types, and embedding types, please see the documentation in the Cohere Embed API Reference.

Clean Up

After using the resource, you can delete the model and the endpoint.

[ ]