redis-vl-dotnet
Cohere Vectorizer
RedisVL.Vectorizers.Cohere provides CohereTextVectorizer, a batch-capable IBatchTextVectorizer backed by the Cohere v2 embed API.
Package contents
-
CohereTextVectorizerfor single-input and batch embedding requests -
CohereVectorizerOptionsfor request shaping -
CohereInputTypefor selecting the task prefix Cohere applies to inputs -
CohereTruncatefor overflow handling -
CohereVectorizerPackageas the package marker type
Request options
CohereVectorizerOptions currently supports:
-
InputTypeto select the Cohere task prefix (SearchDocument,SearchQuery,Classification,Clustering); defaults toSearchDocument -
OutputDimensionto request a specific embedding dimensionality from models that support it (for example,embed-v4.0) -
Truncateto control overflow handling (None,Start,End) -
ClientNameto send theX-Client-Nameheader -
EndpointOverridewhen the application needs a non-default embed endpoint
The vectorizer requests float embeddings and the default provider endpoint is https://api.cohere.com/v2/embed.