Skip to main content
CohereEmbedder defaults to embed-english-v3.0 and reads CO_API_KEY through the Cohere client.
cohere_embedder.py
CohereEmbedder currently applies one configured input_type to every call. A single instance used by a vector database therefore applies the same input type to document insertion and query search. Cohere retrieval models distinguish search_document from search_query.
Set dimensions=1024 with embed-english-v3.0 so the vector database schema matches the returned vectors. This field configures Agno’s expected vector width. It does not change the model’s fixed 1024-dimensional output.

Run the Example

1

Set up your virtual environment

2

Export the API key

3

Install dependencies

4

Run the example

Developer Resources