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 builder
- PROTOTYPE- type of the prototype interface that would be built by- Prototype.Builder.buildPrototype()
- All Implemented Interfaces:
- Prototype.Builder<BUILDER,,- PROTOTYPE> - ConfigBuilderSupport.ConfiguredBuilder<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 SummaryNested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Deprecated.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.booleanenabled()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 voidHandles providers and decorators.serviceRegistry(ServiceRegistry registry) Provide an explicit registry instance to use.toString()protected voidValidates required properties.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.BuilderbuildPrototype, self
- 
Constructor Details- 
BuilderBaseprotected BuilderBase()Protected to support extensibility.
 
- 
- 
Method Details- 
fromUpdate 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
 
- 
fromUpdate this builder from an existing prototype builder instance.- Parameters:
- builder- existing builder prototype to update this builder from
- Returns:
- updated builder instance
 
- 
configDeprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
- configin interface- ConfigBuilderSupport.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
 
- 
configUpdate builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
- configin interface- ConfigBuilderSupport.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
 
- 
serviceRegistryProvide an explicit registry instance to use.If not configured, the GlobalServiceRegistrywould be used to discover services.- Parameters:
- registry- service registry instance
- Returns:
- updated builder instance
 
- 
enabledIf 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:
 
- 
embeddingStorepublic BUILDER embeddingStore(dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore) Embedding store to use in the content retriever.- Parameters:
- embeddingStore- an- Optionaldefault service bean is injected or- embedding-model.service-registry.namedcan be used to select a named bean
- Returns:
- updated builder instance
- See Also:
 
- 
clearEmbeddingModelClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
embeddingModelExplicit embedding model to use in the content retriever.- Parameters:
- embeddingModel- an- Optionaldefault service bean is injected or- embedding-model.service-registry.namedcan be used to select a named bean
- Returns:
- updated builder instance
- See Also:
 
- 
clearDisplayNameClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
displayNameThe display name.
- 
clearMaxResultsClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
maxResultsThe maximum number of results.
- 
clearMinScoreClear existing value of this property.- Returns:
- updated builder instance
- See Also:
 
- 
minScoreThe minimum score threshold.
- 
enabledpublic boolean enabled()If set tofalse, embedding store content retriever will be disabled even if configured.- Returns:
- the enabled
 
- 
embeddingStorepublic Optional<dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment>> embeddingStore()Embedding store to use in the content retriever.- Returns:
- the embedding store
 
- 
embeddingModelExplicit embedding model to use in the content retriever.- Returns:
- the embedding model
 
- 
displayNameThe display name.- Returns:
- the display name
 
- 
maxResultsThe maximum number of results.- Returns:
- the max results
 
- 
minScoreThe minimum score threshold.- Returns:
- the min score
 
- 
configIf 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
- 
preBuildPrototypeprotected void preBuildPrototype()Handles providers and decorators.
- 
validatePrototypeprotected void validatePrototype()Validates required properties.
 
- 
config(io.helidon.config.Config)