Rerank Models
notebookscohere-developer-experiencesagemaker
Export
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 Name | Model ID |
|---|---|
| Rerank v3 Multilingual | cohere-rerank-v3-multilingual |
| Rerank v3 English | cohere-rerank-v3-english |
| Rerank "Nimble" v3 Multilingual | cohere-rerank-nimble-multi |
| Rerank "Nimble" v3 English | cohere-rerank-nimble-english |
Older Models
| Model Name | Model ID |
|---|---|
| Rerank v2 Multilingual | cohere-rerank-multilingual-v2 |
| Rerank v2 English | cohere-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.
[ ]