tantaraio / voy

🕸️🦀 A WASM vector similarity search written in Rust
https://www.npmjs.com/package/voy-search
Apache License 2.0
867 stars 31 forks source link

Feature request: remove resource by id #44

Closed ocavue closed 1 year ago

ocavue commented 1 year ago

Currently Voy.remove() API requires a full resource to work. We have to store the whole resource (including the embeddings array) somewhere so whtat we can do the deletion later. It would be great if we can just delete a resource by giving an id string.

DawChihLiou commented 1 year ago

Hey @ocavue thanks for the issue! Currently remove() needs the embeddings. Voy uses the embeddings as coordinates to index the resources at the moment but I'm looking into other data structure to replace the current index.

Voy doesn't store the embeddings so having your own storage layer might be the best solution at the moment.