Adds vectors to the index.
addVectors(
vectors: number[][],
documents: Document<Record<string, any>>[],
documentProps: DocumentProps
): Promise<void | string[]>If the index does not already exist, it will be created if ensureIndexExists is true.
| Name | Type | Description |
|---|---|---|
vectors* | number[][] | The vectors to add to the index. |
documents* | Document<Record<string, any>>[] | The documents to add to the index. |
documentProps | DocumentProps | The properties of the documents to add to the index, specifically the ids. |