Optional
options: AddDocumentOptionsOptional
options: AddDocumentOptionsOptional
kOrFields: number | Partial<VectorStoreRetrieverInput<VectorStoreInterface>>Optional
filter: string | objectOptional
callbacks: CallbacksOptional
tags: string[]Optional
metadata: Record<string, unknown>Optional
verbose: booleanOptional
maxText to look up documents similar to.
Optional
k: numberOptional
filter: string | objectOptional
callbacks: CallbacksOptional
filter: string | objectOptional
k: numberOptional
filter: string | objectOptional
callbacks: Callbacks
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.