vectra icon indicating copy to clipboard operation
vectra copied to clipboard

Add batch insert function to LocalIndex

Open JLambertazzo opened this issue 4 months ago • 0 comments

Batch insert would be very useful to us as we use Vectra to prototype RAG solutions and tend to load in a large amount of data at once.

Setup tests using node:assert to avoid modifying dependencies. Provided test cases pass Screenshot 2025-08-31 170022

Also fixed a bug where the items array on _data was being passed by reference in the call to Object.assign. This was causing the third test case to fail because any mutation of this._update.items was also mutating this._data.items (see debug repl below). Screenshot 2025-08-31 165722

JLambertazzo avatar Aug 31 '25 21:08 JLambertazzo