Method to add documents to the vector store. It first converts the documents to vectors using the embeddings and then adds them to the vector store.
addDocuments(
documents: Document<Record<string, any>>[],
options: AddVectorOptions
): Promise<string[]>| Name | Type | Description |
|---|---|---|
documents* | Document<Record<string, any>>[] | Documents to be added to the vector store. |
options | AddVectorOptions | Optional parameters for adding documents. |