Class EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
java.lang.Object
dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
- Enclosing class:
EmbeddingStoreContentRetriever
public static class EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
displayName
(String displayName) dynamicFilter
(Function<Query, Filter> dynamicFilter) dynamicMaxResults
(Function<Query, Integer> dynamicMaxResults) dynamicMinScore
(Function<Query, Double> dynamicMinScore) embeddingModel
(EmbeddingModel embeddingModel) embeddingStore
(EmbeddingStore<TextSegment> embeddingStore) maxResults
(Integer maxResults) toString()
-
Method Details
-
maxResults
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder maxResults(Integer maxResults) -
minScore
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder minScore(Double minScore) -
filter
-
displayName
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder displayName(String displayName) -
embeddingStore
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder embeddingStore(EmbeddingStore<TextSegment> embeddingStore) -
embeddingModel
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder embeddingModel(EmbeddingModel embeddingModel) -
dynamicMaxResults
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder dynamicMaxResults(Function<Query, Integer> dynamicMaxResults) -
dynamicMinScore
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder dynamicMinScore(Function<Query, Double> dynamicMinScore) -
dynamicFilter
public EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder dynamicFilter(Function<Query, Filter> dynamicFilter) -
build
-
toString
-