Skip to main content

Availble models

Cohere has multiple models with various sizes and languages, here’s the one we use in our example. You can replace it with any embedding model supported by Cohere:

Usage

Cohere’s API includes an inputType that allows you to specify the type of input you are embedding. For example, is it a document that you will later retrieve? a question that you use for searching documents? Texts for classification or clustering?

Installing dependencies

Generating embeddings with Cohere

Storing and retrieving the embeddings