Package com.google.genkit.plugins.milvus
Class MilvusPlugin.Builder
java.lang.Object
com.google.genkit.plugins.milvus.MilvusPlugin.Builder
- Enclosing class:
MilvusPlugin
Builder for
MilvusPlugin.-
Method Summary
Modifier and TypeMethodDescriptionaddCollection(MilvusCollectionConfig config) Adds a collection configuration.build()Builds the plugin.Sets the Milvus auth token (optional; required for Zilliz Cloud or auth-enabled servers).Sets the Milvus server URL (default "http://localhost:19530").
-
Method Details
-
url
Sets the Milvus server URL (default "http://localhost:19530").- Parameters:
url- the server URL- Returns:
- this builder
-
token
Sets the Milvus auth token (optional; required for Zilliz Cloud or auth-enabled servers).- Parameters:
token- the auth token- Returns:
- this builder
-
addCollection
Adds a collection configuration.- Parameters:
config- the collection configuration- Returns:
- this builder
-
build
Builds the plugin.- Returns:
- a new
MilvusPlugin
-