addVectors(
vectors: number[][],
documents: DocumentInterface<Record<string, any>>[],
options: | Name | Type | Description |
|---|---|---|
vectors* | number[][] | |
documents* | DocumentInterface<Record<string, any>>[] | |
options | AddDocumentOptions |
Adds precomputed vectors and their corresponding documents to the vector store.
An array of vectors, with each vector representing a document.
An array of DocumentInterface instances corresponding to each vector.
Optional configurations for adding documents, potentially covering indexing or metadata handling.