Abstract class for interacting with a remote server to retrieve relevant documents based on a given query.

Hierarchy (view full)

Implements

Constructors

Properties

asyncCaller: AsyncCaller

The authentication method to use, currently implemented is

  • false: no authentication
  • { bearer: string }: Bearer token authentication
headers: Record<string, string>
url: string

The URL of the remote retriever server

Methods

  • Abstract method that should be implemented by subclasses to process the JSON response from the server and convert it into an array of Document instances.

    Parameters

    Returns DocumentInterface[]

    An array of Document instances.

Generated using TypeDoc