CohereEmbeddingProvider
Cohere embedding provider with input type support.
Usage
CohereEmbeddingProvider()Parameters
model_name: str = "embed-english-v3.0"-
Name of the Cohere model.
input_type: str = "search_document"-
Type of input for embedding.
Methods
| Name | Description |
|---|---|
| generate_with_input_type() | Generate embeddings with specific input type. |
| get_supported_languages() | Return list of supported languages. |
generate_with_input_type()
Generate embeddings with specific input type.
Usage
generate_with_input_type(texts, input_type)get_supported_languages()
Return list of supported languages.
Usage
get_supported_languages()