Supported APIs
Embedding
Description of your new file.
An embedding is a sequence of numbers (a vector) that represents the semantic meaning of content such as natural language, code, or other structured data. These embeddings allow machine learning models to understand the relationships and similarity between different pieces of content.
They are widely used in:
- Clustering
- Semantic search and retrieval
- Recommendation engines
- Retrieval-Augmented Generation (RAG)
- Knowledge retrieval systems in ChatGPT and the Assistants API
Code Snippet
Expected Output
Notes for Cohere Models
When using Cohere models via the embeddings API, you must include an additional field called input_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