Initializes a new instance of VectorStoreRetriever with the specified configuration.
This constructor configures the retriever to interact with a given VectorStore
and supports different retrieval strategies, including similarity search and maximal
marginal relevance (MMR) search. Various options allow customization of the number
of documents retrieved per query, filtering based on conditions, and fine-tuning
MMR-specific parameters.
constructor<
V extends VectorStoreInterface = VectorStoreInterface
>(fields: VectorStoreRetrieverInput<V>): VectorStoreRetriever<V>| Name | Type | Description |
|---|---|---|
fields* | VectorStoreRetrieverInput<V> | Configuration options for setting up the retriever:
|