Package com.google.genkit.plugins.qdrant
Class QdrantCollectionConfig
java.lang.Object
com.google.genkit.plugins.qdrant.QdrantCollectionConfig
Configuration for a single Qdrant collection managed by
QdrantPlugin.
Each config registers a retriever and indexer named qdrant/<collectionName>.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forQdrantCollectionConfig.static enumDistance function used by the Qdrant collection. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.Returns additional metadata merged into every indexed document's payload.Returns the Qdrant collection name.intReturns the embedding dimension (default768).Returns the distance function (defaultQdrantCollectionConfig.Distance.COSINE).Returns the name of the embedder used to vectorize documents and queries.Returns the payload key that stores the document text (defaulttext).booleanReturns whether to create the collection on first use if it does not exist (defaulttrue).
-
Method Details
-
getCollectionName
Returns the Qdrant collection name.- Returns:
- the collection name
-
getEmbedderName
Returns the name of the embedder used to vectorize documents and queries.- Returns:
- the embedder name
-
getDimension
public int getDimension()Returns the embedding dimension (default768).- Returns:
- the embedding dimension
-
getDistance
Returns the distance function (defaultQdrantCollectionConfig.Distance.COSINE).- Returns:
- the distance function
-
getTextPayloadKey
Returns the payload key that stores the document text (defaulttext).- Returns:
- the text payload key
-
isCreateCollectionIfNotExists
public boolean isCreateCollectionIfNotExists()Returns whether to create the collection on first use if it does not exist (defaulttrue).- Returns:
trueif the collection should be created when missing
-
getAdditionalMetadata
Returns additional metadata merged into every indexed document's payload.- Returns:
- the additional metadata
-
builder
Creates a new builder.- Returns:
- a new builder
-