Ask a question to get started
Enter to send•Shift+Enter new line
Method to add vectors to the vector store. It first initializes the index if it hasn't been initialized yet, then adds the vectors to the index and the documents to the document store.
addVectors(vectors: number[][], documents: Document<Record<string, any>>[]): Promise<void>
vectors
number[][]
The vectors to be added to the vector store.
documents
Document<Record<string, any>>[]
The documents corresponding to the vectors.