Class LocalVecPlugin.Builder
java.lang.Object
com.google.genkit.plugins.localvec.LocalVecPlugin.Builder
- Enclosing class:
LocalVecPlugin
Builder for LocalVecPlugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStore(LocalVecConfig config) Adds a vector store configuration.Convenience method to add a store with minimal configuration using an embedder instance.Convenience method to add a store with minimal configuration using an embedder name.build()Builds the plugin.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addStore
Adds a vector store configuration.- Parameters:
config- the configuration- Returns:
- this builder
-
addStore
Convenience method to add a store with minimal configuration using an embedder instance.- Parameters:
indexName- the index nameembedder- the embedder to use- Returns:
- this builder
-
addStore
Convenience method to add a store with minimal configuration using an embedder name. The embedder will be resolved from the registry during plugin initialization.- Parameters:
indexName- the index nameembedderName- the embedder name (e.g., "openai/text-embedding-3-small")- Returns:
- this builder
-
build
Builds the plugin.- Returns:
- the configured plugin
-