CreateCohereEmbeddings 2025.3.28.13-SNAPSHOT¶
BUNDLE¶
com.snowflake.openflow.runtime | runtime-cohere-nar
DESCRIPTION¶
Uses Cohere to create embeddings for text. The input text can be provided as a single FlowFile or as a record-oriented FlowFile.
INPUT REQUIREMENT¶
Supports Sensitive Dynamic Properties¶
false
PROPERTIES¶
Property |
Description |
---|---|
Cohere API Key |
The API Key for authenticating to Cohere |
Embedding Type |
Specifies the types of embeddings you want to get back. |
Embeddings Model |
The model to use for embeddings, available models are listed at https://docs.cohere.com/reference/embed (https://docs.cohere.com/reference/embed) |
Embeddings Record Path |
The path to the field in the record where the embeddings are to be written. |
Input Type |
Specifies the type of input passed to the model. Required for embedding models v3 and higher. |
Max Batch Size |
The maximum number of records to include in each batch sent to Cohere |
Record Reader |
The record reader to use for reading record-oriented data. If the incoming data is to be treated as plaintext, this property should be left unset. |
Record Writer |
The Record Writer to use for writing the output |
Text Record Path |
The path to the field in the record that contains the text to be embedded. If the incoming data is to be treated as plaintext, this property should be left unset. |
Truncate Policy |
One of NONE|START|END to specify how the API will handle inputs longer than the maximum token length. |
User |
An identifier for the remote user on whose behalf the request is being made. |
RELATIONSHIPS¶
NAME |
DESCRIPTION |
---|---|
failure |
The original FlowFile will be routed to this relationship if the embeddings could not be created |
success |
The embeddings will be routed to this relationship |
WRITES ATTRIBUTES¶
NAME |
DESCRIPTION |
---|---|
record.count |
The number of records written to the output |
mime.type |
The MIME type of the output data, based on the chosen Record Writer |
USE CASES¶
Create embeddings for text using Cohere’s Embedding model |