The type of metadata associated with each document,
defaulting to Record<string, any>.
Optionaloptions: OptionalbatchOptions: RunnableBatchOptions & { returnExceptions?: false }Optionaloptions: OptionalbatchOptions: RunnableBatchOptions & { returnExceptions: true }Optionaloptions: OptionalbatchOptions: RunnableBatchOptionsOptionalsuffix: stringOptionaloptions: Partial<RunnableConfig<Record<string, any>>>Optionaloptions: Partial<RunnableConfig<Record<string, any>>>
Interface for a base retriever that defines core functionality for retrieving relevant documents from a source based on a query.
The
BaseRetrieverInterfacestandardizes thegetRelevantDocumentsmethod, enabling retrieval of documents that match the query criteria.