Amazon Bedrock
Prerequisites
- Subscribe to Cohere’s models on Amazon Bedrock. For more details, see here.
- AWS Python SDK. To install it, run
pip install boto3. You can find more details here . - Configured authentication credentials for AWS. For more details, see this document.
Alternatively, use Cohere’s AWS SDK; for more details, see this GitHub repo and related notebooks.
Embeddings
Invoke Cohere’s embed model using Bedrock in order to generate embeddings with the following code: