Repository navigation
Conversation
012b220 to
ccd7d74
Compare
Additional verified runtime and release benchmark evidence (2026-11-02)Native Node runtime, rebuilt from combined current-source changes
Optimized release benchmark, combined branchSingle local ruOS desktop, deterministic synthetic in-memory flat search, 384D, 10%/1% metadata eligibility, k=10:
100k variant was an ephemeral modification to the ignored 10k benchmark harness, restored after execution. These release results are not a matched unmodified-main release performance comparison, nor production latency guarantees. Release 100k shows linear-scan cost remains a scale risk and warrants a metadata index/predicate-aware ANN strategy. Gates unchangedBoth implementation PRs remain draft. No hosted GitHub CI status reported. No 1M load test, multi-thread mutation stress, service authorization, persistence crash or npm-published-binary certification. Explicit duplicate ID reject semantics are a compatibility review item. |
|
Not superseded by #1368. That PR keeps upsert semantics, and this one turns a duplicate-id insert into an error, which breaks |
|
Closing as superseded by main commit 8ce9cfe (ruvector-core 2.5.1, #1443): VectorDB::insert, insert_batch (whole batch, before storage) and search already reject NaN/Inf vectors with InvalidInput. This PR's other half, rejecting an explicit duplicate ID, now contradicts main: re-inserting an existing id is a deliberate upsert on main (the old HNSW node is retired, no ghost). Its base #1315 was closed unmerged on 2026-11-06 and filtered top-k completeness is already locked in by tests/retrieval_correctness.rs. If strict duplicate-ID rejection is wanted as an opt-in, please open a fresh PR against main. |
Stacked implementation, depends on #1315
Review order: first #1315 (filtered top-k), then this PR (input integrity). This PR is deliberately based on
fix/filtered-topk-1313to avoid competing edits tovector_db.rs. After #1315 merges, retarget this PR tomainand re-run hosted CI. Do not merge out of order.Tracking issue: #1313. Related prior reports: #1134 (Python SDK), #931 (nonfinite float safety).
Confirmed regressions against unmodified main
test_duplicate_id_is_rejected_without_mutating_existing_vectorfailed on main and passes with this change.test_nonfinite_insert_and_query_rejectedfailed on main and passes with this change.Fix
Combined state validation (both stacked changes together)
cargo test -p ruvector-core --lib: 284 passed, 0 failed, 2 ignored.cargo test -p ruvector-core --no-default-features --lib: 284 passed, 0 failed, 2 ignored.Compatibility decision required before merge
Rejecting duplicate IDs is a behavior change for callers who relied on implicit upsert. It prevents stale HNSW nodes and score/vector mismatches, but may break those callers. Review whether an explicit atomic upsert API or migration guidance is necessary. This draft is not release approval.
Known limits
This fixes the VectorDB contract only. Low-level HNSW, MemoryStorage, npm binary and Python SDK behaviors are not universally covered. Auto-generated ID collision, crash consistency, full concurrent snapshot semantics and 100k/1M load tests remain separate qualification tasks. No hosted CI has reported a status yet.