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.7.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superduper_cohere-0.7.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_cohere-0.7.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for superduper_cohere-0.7.0.tar.gz
Algorithm Hash digest
SHA256 301ae3693f5391c4d97280f32a4c6e0acc226598386df7deda3046bad8b441ae
MD5 da7bb06091880940a95afc58ad59538c
BLAKE2b-256 8273aa98db53a71863b62fa2c3d83d9b97a96373013fec5612486d824d61d5a1

See more details on using hashes here.

Provenance

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

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for superduper_cohere-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8434ef73389e8a83127fbcd78ad839838f1711624c258d595d4f9c94f141a62
MD5 47b5d7ca381bf7119529814eadb500fc
BLAKE2b-256 1cc288f952d4f0bf2a23d7b5b2201a45f1a53763d39a5aa20556485be4d14a75

See more details on using hashes here.

Provenance

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

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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