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 ops parity with usearch: relabel + multi-vectors-per-key #26
usearch keyed API has relabel and multi=True (several vectors under one key). vecq's keyed layer (#10/#16) has add/remove/search/compact but neither.
Design
relabel(old_key, new_key) -> bool: pure HashMap operation (O(1)); fails if new_key exists or old_key unknown. Slot indices untouched — trivially safe.
multi: add_keyed_multi(key, v) appends another slot under the same key; remove_keyed(key) then must remove ALL slots for the key (or gain a per-slot variant remove_keyed_at(key, slot)). Internal map becomes HashMap<u64, SmallVec<[usize; 1]>>; search_keyed dedupes keys across slots (max score per key).
Decide API shape first: flag on the index (MultiKeyed::new) vs always-multi with single-slot fast path. Keep the common single-vector-key case allocation-free.
Acceptance
relabel with conflict + unknown-key semantics tested
multi-key add/search/remove/compact round trip
search_keyed returns best score per key in multi mode
No perf regression on single-key workloads (bench before/after)
Activity
feat(core): keyed parity with usearch — relabel + multi-vectors-per-k…
chore: release v0.3.0 to main (#46)
chore: release v0.3.1 to main (#55)