Skip to main content

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 NameAPI NameDefault ValueAllowable ValuesDescription
Milvus Connection Service *Milvus Connection ServiceController Service:
MilvusConnectionService

Implementations:
StandardMilvusConnectionService
Connection Service for accessing Milvus Database
Collection Name *Collection NameThe name of the Milvus collection name to use

Supports Expression Language, using FlowFile attributes and Environment variables.
Record Reader *Record ReaderController 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/embeddingsThe path to the vector field in the record

Supports Expression Language, using FlowFile attributes and Environment variables.
Vector Field Name *Vector Field NamevectorThe name of the field in Milvus to use for storing the vectors.

This property is only considered if:
  • the property Vector Record Path has a value specified
ID Record Path *ID Record PathThe path to the ID field in the record

Supports Expression Language, using FlowFile attributes and Environment variables.
ID Field Name *ID Field NameidThe 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 PathText Record PathThe 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 NametextThe name of the field in Milvus to use for storing the text associated with the vectors.

This property is only considered if:
  • the property Text Record Path has a value specified
Metadata Record PathMetadata Record PathThe path to the metadata field in the record

Supports Expression Language, using FlowFile attributes and Environment variables.
Metadata Field Name *Metadata Field NamemetadataThe 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:
  • the property Metadata Record Path has a value specified
Sparse Vector Indices PathSparse Vector Indices PathIf, 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 PathIf, 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:
  • the property Sparse Vector Indices Path has a value specified
Sparse Vector Field Name *Sparse Vector Field Namesparse_vectorsThe name of the field to use for storing the sparse vectors.

This property is only considered if:
  • the property Sparse Vector Values Path has a value specified
Max Batch Size *Max Batch Size100If 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.
PartitionPartitionPartition 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

NameDescription
failureFlowFiles that cannot be sent to Milvus, and for which a retry is not expected to be successful, are routed to this relationship
retryFlowFiles that fail to be sent to Milvus, but for which a retry may help, are routed to this relationship
successFlowFiles 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.

See Also

DeleteMilvus