UpsertMilvus
Description
Upserts vectors into Milvus database for a given collection
Tags
Milvus, chatbot, embeddings, gen ai, genai, generative ai, insert, llm, metadata, publish, text, upsert, vector
Properties
In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
Display Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Milvus Connection Service * | Milvus Connection Service | Controller Service: MilvusConnectionService Implementations: StandardMilvusConnectionService | Connection Service for accessing Milvus Database | |
Collection Name * | Collection Name | The name of the Milvus collection name to use Supports Expression Language, using FlowFile attributes and Environment variables. | ||
Record Reader * | Record Reader | Controller Service: RecordReaderFactory Implementations: AvroReader CEFReader CSVReader ExcelReader GrokReader JsonPathReader JsonTreeReader ReaderLookup ScriptedReader Syslog5424Reader SyslogReader WindowsEventLogReader XMLReader YamlTreeReader | The Record Reader to use for reading the FlowFile | |
Vector Record Path * | Vector Record Path | /embeddings | The path to the vector field in the record Supports Expression Language, using FlowFile attributes and Environment variables. | |
Vector Field Name * | Vector Field Name | vector | The name of the field in Milvus to use for storing the vectors. This property is only considered if:
| |
ID Record Path * | ID Record Path | The path to the ID field in the record Supports Expression Language, using FlowFile attributes and Environment variables. | ||
ID Field Name * | ID Field Name | id | The name of the field in Milvus to use for storing the IDs of vectors. If a record path is not provided along with the field name the IDs will be generated based on the filename in the format of a string. | |
Text Record Path | Text Record Path | The path to the field in the record that contains the text associated with the vectors. If specified, the text will be inserted under the text field in Milvus. If not specified, the text will not be sent to the Milvus database. Supports Expression Language, using FlowFile attributes and Environment variables. | ||
Text Field Name * | Text Field Name | text | The name of the field in Milvus to use for storing the text associated with the vectors. This property is only considered if:
| |
Metadata Record Path | Metadata Record Path | The path to the metadata field in the record Supports Expression Language, using FlowFile attributes and Environment variables. | ||
Metadata Field Name * | Metadata Field Name | metadata | The name of the field to use for storing other metadata associated with the vectors. This data must be in the format of valid json. This property is only considered if:
| |
Sparse Vector Indices Path | Sparse Vector Indices Path | If, Sparse Vectors are to be provided, this RecordPath points to the indices of the sparse data to use. Supports Expression Language, using FlowFile attributes and Environment variables. | ||
Sparse Vector Values Path * | Sparse Vector Values Path | If, Sparse Vectors are to be provided, this RecordPath points to the values of the sparse data to use. Supports Expression Language, using FlowFile attributes and Environment variables. This property is only considered if:
| ||
Sparse Vector Field Name * | Sparse Vector Field Name | sparse_vectors | The name of the field to use for storing the sparse vectors. This property is only considered if:
| |
Max Batch Size * | Max Batch Size | 100 | If the number of Records in a FlowFile is large, creating a single request to Milvus can consume significant amounts of NiFi heap. In order to avoid this, the Max Batch Size can limit the number of Records to send in a single request. | |
Partition | Partition | Partition of the vector database that you want to perform operations in. If the database has only one partition leave empty. |
Dynamic Properties
This component does not support dynamic properties.
Relationships
Name | Description |
---|---|
failure | FlowFiles that cannot be sent to Milvus, and for which a retry is not expected to be successful, are routed to this relationship |
retry | FlowFiles that fail to be sent to Milvus, but for which a retry may help, are routed to this relationship |
success | FlowFiles that are successfully sent to Milvus are routed to this relationship |
Reads Attributes
This processor does not read attributes.
Writes Attributes
This processor does not write attributes.
State Management
This component does not store state.
Restricted
This component is not restricted.
Input Requirement
This component requires an incoming relationship.
System Resource Considerations
This component does not specify system resource considerations.