Skip to content

Integration

Using MetaMemory with Cohere Embed

Cohere has built its reputation on retrieval-first embedding models, and MetaMemory's integration takes full advantage of that specialization. The embed-v4.0 model represents the state of the art in embedding quality for search and retrieval tasks — it was explicitly trained to maximize the relevance of retrieved documents, which aligns perfectly with MetaMemory's memory retrieval pipeline. One of Cohere's standout features is native support for compressed embeddings. The embed-v4.0 model can produce binary and int8 quantized vectors that are dramatically smaller than full float32 representations while preserving most of the retrieval quality. MetaMemory leverages this to offer a compact storage mode that cuts memory costs significantly for high-volume deployments. The embed-multilingual-v3.0 model is another strong option, covering over 100 languages with a single model. Unlike some multilingual approaches that sacrifice English quality for breadth, Cohere's multilingual model maintains strong performance across all supported languages. MetaMemory automatically selects the right input type parameter (search_document for storage, search_query for retrieval) to ensure embeddings are optimized for their purpose. Cohere also provides explicit relevance scores alongside embeddings, which MetaMemory feeds into its adaptive strategy selection to further refine retrieval quality over time. For teams that prioritize retrieval precision above all else, Cohere is the provider to choose.

Setup Guide

1

Generate a Cohere API Key

Go to dashboard.cohere.com and create an account or sign in. Navigate to API Keys in the left sidebar and click "Create Trial Key" for testing or "Create Production Key" for a production deployment. Trial keys have lower rate limits but are free to use during development. Copy your key immediately. Cohere offers generous free-tier usage that is typically sufficient for development and testing of your MetaMemory integration.

2

Add Cohere to MetaMemory

In your MetaMemory dashboard, go to Settings then Provider Keys and select "Cohere" from the provider list. Paste your API key and select embed-v4.0 as the default model. If you need multilingual support, you can switch to embed-multilingual-v3.0 instead. MetaMemory will automatically handle input type parameters and compression settings. The key validation step confirms connectivity and correct permissions before saving your configuration.

3

Test Memory Storage and Retrieval

Create your first memory by calling the MetaMemory API with a text payload. The system sends the content to Cohere for embedding, generates multi-vector representations, and stores the result. To verify the integration, store a few related paragraphs and then issue a semantic search query. Cohere's retrieval-optimized embeddings typically show strong relevance even with short or ambiguous queries, so this is a good way to confirm everything is working correctly.

Configuration Example

curl -X POST https://api.metamemory.tech/v1/providers \
  -H "Authorization: Bearer YOUR_METAMEMORY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "cohere",
    "api_key": "YOUR_COHERE_API_KEY",
    "default_model": "embed-v4.0",
    "settings": {
      "input_type": "search_document",
      "embedding_types": ["float"]
    }
  }'

Supported Models

embed-v4.0Default
embed-english-v3.0
embed-multilingual-v3.0

Capabilities

Embeddings

Ready to use Cohere with MetaMemory?

Get started in minutes. Connect your Cohere API key and give your agents persistent, intelligent memory.

Your agents deserve to remember

Bring your own AI keys. Integrate in minutes. Your data stays yours.