Skip to main content

Cohere

Before using Cohere, visit the Cohere dashboard to create an API key.

Chat model

We recommend configuring Command-R Plus as your chat model.

config.json
{
"models": [
{
"title": "Cohere",
"provider": "cohere",
"model": "command-r-plus",
"apiKey": "YOUR_API_KEY"
}
]
}

Autocomplete model

Cohere currently does not offer any autocomplete models.

Click here to see a list of autocomplete model providers.

Embeddings model

We recommend configuring embed-english-v3.0 as your embeddings model.

config.json
{
"embeddingsProvider": {
"provider": "cohere",
"model": "embed-english-v3.0",
"apiKey": "<COHERE_API_KEY>"
}
}

Reranking model

We recommend configuring rerank-english-v3.0 as your reranking model.

config.json
{
"embeddingsProvider": {
"provider": "cohere",
"params": {
"model": "rerank-english-v3.0",
"apiKey": "<COHERE_API_KEY>"
}
}
}