Adds precomputed vectors and their 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, with each vector representing a document. |
documents* | DocumentInterface<Record<string, any>>[] | An array of |
options | AddDocumentOptions | Optional configurations for adding documents, potentially covering indexing or metadata handling. |