Class WeaviatePlugin.Builder
java.lang.Object
com.google.genkit.plugins.weaviate.WeaviatePlugin.Builder
- Enclosing class:
WeaviatePlugin
Builder for WeaviatePlugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a collection configuration.Sets the API key for Weaviate Cloud authentication.build()Builds the WeaviatePlugin.grpcPort(int grpcPort) Sets the gRPC port.Sets the Weaviate host.port(int port) Sets the HTTP port.secure(boolean secure) Sets whether to use secure connection (HTTPS).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
host
Sets the Weaviate host.- Parameters:
host- the host (without protocol)- Returns:
- this builder
-
port
Sets the HTTP port.- Parameters:
port- the port- Returns:
- this builder
-
grpcPort
Sets the gRPC port.- Parameters:
grpcPort- the gRPC port- Returns:
- this builder
-
secure
Sets whether to use secure connection (HTTPS).- Parameters:
secure- true for HTTPS- Returns:
- this builder
-
apiKey
Sets the API key for Weaviate Cloud authentication.- Parameters:
apiKey- the API key- Returns:
- this builder
-
addCollection
Adds a collection configuration.- Parameters:
config- the collection config- Returns:
- this builder
-
build
Builds the WeaviatePlugin.- Returns:
- the plugin
-