Interface Retriever<T>

Type Parameters:
T - the type of the items.
All Known Implementing Classes:
EmbeddingStoreRetriever

@Deprecated public interface Retriever<T>
Deprecated.
Interface for retrieving relevant items. This class is deprecated, use ContentRetriever instead.
  • Method Details

    • findRelevant

      List<T> findRelevant(String text)
      Deprecated.
      Find relevant items for the given text.
      Parameters:
      text - the text to search for.
      Returns:
      the list of relevant items.
    • findRelevant

      default List<T> findRelevant(Object memoryId, String text)
      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

      default ContentRetriever toContentRetriever()
      Deprecated.