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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e94fc17f1887f1bef68180a84b8a9af6f32caffd9f18613480ea8bd9096ddc |
|
MD5 | 6798cdd656333b22df71d493dd9c2cd1 |
|
BLAKE2b-256 | eeba75cc64e6a7217db68de16e7373d326ec12159dcbc96645ce820bd8135695 |
Provenance
The following attestation bundles were made for superduper_cohere-0.4.0.tar.gz
:
Publisher:
release_plugins.yaml
on superduper-io/superduper
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_cohere-0.4.0.tar.gz
- Subject digest:
92e94fc17f1887f1bef68180a84b8a9af6f32caffd9f18613480ea8bd9096ddc
- Sigstore transparency entry: 146081643
- Sigstore integration time:
- Predicate type:
File details
Details for the file superduper_cohere-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: superduper_cohere-0.4.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 335444ad383b0388fa7bcfc47589c2ed2e17d1f048467be736c2f8abf7404bc7 |
|
MD5 | 7fc5f7eb5ca3bf583577be9eec627d6f |
|
BLAKE2b-256 | 0092998b3924db7d837cd09ef259aba35114cbbc5a44a31ebf64ec499b4b86c9 |
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
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_cohere-0.4.0-py3-none-any.whl
- Subject digest:
335444ad383b0388fa7bcfc47589c2ed2e17d1f048467be736c2f8abf7404bc7
- Sigstore transparency entry: 146081644
- Sigstore integration time:
- Predicate type: