Optional
options: AddDocumentOptionsOptional
options: AddDocumentOptionsOptional
kOrFields: number | Partial<BaseRetrieverInput & { Optional
filter: string | objectOptional
callbacks: CallbackManager | (BaseCallbackHandlerMethodsClass | BaseCallbackHandler)[]Optional
tags: string[]Optional
metadata: Record<string, unknown>Optional
verbose: booleanOptional
k: numberOptional
filter: string | objectOptional
callbacks: CallbackManager | (BaseCallbackHandlerMethodsClass | BaseCallbackHandler)[]Optional
filter: string | objectOptional
k: numberOptional
filter: string | objectOptional
callbacks: CallbackManager | (BaseCallbackHandlerMethodsClass | BaseCallbackHandler)[]Optional
maxText to look up documents similar to.
Generated using TypeDoc
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.