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.
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. |