Notebooks
C
Cohere
Rerank Models

Rerank Models

notebookscohere-developer-experiencesagemaker

Cohere Rerank Models in SageMaker

In this notebook, we demonstrate how to use the SageMaker Python SDK to deploy and run inference on Rerank 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
Rerank v3 Multilingualcohere-rerank-v3-multilingual
Rerank v3 Englishcohere-rerank-v3-english
Rerank "Nimble" v3 Multilingualcohere-rerank-nimble-multi
Rerank "Nimble" v3 Englishcohere-rerank-nimble-english

Older Models

Model NameModel ID
Rerank v2 Multilingualcohere-rerank-multilingual-v2
Rerank v2 Englishcohere-rerank-english-v2

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

[ ]

More API Features

To learn more about API features please see the documentation in the Cohere Rerank API Reference.

Clean Up

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

[ ]