Class EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER extends EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends EmbeddingStoreContentRetrieverConfig>
java.lang.Object
io.helidon.integrations.langchain4j.EmbeddingStoreContentRetrieverConfig.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>
- Direct Known Subclasses:
EmbeddingStoreContentRetrieverConfig.Builder
- Enclosing interface:
EmbeddingStoreContentRetrieverConfig
public abstract static class EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER extends EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends EmbeddingStoreContentRetrieverConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
EmbeddingStoreContentRetrieverConfig
.-
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.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).The display name.displayName
(String displayName) The display name.Optional
<dev.langchain4j.model.embedding.EmbeddingModel> Explicit embedding model to use in the content retriever.embeddingModel
(dev.langchain4j.model.embedding.EmbeddingModel embeddingModel) Explicit embedding model to use in the content retriever.Optional
<dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment>> Embedding store to use in the content retriever.embeddingStore
(dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore) Embedding store to use in the content retriever.boolean
enabled()
If set tofalse
, embedding store content retriever will be disabled even if configured.enabled
(boolean enabled) If set tofalse
, embedding store content retriever will be disabled even if configured.from
(EmbeddingStoreContentRetrieverConfig prototype) Update this builder from an existing prototype instance.from
(EmbeddingStoreContentRetrieverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The maximum number of results.maxResults
(int maxResults) The maximum number of results.minScore()
The minimum score threshold.minScore
(double minScore) The minimum score threshold.protected void
Handles providers and decorators.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
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 EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EmbeddingStoreContentRetrieverConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
If set tofalse
, embedding store content retriever will be disabled even if configured.- Parameters:
enabled
- whether the content retriever should be enabled- Returns:
- updated builder instance
- See Also:
-
embeddingStore
public BUILDER embeddingStore(dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore) Embedding store to use in the content retriever.- Parameters:
embeddingStore
- anOptional
containing the embedding store- Returns:
- updated builder instance
- See Also:
-
clearEmbeddingModel
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
embeddingModel
Explicit embedding model to use in the content retriever.- Parameters:
embeddingModel
- anOptional
containing the embedding model bean name or "discovery:auto" if the bean must be discovered automatically- Returns:
- updated builder instance
- See Also:
-
clearDisplayName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
displayName
The display name. -
clearMaxResults
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
maxResults
The maximum number of results. -
clearMinScore
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
minScore
The minimum score threshold. -
enabled
public boolean enabled()If set tofalse
, embedding store content retriever will be disabled even if configured.- Returns:
- the enabled
-
embeddingStore
public Optional<dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment>> embeddingStore()Embedding store to use in the content retriever.- Returns:
- the embedding store
-
embeddingModel
Explicit embedding model to use in the content retriever.- Returns:
- the embedding model
-
displayName
The display name.- Returns:
- the display name
-
maxResults
The maximum number of results.- Returns:
- the max results
-
minScore
The minimum score threshold.- Returns:
- the min score
-
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.
-