You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keyed API: remove() / tombstone support for incremental integrators #10
Auditing vecq v0.1.1 as a potential replacement for usearch in codecoradev/cora-code (Brain Mode vector index). Our flow is incremental: symbols are embedded once (fingerprinted), stale symbols get removed by key, and search must return stable integer keys, not positional indices.
Current VecqIndex API is positional and append-only: add(&[f32]), search(&q, k) -> Vec<(usize, f32)> — no removal path.
Proposal
Any of these would unblock adoption:
Keyed layer: add_keyed(key: u64, v: &[f32]), remove_keyed(key: u64) -> bool implemented as tombstones (skip in scan), compacted on to_bytes() when tombstone ratio exceeds a threshold.
Or a documented rebuild helper (retain(pred) / compact()), so integrators can rebuild from source-of-truth cheaply — at cora's scale (2k vectors ≈ 64 ms) this is viable.
Why it matters
usearch gives us keyed insert/remove; without an equivalent, every wrapper reimplements key↔index mapping and rebuild logic differently. A small built-in story keeps the "SQLite profile" promise (simple, embeddable, no footguns).
Happy to contribute the implementation with tests if the design direction is agreed.
Activity
feat(core): keyed API — add_keyed/remove_keyed/tombstones (#10)
feat(core): keyed API — add_keyed/remove_keyed/tombstones (#10) (#16)
release: v0.2.0 (#21)
chore: release v0.3.0 to main (#46)
chore: release v0.3.1 to main (#55)