Skip to main content
Cohere provides enterprise-grade reranking models with excellent multilingual support and production-ready performance.

Models

Cohere offers several reranking models:
  • rerank-v3.5 (default): Latest reranker, multilingual, best performance
  • rerank-english-v3.0: Previous generation, English only
  • rerank-multilingual-v3.0: Previous generation, multilingual

Installation

Configuration

Python

TypeScript (self-hosted)

The TypeScript OSS SDK (mem0ai/oss) ships the Cohere reranker. Config keys are camelCase, it defaults to the rerank-v3.5 model, and you opt in per search with rerank: true.

Environment Variables

Set your API key as an environment variable:

Usage Example

Python

Multilingual Support

For multilingual applications, use the multilingual model:
Python

Configuration Parameters

Features

  • High Quality: Enterprise-grade relevance scoring
  • Multilingual: Support for 100+ languages
  • Scalable: Production-ready with high throughput
  • Reliable: SLA-backed service with 99.9% uptime

Best Practices

  1. Model Selection: rerank-v3.5 handles English and multilingual workloads; pin an older v3.0 model only if you need to reproduce prior results
  2. Batch Processing: Process multiple queries efficiently
  3. Error Handling: Implement retry logic for production systems
  4. Monitoring: Track reranking performance and costs