Package com.google.genkit.plugins.chroma
Class ChromaCollectionConfig
java.lang.Object
com.google.genkit.plugins.chroma.ChromaCollectionConfig
Configuration for a single Chroma collection managed by
ChromaPlugin.
Each config registers a retriever and indexer named chroma/<collectionName>.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forChromaCollectionConfig.static enumDistance function used by the Chroma HNSW index. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.Returns additional metadata merged into every indexed document.Returns the Chroma collection name.Returns the distance function (defaultChromaCollectionConfig.Distance.COSINE).Returns the name of the embedder used to vectorize documents and queries.booleanReturns whether to create the collection on first use if it does not exist (defaulttrue).
-
Method Details
-
getCollectionName
Returns the Chroma collection name.- Returns:
- the collection name
-
getEmbedderName
Returns the name of the embedder used to vectorize documents and queries.- Returns:
- the embedder name
-
getDistance
Returns the distance function (defaultChromaCollectionConfig.Distance.COSINE).- Returns:
- the distance function
-
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.- Returns:
- the additional metadata
-
builder
Creates a new builder.- Returns:
- a new builder
-