> ## Documentation Index
> Fetch the complete documentation index at: https://backstage.spotify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cohere

> Integrate Cohere language models and re-ranking capabilities with AI Gateway for improved content relevance and document indexing.

## Overview

Cohere provides both LLM capabilities and advanced re-ranking models that can be used to improve the relevance of generated content and reduce inconsistencies from document indexing.

## Configuration

To use Cohere, configure it in the Plugin settings page under the `AI Gateway` section:

| Field        | Description                                    | Example                                           |
| ------------ | ---------------------------------------------- | ------------------------------------------------- |
| **API Key**  | Your Cohere API key                            | `your-cohere-api-key`                             |
| **Base URL** | Optional, to point at a gateway                | `https://ai-gateway.example.com/cohere`           |
| **Headers**  | Optional, e.g. for authentication with gateway | Key: `X-Custom-Header`<br />Value: `custom-value` |

### For Language Models

Set the default language model:

```
Language Model: cohere|command-a-03-2025
```

### For Re-ranking

Optionally configure Cohere for re-ranking:

```
Reranking Model: cohere|rerank-v3.5
```

### Supported Models

**Re-ranking:**

* rerank-v3.5 (recommended)

A full list of supported models can be found in the [Cohere documentation](https://docs.cohere.com/v2/docs/models).
