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

Uploaded Python 3

File details

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

File metadata

  • Download URL: superduper_cohere-0.6.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.6.0.tar.gz
Algorithm Hash digest
SHA256 24968d31346af1cb9e4a3ee707b79b16079ac867ab7a329b90ddcae8d81046eb
MD5 cce8994853f98c756304238a0d98e81d
BLAKE2b-256 19a09d5e6e7aaf6725b5686be97828b7a07c34e22a195675ebaf43b6375f231d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for superduper_cohere-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c3e002ef2ede1e68183ae6d11adec4f6063835741487388e905708f98299a66
MD5 f714dd7feca6ff10f6ed6f12edd38121
BLAKE2b-256 823e8c6d5005ca9e159331c39aa60aada708985008fc43e8b43573890d359fd6

See more details on using hashes here.

Provenance

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