Class ContentRetrieverConfig.BuilderBase<BUILDER extends ContentRetrieverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ContentRetrieverConfig>
- 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:
ContentRetrieverConfig.Builder
- Enclosing interface:
ContentRetrieverConfig
ContentRetrieverConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of displayName.Clear existing value of embeddingModel.Clear existing value of maxResults.Clear existing value of minScore.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).Display name for this content retriever configuration.displayName(String displayName) Display name for this content retriever configuration.Explicit embedding model to use in the content retriever.embeddingModel(String embeddingModel) Explicit embedding model to use in the content retriever.Embedding store to use in the content retriever.embeddingStore(String embeddingStore) Embedding store to use in the content retriever.booleanenabled()If set tofalse, component will be disabled even if configured.enabled(boolean enabled) If set tofalse, component will be disabled even if configured.from(ContentRetrieverConfig prototype) Update this builder from an existing prototype instance.from(ContentRetrieverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Maximum number of results to return from the retriever.maxResults(int maxResults) Maximum number of results to return from the retriever.minScore()Minimum score threshold for retrieved results.minScore(double minScore) Minimum score threshold for retrieved results.protected voidHandles providers and decorators.toString()type()Type of content retriever to create.type(ContentRetrieverType type) Type of content retriever to create.protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ContentRetrieverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContentRetrieverConfig> - 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:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ContentRetrieverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContentRetrieverConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
If set tofalse, component will be disabled even if configured.- Parameters:
enabled- whether the component should be enabled- Returns:
- updated builder instance
- See Also:
-
type
Type of content retriever to create.- Parameters:
type- the content retriever type- Returns:
- updated builder instance
- See Also:
-
embeddingStore
Embedding store to use in the content retriever.The value identifies a named service that provides embedding store implementation used to retrieve relevant content.
- Parameters:
embeddingStore- the embedding store service name- Returns:
- updated builder instance
- See Also:
-
clearEmbeddingModel
Clear existing value of embeddingModel.- Returns:
- updated builder instance
- See Also:
-
embeddingModel
Explicit embedding model to use in the content retriever.If empty, the default embedding model is used (as resolved by the service registry). If set, the value identifies a named service that provides embedding model bean.
- Parameters:
embeddingModel- embedding model reference if configured- Returns:
- updated builder instance
- See Also:
-
clearDisplayName
Clear existing value of displayName.- Returns:
- updated builder instance
- See Also:
-
displayName
Display name for this content retriever configuration.- Parameters:
displayName- the display name if configured- Returns:
- updated builder instance
- See Also:
-
clearMaxResults
Clear existing value of maxResults.- Returns:
- updated builder instance
- See Also:
-
maxResults
Maximum number of results to return from the retriever.If empty, the retriever implementation default is used.
- Parameters:
maxResults- maximum results if configured- Returns:
- updated builder instance
- See Also:
-
clearMinScore
Clear existing value of minScore.- Returns:
- updated builder instance
- See Also:
-
minScore
Minimum score threshold for retrieved results.If empty, the retriever implementation default is used.
- Parameters:
minScore- minimum score if configured- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()If set tofalse, component will be disabled even if configured.- Returns:
- whether the component should be enabled
-
type
Type of content retriever to create.- Returns:
- the content retriever type
-
embeddingStore
Embedding store to use in the content retriever.The value identifies a named service that provides embedding store implementation used to retrieve relevant content.
- Returns:
- the embedding store service name
-
embeddingModel
Explicit embedding model to use in the content retriever.If empty, the default embedding model is used (as resolved by the service registry). If set, the value identifies a named service that provides embedding model bean.
- Returns:
- embedding model reference if configured
-
displayName
Display name for this content retriever configuration.- Returns:
- the display name if configured
-
maxResults
Maximum number of results to return from the retriever.If empty, the retriever implementation default is used.
- Returns:
- maximum results if configured
-
minScore
Minimum score threshold for retrieved results.If empty, the retriever implementation default is used.
- Returns:
- minimum score if configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)