Interface Retriever

  • All Implemented Interfaces:

    @Deprecated(forRemoval = true) 
    public interface Retriever<T>
    
                        

    Interface for retrieving relevant items.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • findRelevant

         abstract List<T> findRelevant(String text)

        Find relevant items for the given text.

        Parameters:
        text - the text to search for.
        Returns:

        the list of relevant items.

      • findRelevant

         List<T> findRelevant(Object memoryId, String text)

        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.