Class CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER extends CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends CoherenceEmbeddingStoreConfig>
java.lang.Object
io.helidon.integrations.langchain4j.providers.coherence.CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
CoherenceEmbeddingStoreConfig.Builder
- Enclosing interface:
CoherenceEmbeddingStoreConfig
public abstract static class CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER extends CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends CoherenceEmbeddingStoreConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
CoherenceEmbeddingStoreConfig
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.config()
If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).The number of dimensions in the embeddings.dimension
(int dimension) The number of dimensions in the embeddings.Optional
<dev.langchain4j.model.embedding.EmbeddingModel> The embedding model to use.embeddingModel
(dev.langchain4j.model.embedding.EmbeddingModel embeddingModel) The embedding model to use.boolean
enabled()
If set tofalse
(default), CoherenceEmbeddingStore will not be available even if configured.enabled
(boolean enabled) If set tofalse
(default), CoherenceEmbeddingStore will not be available even if configured.from
(CoherenceEmbeddingStoreConfig prototype) Update this builder from an existing prototype instance.from
(CoherenceEmbeddingStoreConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.index()
The index name to use.The index name to use.name()
Generated fromCoherenceEmbeddingStore.Builder.name(java.lang.String)
Generated fromCoherenceEmbeddingStore.Builder.name(java.lang.String)
Generated fromCoherenceEmbeddingStore.Builder.normalizeEmbeddings(boolean)
normalizeEmbeddings
(boolean normalizeEmbeddings) Generated fromCoherenceEmbeddingStore.Builder.normalizeEmbeddings(boolean)
protected void
Handles providers and decorators.serviceRegistry
(ServiceRegistry registry) Provide an explicit registry instance to use.session()
Generated fromCoherenceEmbeddingStore.Builder.session(java.lang.String)
Generated fromCoherenceEmbeddingStore.Builder.session(java.lang.String)
toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CoherenceEmbeddingStoreConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends CoherenceEmbeddingStoreConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CoherenceEmbeddingStoreConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
serviceRegistry
Provide an explicit registry instance to use.If not configured, the
GlobalServiceRegistry
would be used to discover services.- Parameters:
registry
- service registry instance- Returns:
- updated builder instance
-
enabled
If set tofalse
(default), CoherenceEmbeddingStore will not be available even if configured.- Parameters:
enabled
- whether CoherenceEmbeddingStore is enabled, defaults tofalse
- Returns:
- updated builder instance
- See Also:
-
clearNormalizeEmbeddings
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
normalizeEmbeddings
Generated fromCoherenceEmbeddingStore.Builder.normalizeEmbeddings(boolean)
- Parameters:
normalizeEmbeddings
- boolean property- Returns:
- updated builder instance
- See Also:
-
clearSession
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
session
Generated fromCoherenceEmbeddingStore.Builder.session(java.lang.String)
- Parameters:
session
- String property- Returns:
- updated builder instance
- See Also:
-
clearName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
name
Generated fromCoherenceEmbeddingStore.Builder.name(java.lang.String)
- Parameters:
name
- String property- Returns:
- updated builder instance
- See Also:
-
clearIndex
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
index
The index name to use.- Parameters:
index
- anOptional
containing index name.- Returns:
- updated builder instance
- See Also:
-
clearDimension
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
dimension
The number of dimensions in the embeddings.If an embedding model is configured than the model's dimensions will be used instead of this configuration.
- Parameters:
dimension
- anOptional
containing number of dimensions in the embeddings.- Returns:
- updated builder instance
- See Also:
-
clearEmbeddingModel
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
embeddingModel
The embedding model to use.- Parameters:
embeddingModel
- anOptional
containing embedding model.- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()If set tofalse
(default), CoherenceEmbeddingStore will not be available even if configured.- Returns:
- the enabled
-
normalizeEmbeddings
Generated fromCoherenceEmbeddingStore.Builder.normalizeEmbeddings(boolean)
- Returns:
- the normalize embeddings
-
session
Generated fromCoherenceEmbeddingStore.Builder.session(java.lang.String)
- Returns:
- the session
-
name
Generated fromCoherenceEmbeddingStore.Builder.name(java.lang.String)
- Returns:
- the name
-
index
The index name to use.- Returns:
- the index
-
dimension
The number of dimensions in the embeddings.If an embedding model is configured than the model's dimensions will be used instead of this configuration.
- Returns:
- the dimension
-
embeddingModel
The embedding model to use.- Returns:
- the embedding model
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-
config(io.helidon.config.Config)