Adds precomputed vectors and corresponding documents to the vector store.
addVectors(
vectors: number[][],
documents: DocumentInterface<Record<string, any>>[],
options: AddDocumentOptions
): Promise<void | string[]>| Name | Type | Description |
|---|---|---|
vectors* | number[][] | An array of vectors representing each document. |
documents* | DocumentInterface<Record<string, any>>[] | Array of documents associated with each vector. |
options | AddDocumentOptions | Optional configuration for adding vectors, such as indexing. |