Amazon Bedrock
This page contains a description of with Cohere's LLM platform on Amazon Bedrock.
Prerequisites
Section titled “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
Section titled “Embeddings”Invoke Cohere's embed model using Bedrock in order to generate embeddings with the following code: