Adds documents to the vector store, embedding them first through the
embeddings instance.
addDocuments(
documents: DocumentInterface<Record<string, any>>[],
options: AddDocumentOptions
): Promise<void | string[]>| Name | Type | Description |
|---|---|---|
documents* | DocumentInterface<Record<string, any>>[] | Array of documents to embed and add. |
options | AddDocumentOptions | Optional configuration for embedding and storing documents. |