Skip to main content

A Python library for the Cohere endpoints in AWS Sagemaker & Bedrock

Project description

[!IMPORTANT] Cohere python and typescript SDKs now also support bedrock and sagemaker! This is part of an effort to make it as frictionless as possible to get started with and switch between Cohere providers.

As such, package will soon be deprecated. Please see the platform support docs for code snippets and the status of this transition or go straight to the python and typescript repos to start using bedrock/sagemaker straight away

Cohere Python SDK (AWS SageMaker & Bedrock)

This package provides functionality developed to simplify interfacing with the Cohere models via AWS SageMaker Marketplace and the Cohere models via AWS Bedrock in Python >=3.9

Installation

The package can be installed with pip:

pip install --upgrade cohere-aws

Install from source:

python setup.py install

Quick Start

To use this library, you need to configure your AWS credentials. You can do this by running aws configure. Once that's set up, please refer to one of the Jupyter notebooks to get started. Here is the one for our medium command model

Note: by default we assume region configured in AWS CLI (aws configure get region), to override use region_name parameter, e.g.

client = Client(region_name='us-east-1')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cohere-aws-0.8.18.tar.gz (17.5 kB view details)

Uploaded Source

File details

Details for the file cohere-aws-0.8.18.tar.gz.

File metadata

  • Download URL: cohere-aws-0.8.18.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.17

File hashes

Hashes for cohere-aws-0.8.18.tar.gz
Algorithm Hash digest
SHA256 6d4e7dbb6caca8c4d79eaa7e1bae6c136aac79b2501a215166545a4d422341f8
MD5 0f7387729b3c0fd529087e1f56c3a561
BLAKE2b-256 3ad4c0ce0a65c054a7a56483143bc7633f2e2d02cdad33bcfb6763ebc2d338ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page