Repository navigation
Conversation
…file - Bump optional vecq-core dep to 0.3 (issue #1161). API surface used by the integration (new/add/search/len/dim/to_bytes/from_bytes) is unchanged; 0.3.0 reads all persisted formats v1-v1.5. - Switch create_index() to VecqIndex::with_residual: 4-bit base quantization + residual refinement. with_residual pins bits=4 (residual requires the 4-bit width), so the storage profile matches the legacy 0.1 build while recall improves on noise-dominated data (~2x scan cost). Avoids the new 5-bit default deliberately — the recommended profile from #1161 is 4-bit + residual. - File-format note: indexes written by 0.3.0 are not readable by older uteke builds (forward lock-in). Safe because SQLite remains the source of truth and 'uteke repair' rebuilds the index from stored embeddings. Verified: - cargo test -p uteke-core --no-default-features --features onnx,vecq --lib: 529 passed, 0 failed - cargo test -p uteke-core --lib (usearch default): 528 passed - cargo build -p uteke-cli -p uteke-server -p uteke-mcp --no-default-features --features vecq: green
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
Collaborator
Author
|
Closing in favor of a new PR — branch prefix 'deps/' is not in the allowed list (Branch Naming check) and 'deps' is not a valid conventional-commit type. Reopening as build/vecq-core-0.3.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
vecq-coreoptional dep from0.1to0.3(crates/uteke-core/Cargo.toml+Cargo.lock).create_index()toVecqIndex::with_residual(dims, VECQ_SEED)— 4-bit base quantization + residual refinement.with_residualpinsbits=4internally (residual requires the 4-bit width), so no explicitset_bitscall is needed.Why
uteke repairrebuilds the index from stored embeddings if a rollback ever encounters a newer-format index file. 0.3.0 reads all older formats (v1–v1.5), so existing persisted indexes keep working.Testing
cargo test -p uteke-core --no-default-features --features "onnx,vecq" --lib→ 529 passed, 0 failed (includes the 8 vector-module tests: roundtrip, save/load, top-k, eviction)cargo test -p uteke-core --lib(default usearch backend) → 528 passed, 0 failed — regression-freecargo build -p uteke-cli -p uteke-server -p uteke-mcp --no-default-features --features vecq→ greencargo fmt --all -- --check→ cleanvecq-checkjob will re-verify both feature builds