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.0.5.tar.gz
(12.8 kB
view details)
Built Distribution
File details
Details for the file superduper_cohere-0.0.5.tar.gz
.
File metadata
- Download URL: superduper_cohere-0.0.5.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64bcfe26337bf4198dec0ac72f6294e74767f78e774328cca7e302d32c4dff5 |
|
MD5 | 38b3b3d30b808e3dd9ab7cc3950b2278 |
|
BLAKE2b-256 | 817aff3a6874bc420de09926e3e0f97a07c476eb017620f95c95e06b43851152 |
File details
Details for the file superduper_cohere-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: superduper_cohere-0.0.5-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5921f663335332320638cfa29a9e60e7ffd440b1b653e318a781eb99d17d60ab |
|
MD5 | 0b80d6048002f799a2d67026b2691b32 |
|
BLAKE2b-256 | 8668be6cc66251aa1df149c3b36dc50115e423a1da7c756f950e26e34e39b77b |