Interface EmbeddingStoreContentRetrieverConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
EmbeddingStoreContentRetrieverConfig.BuilderBase.EmbeddingStoreContentRetrieverConfigImpl
Configuration class for
EmbeddingStoreContentRetrieverConfigBlueprint
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forEmbeddingStoreContentRetrieverConfig
.static class
EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER extends EmbeddingStoreContentRetrieverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends EmbeddingStoreContentRetrieverConfig> Fluent API builder base forEmbeddingStoreContentRetrieverConfig
. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new fluent API builder to customize configuration.builder
(EmbeddingStoreContentRetrieverConfig instance) Create a new fluent API builder from an existing instance.create()
Create a new instance with default values.Create a new instance from configuration.The display name.Optional
<dev.langchain4j.model.embedding.EmbeddingModel> Explicit embedding model to use in the content retriever.dev.langchain4j.store.embedding.EmbeddingStore
<dev.langchain4j.data.segment.TextSegment> Embedding store to use in the content retriever.boolean
enabled()
If set tofalse
, embedding store content retriever will be disabled even if configured.The maximum number of results.minScore()
The minimum score threshold.
-
Field Details
-
CONFIG_ROOT
The default configuration prefix.- See Also:
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
static EmbeddingStoreContentRetrieverConfig.Builder builder(EmbeddingStoreContentRetrieverConfig instance) Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
enabled
boolean enabled()If set tofalse
, embedding store content retriever will be disabled even if configured.- Returns:
- whether the content retriever should be enabled
-
embeddingStore
dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore()Embedding store to use in the content retriever.- Returns:
- an
Optional
containing the embedding store
-
embeddingModel
Optional<dev.langchain4j.model.embedding.EmbeddingModel> embeddingModel()Explicit embedding model to use in the content retriever.- Returns:
- an
Optional
containing the embedding model bean name or "discovery:auto" if the bean must be discovered automatically
-
displayName
The display name. -
maxResults
The maximum number of results. -
minScore
The minimum score threshold.
-