Adds an array of documents to the 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 be embedded and stored in the vector store. |
options | AddDocumentOptions | Optional configurations for embedding and storage operations. |