Skip to main content

Superduper allows users to work with cohere API models.

Project description

superduper_cohere

Superduper allows users to work with cohere API models.

Installation

pip install superduper_cohere

API

Class Description
superduper_cohere.model.Cohere Cohere predictor.
superduper_cohere.model.CohereEmbed Cohere embedding predictor.
superduper_cohere.model.CohereGenerate Cohere realistic text generator (chat predictor).

Examples

CohereEmbed

from superduper_cohere.model import CohereEmbed
model = CohereEmbed(identifier='embed-english-v2.0', batch_size=1)
model..predict('Hello world')

CohereGenerate

from superduper_cohere.model import CohereGenerate
model = CohereGenerate(identifier='base-light', prompt='Hello, {context}')
model.predict('', context=['world!'])

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

superduper_cohere-0.4.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

superduper_cohere-0.4.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file superduper_cohere-0.4.0.tar.gz.

File metadata

  • Download URL: superduper_cohere-0.4.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for superduper_cohere-0.4.0.tar.gz
Algorithm Hash digest
SHA256 92e94fc17f1887f1bef68180a84b8a9af6f32caffd9f18613480ea8bd9096ddc
MD5 6798cdd656333b22df71d493dd9c2cd1
BLAKE2b-256 eeba75cc64e6a7217db68de16e7373d326ec12159dcbc96645ce820bd8135695

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_cohere-0.4.0.tar.gz:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

File details

Details for the file superduper_cohere-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_cohere-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 335444ad383b0388fa7bcfc47589c2ed2e17d1f048467be736c2f8abf7404bc7
MD5 7fc5f7eb5ca3bf583577be9eec627d6f
BLAKE2b-256 0092998b3924db7d837cd09ef259aba35114cbbc5a44a31ebf64ec499b4b86c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_cohere-0.4.0-py3-none-any.whl:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

Supported by

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