Run texts through the embeddings and persist in vectorstore. If the document IDs are passed, the existing documents (if any) will be overwritten with the new ones.
addDocuments(
documents: Document<Record<string, any>>[],
options: AddVectorOptions = {}
): Promise<string[]>| Name | Type | Description |
|---|---|---|
documents* | Document<Record<string, any>>[] | The corresponding documents to be added to the collection. |
options | AddVectorOptions | Default: {}Optional parameters for adding documents. This may include the IDs and metadata of the documents to be added. Defaults to an empty object. |