Code Snippet
Expected Output
Notes for Cohere Models
When using Cohere models via the embeddings API, you must include an additional field calledinput_type in the request. This field indicates the purpose of the embedding and must be one of the following:
- search_query
- search_document
- classification
- clustering
Multimodal Embeddings
Note: This feature is only available for the Vertex AI multimodalembedding@001 model.
Vertex AI supports multimodal embeddings that can encode images and videos along with text. This is useful for applications that need to search across multiple modalities or find semantic similarity between text and visual content.