Package dev.langchain4j.retriever
Class EmbeddingStoreRetriever
java.lang.Object
dev.langchain4j.retriever.EmbeddingStoreRetriever
- All Implemented Interfaces:
Retriever<TextSegment>
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddingStoreRetriever
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, Double minScore) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfindRelevant
(String text) Deprecated.Find relevant items for the given text.static EmbeddingStoreRetriever
from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel) Deprecated.static EmbeddingStoreRetriever
from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults) Deprecated.static EmbeddingStoreRetriever
from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, double minScore) Deprecated.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.
-
-
Method Details
-
findRelevant
Deprecated.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. -
from
public static EmbeddingStoreRetriever from(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults) Deprecated. -
from
public static EmbeddingStoreRetriever from(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, double minScore) Deprecated.
-
EmbeddingStoreContentRetriever
instead.