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.
Optional
options: AddDocumentOptionsOptional settings to customize document addition.
A promise that resolves to an array of document IDs or void
,
depending on the implementation.
Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptions & { Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptions & { Optional
options: Partial<RunnableConfig<Record<string, any>>> | Partial<RunnableConfig<Record<string, any>>>[]Optional
batchOptions: RunnableBatchOptionsRetrieves documents relevant to a given query, allowing optional configurations for customization.
A string representing the query to search for relevant documents.
Optional
config: Callbacks | BaseCallbackConfig(optional) Configuration options for the retrieval process, which may include callbacks and additional context settings.
A promise that resolves to an array of DocumentInterface
instances,
each containing metadata specified by the Metadata
type parameter.
Optional
options: Partial<RunnableConfig<Record<string, any>>>Optional
options: 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.
VectorStoreRetrieverInterface
extendsBaseRetrieverInterface
to provide document retrieval capabilities based on vector similarity.VectorStoreRetrieverInterface