Adds an array of documents to the vector store, embedding them as part of the storage process.
This method delegates document embedding and storage to the addDocuments
method of the underlying vector store.
addDocuments(
documents: DocumentInterface<Record<string, any>>[],
options: AddDocumentOptions
): Promise<void | string[]>| Name | Type | Description |
|---|---|---|
documents* | DocumentInterface<Record<string, any>>[] | An array of documents to embed and add to the vector store. |
options | AddDocumentOptions | Optional settings to customize document addition. |