Adds an array of documents to the vector store.
This method embeds the provided documents and stores them within the vector store. Additional options can be specified for custom behavior during the addition process.
An array of documents to embed and add to the vector store.
Optionaloptions: AddDocumentOptionsOptional settings to customize document addition.
A promise that resolves to an array of document IDs or void,
depending on the implementation.
Optionaloptions: OptionalbatchOptions: RunnableBatchOptions & { returnExceptions?: false }Optionaloptions: OptionalbatchOptions: RunnableBatchOptions & { returnExceptions: true }Optionaloptions: OptionalbatchOptions: RunnableBatchOptionsOptionalsuffix: stringOptionaloptions: Partial<RunnableConfig<Record<string, any>>>Optionaloptions: Partial<RunnableConfig<Record<string, any>>>
Interface for a retriever that uses a vector store to store and retrieve document embeddings. This retriever interface allows for adding documents to the underlying vector store and conducting retrieval operations.
VectorStoreRetrieverInterfaceextendsBaseRetrieverInterfaceto provide document retrieval capabilities based on vector similarity.VectorStoreRetrieverInterface