Skip to main content
Cohere

Search documentation

Type to search this documentation.

On this pageOverview

Model

View and experiment with models.

Options

  -h, --help   help for model

Build a classifier using a few labeled examples, and classify a set of input texts.

co model classify [model_name] [texts...] [options...] [flags]

Options

  -h, --help                help for classify
      --examples            a list of examples texts and their labels
  -t, --taskDescription     A string describing the classification task overall
  -o, --outputIndicator     A string describing the output indicator portion of a prompt

Get embeddings from a model.

co model embed [model_name] [texts...] [flags]

Options

  -h, --help   help for embed

Generate from a model.

co model generate [model_name] [prompt] [flags]

Options

      --frequency-penalty float32   frequency penalty
  -h, --help                        help for generate
  -k, --k int                       k value
  -t, --max-tokens int              number of tokens to return (default 30)
  -p, --p float32                   p value
      --presence-penalty float32    presence penalty
      --return-likelihoods string   return likelihoods
      --stop-sequences string       stop sequences
      --temperature float32         temperature of request (default 1)

List names of available models.

co model list [flags]

Options

  -h, --help   help for list
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu