Ask a question to get started
Enter to sendā¢Shift+Enter new line
Method to add vectors to the memory vector store. It creates MemoryVector instances for each vector and document pair and adds them to the store.
MemoryVector
addVectors(vectors: number[][], documents: Document<Record<string, any>>[]): Promise<void>
vectors
number[][]
Array of vectors to be added to the store.
documents
Document<Record<string, any>>[]
Array of Document instances corresponding to the vectors.
Document