Package com.google.genkit.plugins.qdrant
Class QdrantPlugin.Builder
java.lang.Object
com.google.genkit.plugins.qdrant.QdrantPlugin.Builder
- Enclosing class:
QdrantPlugin
Builder for
QdrantPlugin.-
Method Summary
Modifier and TypeMethodDescriptionaddCollection(QdrantCollectionConfig config) Adds a collection configuration.Sets the Qdrant API key (optional; required for Qdrant Cloud).build()Builds the plugin.Sets the Qdrant server URL (default "http://localhost:6333").
-
Method Details
-
url
Sets the Qdrant server URL (default "http://localhost:6333").- Parameters:
url- the server URL- Returns:
- this builder
-
apiKey
Sets the Qdrant API key (optional; required for Qdrant Cloud).- Parameters:
apiKey- the API key- Returns:
- this builder
-
addCollection
Adds a collection configuration.- Parameters:
config- the collection configuration- Returns:
- this builder
-
build
Builds the plugin.- Returns:
- a new
QdrantPlugin
-