Class VectorStoreRetriever<V>

Class for performing document retrieval from a VectorStore. Can perform similarity search or maximal marginal relevance search.

Type Parameters

Hierarchy

Constructors

Properties

k: number = 4
searchType: string = "similarity"
vectorStore: V
filter?: V["FilterType"]

Methods

  • Parameters

    • documents: Document<Record<string, any>>[]
    • Optional options: AddDocumentOptions

    Returns Promise<void | string[]>

Generated using TypeDoc