You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

superduper-cohere

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superduper-cohere

Superduper allows users to work with cohere API models.

0.9.0
pipPyPI
Maintainers
1

superduper_cohere

Superduper allows users to work with cohere API models.

Installation

pip install superduper_cohere

API

  • Code
  • API-docs
ClassDescription
superduper_cohere.model.CohereCohere predictor.
superduper_cohere.model.CohereEmbedCohere embedding predictor.
superduper_cohere.model.CohereGenerateCohere 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!'])

Keywords

databases

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts