Interface Retriever<T>

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

@Deprecated(forRemoval=true) public interface Retriever<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Please use ContentRetriever instead.
Interface for retrieving relevant items.
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<T>
    findRelevant(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.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Find relevant items for the given text.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Details

    • findRelevant

      List<T> findRelevant(String text)
      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

      default List<T> findRelevant(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.

      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, for removal: This API element is subject to removal in a future version.