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.10.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.10.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_cohere-0.10.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.10.0.tar.gz
Algorithm Hash digest
SHA256 0a1a31a6bc5e27beecac7014d5934827267fa0f07684e2df8460165aebfe33e2
MD5 55c8e2ae4d4d23677b842f1cb068ab3c
BLAKE2b-256 8fe392d5f4e652ccc14c61e9a1c5bdc6b4496bfcfe79c77771cfec4ccd8da3e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_cohere-0.10.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.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_cohere-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b396f98bb1499cf7a2027112798b0bee2338e0503a94979087d6ea3ad4b31ff5
MD5 9d37d0d323fc021e847a299ca8822cb5
BLAKE2b-256 663ea6025d026f7e035e09c959b763803d2f83ee23a27073300b9a633dc47d8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_cohere-0.10.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