Package dev.langchain4j.retriever
Interface Retriever<T>
- Type Parameters:
T
- the type of the items.
- All Known Implementing Classes:
EmbeddingStoreRetriever
Deprecated.
Interface for retrieving relevant items.
This class is deprecated, use
ContentRetriever
instead.-
Method Summary
Modifier and TypeMethodDescriptionfindRelevant
(Object memoryId, String text) Deprecated.Find relevant items for the given text and memoryId.findRelevant
(String text) Deprecated.Find relevant items for the given text.default ContentRetriever
Deprecated.
-
Method Details
-
findRelevant
Deprecated.Find relevant items for the given text.- Parameters:
text
- the text to search for.- Returns:
- the list of relevant items.
-
findRelevant
Deprecated.Find relevant items for the given text and memoryId.Default implementation throws an exception.
- Parameters:
memoryId
- the memoryId to search for.text
- the text to search for.- Returns:
- the list of relevant items.
-
toContentRetriever
Deprecated.
-