Package dev.langchain4j.retriever
Interface Retriever<T>
- Type Parameters:
T- the type of the items.
- All Known Implementing Classes:
EmbeddingStoreRetriever
Deprecated, for removal: This API element is subject to removal in a future version.
Interface for retrieving relevant items.
-
Method Summary
Modifier and TypeMethodDescriptionfindRelevant(Object memoryId, String text) Deprecated, for removal: This API element is subject to removal in a future version.Find relevant items for the given text and memoryId.findRelevant(String text) Deprecated, for removal: This API element is subject to removal in a future version.Find relevant items for the given text.default ContentRetrieverDeprecated, 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.Find relevant items for the given text.- Parameters:
text- the text to search for.- Returns:
- the list of relevant items.
-
findRelevant
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.
-
ContentRetrieverinstead.