Skip to content

deps(core): bump vecq-core to 0.3.0 — adopt 4-bit + residual profile - #1163

Closed
ajianaz wants to merge 1 commit into
developfrom
deps/vecq-core-0.3.0
Closed

ajianaz wants to merge 1 commit into
developfrom
deps/vecq-core-0.3.0

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

What

  • Bump vecq-core optional dep from 0.1 to 0.3 (crates/uteke-core/Cargo.toml + Cargo.lock).
  • Switch the vecq backend's create_index() to VecqIndex::with_residual(dims, VECQ_SEED) — 4-bit base quantization + residual refinement. with_residual pins bits=4 internally (residual requires the 4-bit width), so no explicit set_bits call is needed.

Why

  • Closes chore(deps): bump optional vecq-core feature dep to 0.3.0 #1161. vecq-core 0.3.0 is live on crates.io and brings the keyed API, Matryoshka working_dim, cascade search, residual mode, configurable width, and zero-copy VecqView.
  • Profile decision (per chore(deps): bump optional vecq-core feature dep to 0.3.0 #1161 discussion): 4-bit + residual — same storage footprint as the legacy 0.1 profile, better recall on noise-dominated data at ~2x scan cost. Deliberately avoids the new 5-bit default.
  • File-format forward lock-in is accepted: SQLite stays the source of truth; uteke repair rebuilds 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-free
  • cargo build -p uteke-cli -p uteke-server -p uteke-mcp --no-default-features --features vecq → green
  • cargo fmt --all -- --check → clean
  • CI vecq-check job will re-verify both feature builds

…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
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz

ajianaz commented Aug 31, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(deps): bump optional vecq-core feature dep to 0.3.0

1 participant