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

Voy Class #34

Closed DawChihLiou closed 1 year ago

DawChihLiou commented 1 year ago

Expose a Voy Class in the API that persist index.

class Voy {
  private index: Index;
  constructor(resource: Resource): void;
  index(resource: Resource): void;
  search(query: Float32Array): SearchResult
  add(resource: Resource): void;
  remove(resource: Resource): void;
  clear(): void 
}