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