The authentication method to use, currently implemented is
The key in the JSON body to put the query in
The key in the JSON response to get the metadata from
The key in the JSON response to get the page content from
The key in the JSON response to get the response from
The URL of the remote retriever server
Creates the JSON body of the request sent to the API. The inputKey
is
set to the query.
Query string to be sent to the API.
An object with the inputKey
set to the query.
Processes the JSON response from the API. It returns an array of
Document
objects, each created with the page content and metadata
extracted from the response using the pageContentKey
and
metadataKey
, respectively.
JSON response from the API.
An array of Document
objects.
Generated using TypeDoc
Specific implementation of the
RemoteRetriever
class designed to retrieve documents from a remote source using a JSON-based API. It implements theRemoteLangChainRetrieverParams
interface which defines the keys used to interact with the JSON API.