Package dev.langchain4j.retriever
Class EmbeddingStoreRetriever
java.lang.Object
dev.langchain4j.retriever.EmbeddingStoreRetriever
- All Implemented Interfaces:
Retriever<TextSegment>
@Deprecated(forRemoval=true)
public class EmbeddingStoreRetriever
extends Object
implements Retriever<TextSegment>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorDescriptionEmbeddingStoreRetriever
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, Double minScore) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfindRelevant
(String text) Deprecated, for removal: This API element is subject to removal in a future version.Find relevant items for the given text.static EmbeddingStoreRetriever
from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel) Deprecated, for removal: This API element is subject to removal in a future version.static EmbeddingStoreRetriever
from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults) Deprecated, for removal: This API element is subject to removal in a future version.static EmbeddingStoreRetriever
from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, double minScore) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.retriever.Retriever
findRelevant, toContentRetriever
-
Constructor Details
-
EmbeddingStoreRetriever
public EmbeddingStoreRetriever(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, Double minScore) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
findRelevant
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Retriever
Find relevant items for the given text.- Specified by:
findRelevant
in interfaceRetriever<TextSegment>
- Parameters:
text
- the text to search for.- Returns:
- the list of relevant items.
-
from
public static EmbeddingStoreRetriever from(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel) Deprecated, for removal: This API element is subject to removal in a future version. -
from
public static EmbeddingStoreRetriever from(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults) Deprecated, for removal: This API element is subject to removal in a future version. -
from
public static EmbeddingStoreRetriever from(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, double minScore) Deprecated, for removal: This API element is subject to removal in a future version.
-
EmbeddingStoreContentRetriever
instead.