From 15380279cc80309946d38480c5dcdaa33c3a7553 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 10 Sep 2024 20:38:37 -0700 Subject: [PATCH] update cohere reference --- .../customize/model-providers/more/cohere.md | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/docs/docs/customize/model-providers/more/cohere.md b/docs/docs/customize/model-providers/more/cohere.md index 3f48ebaab..c2b3c631e 100644 --- a/docs/docs/customize/model-providers/more/cohere.md +++ b/docs/docs/customize/model-providers/more/cohere.md @@ -1,6 +1,10 @@ # Cohere -To setup Cohere, add the following to your `config.json` file: +Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key. + +## Chat model + +We recommend configuring **Command-R Plus** as your chat model. ```json title="config.json" { @@ -15,6 +19,38 @@ To setup Cohere, add the following to your `config.json` file: } ``` -Visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key. +## Autocomplete model -[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Cohere.ts) +Cohere currently does not offer any autocomplete models. + +[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers. + +## Embeddings model + +We recommend configuring **embed-english-v3.0** as your embeddings model. + +```json title="config.json" +{ + "embeddingsProvider": { + "provider": "cohere", + "model": "embed-english-v3.0", + "apiKey": "" + } +} +``` + +## Reranking model + +We recommend configuring **rerank-english-v3.0** as your reranking model. + +```json title="config.json" +{ + "embeddingsProvider": { + "provider": "cohere", + "params": { + "model": "rerank-english-v3.0", + "apiKey": "" + } + } +} +```