接口 Retriever<T>

类型参数:
T - the type of the items.

@Deprecated public interface Retriever<T>
已过时。
Interface for retrieving relevant items. This class is deprecated, use ContentRetriever instead.
  • 方法详细资料

    • findRelevant

      List<T> findRelevant(String text)
      已过时。
      Find relevant items for the given text.
      参数:
      text - the text to search for.
      返回:
      the list of relevant items.
    • findRelevant

      default List<T> findRelevant(Object memoryId, String text)
      已过时。
      Find relevant items for the given text and memoryId.

      Default implementation throws an exception.

      参数:
      memoryId - the memoryId to search for.
      text - the text to search for.
      返回:
      the list of relevant items.
    • toContentRetriever

      default ContentRetriever toContentRetriever()
      已过时。