Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptions & { Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptions & { Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptionsRetrieves documents relevant to a given query, allowing optional configurations for customization.
A string representing the query to search for relevant documents.
Optional
config: Callbacks | BaseCallbackConfig(optional) Configuration options for the retrieval process, which may include callbacks and additional context settings.
A promise that resolves to an array of DocumentInterface
instances,
each containing metadata specified by the Metadata
type parameter.
Optional
options: Partial<RunnableConfig<Record<string, any>>>Optional
options: 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
BaseRetrieverInterface
standardizes thegetRelevantDocuments
method, enabling retrieval of documents that match the query criteria.