Skip to content

vector-store: usearch 2.26.4 with numkong's f32 angular kernels accumulating in f32 - #634

Merged
ewienik merged 1 commit into
scylladb:masterfrom
swasik:VECTOR-720-usearch-numkong
Oct 14, 2026
Merged

ewienik merged 1 commit into
scylladb:masterfrom
swasik:VECTOR-720-usearch-numkong

Conversation

@swasik

@swasik swasik commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

usearch 2.22.0 → 2.26.4 (VECTOR-720). From 2.25 usearch takes its distance kernels from NumKong instead of simsimd. Stock NumKong 7.8.5 costs 22% of the searches per second on Graviton4 and 44% of the index build time, because every f32 kernel widens each lane to f64 before the multiply-add (ashvardanian/NumKong#392). With f32 accumulation and the SVE kernel unrolled into two FMA chains (ashvardanian/NumKong#393) the new usearch beats 2.22.0 on F32 and runs F16/BF16 6–7× faster than today's release, which executes simsimd's serial kernels for every non-f32 quantization on Linux ARM (VECTOR-1027, #633).
The upgrade also fixes search stalls during row deletions, reported from production (details on VECTOR-720). usearch 2.22.0's index_dense finds keys through a table with an identity hash and power-of-two linear probing, so Vector Store's dense, ascending keys form one long run of slots, and remove() walks that run from the key's slot to its end. Vector Store runs every remove exclusively (mod operation in vs_index/usearch.rs), so searches on the index wait for the scan: on a 136M-row index one delete costs ~0.31 s with the node at 2–3% CPU, and 2 deletes/s already put half of the searches over 100 ms. usearch 2.26 hashes the keys with SplitMix64 (unum-cloud/USearch#773, for unum-cloud/USearch#770), and the stall is gone (see "Deletes" below). This part does not depend on numkong.

What it does

  • usearch = "2.26.4"; numkong pinned through [patch.crates-io] to the commit of Option to accumulate the f32 angular kernels in f32 on NEON and SVE ashvardanian/NumKong#393, the f32-accumulate-angular-f32 branch of the scylladb/NumKong fork, which adds the opt-in NK_ACCUMULATE_F32_IN_F64=0. The fork lets us ship the faster kernels now instead of waiting for a NumKong release with the option; a NumKong release replaces the pin once one ships it.
  • .cargo/config.toml [env]: CFLAGS_aarch64_unknown_linux_gnu=-DNK_ACCUMULATE_F32_IN_F64=0, and numkong's SME targets off: no machine we ship to has SME, and clang's SME code needs compiler-rt's __arm_get_current_vg, which the gcc link does not provide.
  • Release toolchain: numkong's aarch64 kernels need gcc ≥ 13 or clang, rust:<channel>-bookworm has gcc 12, and a trixie image would produce binaries needing glibc 2.39 (the ubi9-minimal runtime image has 2.34). scripts/release-toolchain.Dockerfile derives the toolchain image from the bookworm one and installs clang 19 from apt.llvm.org for arm64 only; run-with-release-toolchain builds it on first use (cached afterwards). The amd64 build keeps gcc 12, which compiles usearch 2.26.4 and numkong as they are. CONTRIBUTING says so in one sentence.
  • .cargo/config.toml loses the CXXFLAGS_aarch64_unknown_linux_gnu = "-include unistd.h" entry from vector-store: restore SVE detection in usearch's simsimd on aarch64 #633: it fixed the capability probe of usearch 2.22.0's simsimd, which numkong replaces, and numkong's probe includes the header itself.

No Rust code changes: the usearch API we use is unchanged between 2.22.0 and 2.26.4.

Measurements

AWS r8g.4xlarge Vector Store (Graviton4, 16 threads), i8g.2xlarge Scylla, cohere-1m (768-d, cosine), M=16, ef=64, k=10, HTTP searches, ABBA repeats with a 150 s warm-up, CV ≤ 2.2%; the full report with the comparison ids is on VECTOR-720.

Build F32 c64 QPS F32 c128 QPS F32 index build F16 c64 QPS BF16 c64 QPS
A: usearch 2.22.0, release toolchain (master 315f61d) 22090 22257 86 s 3.3k (serial kernel, index 696 s) not measured (serial kernel, as F16)
B: usearch 2.26.4, stock numkong 7.8.5 16427 — 123 s — —
C: usearch 2.26.4 without numkong (usearch's own kernels) 22204 22189 84 s 7.5–8.4k (index 269 s) 22187 [21023–23350] (index 78 s)
D2: this PR's kernels (f32 accumulation, two SVE chains; gcc 14 build) 23051 23145 81 s 20.3–22.9k (D build, index 84 s) 26068 [24488–27647] (D build, stock nk_angular_bf16_*, index 61 s; CQL 25424 at 93.2% recall)
A + #633 (SVE detected, simsimd f16 accumulates in f16) — — — 28.2–28.5k at 92.5% recall 23307 [22604–24010] (index 63 s; CQL 23981 at 93.7%)

CQL recall at c64: A 93.8%, C 93.4%, D 93.5% (F32); D 93.6% (F16).

I8 ('quantization': 'I8', HTTP c64): D 29.7–35.9k (index 46 s, CQL recall 85.9%), A + #633 28.6–33.6k (index 43 s, recall 86.1%): equal within the client's noise (every I8 run is latency-floored at 30k+ QPS). I8 recall is 86% on both builds against 93.5% for F32: the quantization, not the kernels.

Deletes (136M rows)

AWS: 3 × i8g.2xlarge Scylla 2026.2.6 (RF=3) and 2 × r8g.8xlarge Vector Store (32 threads). The table held 136M random 768-d rows in one global I8 cosine index, built by a full scan. 40 inserts/s and ~3 CQL searches/s ran in the background, and DELETEs by full primary key ran at fixed rates (delete-ids, scylladb/vector-store-bench#22). The two builds ran side by side, one per Vector Store node: release 1.11.0 (usearch 2.22.0) and 1.11.0 + usearch 2.26.4 with stock numkong 7.8.5 (build B above). That covers this PR as well, because the delete path does not touch numkong and I8 uses numkong's stock kernels here too. Latency is the server-side request_latency_seconds, over one 5-minute window per rate.

Deletes 2.22.0 p50 / p99 2.22.0 searches > 100 ms 2.26.4 p50 / p99
none 1.1 / 4.7 ms 0% 0.9 / 4.3 ms
1/s 1.6 / 484 ms 11% 0.9 / 4.3 ms
2/s 91 / 880 ms 49% 0.9 / 4.4 ms
5/s 279 / 1270 ms 80% 0.9 / 4.3 ms
8/s 305 / ~1000 ms 81% 0.9 / 4.6 ms
50/s for 60 s 479 / 1420 ms 86% 0.9 / 4.5 ms
8/s of rows inserted after the build 1.5 / 4.9 ms 0% 0.9 / 4.7 ms
  • With 2.22.0 a node applies at most ~3.2 deletes/s at this size. Faster deletes queue, and the inserts queue behind them: the node needed 8.5 min to catch up after 2,400 deletes at 8/s and 15.5 min after 3,000 at 50/s, with p99 ~1 s throughout. Deleting rows inserted after the full-scan build costs nothing, because their keys sit at the end of the run.
  • The full-scan build of the 136M-row I8 index ran at 12.4k rows/s with 2.26.4 and 9.0k with 2.22.0 (3 h 03 min vs 4 h 09 min). Release 1.11.0 predates vector-store: restore SVE detection in usearch's simsimd on aarch64 #633, so part of that gap may be its serial I8 kernels.

How it was tested

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -Dwarnings, cargo test --workspace on the host (gcc 15); cargo deny check sources passes (deny.toml allows git sources from the scylladb organization; the only warning is the pre-existing axum-server-dual-protocol one).
  • After the rebase onto master 37913e4 (2026-10-13, vector-store: restore SVE detection in usearch's simsimd on aarch64 #633 merged): cargo fmt --all -- --check, cargo clippy --locked --all-targets with -Dwarnings, cargo test --locked -p vector-store --lib (344 passed) and cargo deny check sources pass again on the host.
  • amd64: TARGETARCH=amd64 ./scripts/run-with-release-toolchain cargo build --release --bin vector-store -p vector-store builds the derived image and the binary (gcc 12).
  • arm64: a cross build of this tree with clang 19 (the same apt.llvm.org packages, from an x86 host) passed the benchmark skill's verify gate: aarch64, GLIBC ≤ 2.34, --version under qemu, SVE kernels present. The arm64 derived image itself was not built here (no arm64 binfmt on the build host), so the first CI run of build-vector-store.yml on arm64 is the test of that path. The clang-built arm64 binary from this tree, ABBA against today's release on the same cluster (20261008T214941Z-ab-2923, HTTP c64, 240 s settle after each switch): 20079 [19965–20193] vs 20285 [20238–20332] QPS (−1.0%, CV ≤ 0.8%), index build 86.5 s vs 88.0 s, CQL recall 93.4%. Parity, not the +4.6% of the gcc 14 build of the same source: clang's code for the two-chain SVE kernel costs per distance what simsimd's NEON kernel costs (68% of the profile in both), gcc 14's costs less. The upgrade meets "at least as good" with this toolchain; the missing 4.6% is listed below.

Before this leaves draft

  • The arm64 kernel codegen: clang 19 gives parity with 2.22.0 where gcc 14 gave +4.6% (same source). Either a gcc ≥ 13 toolchain for the arm64 release, which means a runtime image with glibc ≥ 2.39 (ubi10) because bookworm stops at gcc 12, or a kernel shaped so that clang produces gcc's code.
  • x86_64 is not covered: numkong's nk_angular_f32_haswell/skylake widen to f64 as well (the fork patches NEON and SVE only), so amd64 may carry B's regression. Needs its own measurement and, if confirmed, the same option in those kernels.

Fixes: VECTOR-720

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 24f54b39-38f3-4895-a9f5-5a3ffc0b7bbc
📥 Commits

Reviewing files that changed from the base of the PR and between d8bd98f and f722c6b.

⛔ Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing: 5
  • .cargo/config.toml
  • CONTRIBUTING.md
  • Cargo.toml
  • scripts/release-toolchain.Dockerfile
  • scripts/run-with-release-toolchain

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The workspace upgrades usearch and pins numkong to a ScyllaDB Git revision. AArch64 Linux settings disable NumKong f32-to-f64 accumulation and SME-related targets. A new Dockerfile defines the release toolchain, and the release script builds an image for the target architecture. The contributor instructions describe the image and binary output paths.

Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to f722c

This change upgrades usearch and adds a clang 19 toolchain for ARM release builds. It keeps the existing Bookworm build base and the UBI 9 runtime image. No concrete merge-blocking issue was found, but the first ARM toolchain image will be built in CI and has not been tested yet.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly identifies the usearch upgrade and the main NumKong F32 accumulation change.
Description check Passed The description is detailed and directly explains the usearch upgrade, kernel changes, toolchain updates, performance results, testing, and known limitations.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@swasik
swasik force-pushed the VECTOR-720-usearch-numkong branch from 59ffd6d to 20b907a Compare October 9, 2026 04:45
@swasik

swasik commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

Release toolchain: numkong's aarch64 kernels need gcc ≥ 13 or clang, rust:-bookworm has gcc 12, and a trixie image would produce binaries needing glibc 2.39 (the ubi9-minimal runtime image has 2.34). scripts/release-toolchain.Dockerfile derives the toolchain image from the bookworm one and installs clang 19 from apt.llvm.org for arm64 only; run-with-release-toolchain builds it on first use (cached afterwards). The amd64 build keeps gcc 12, which compiles usearch 2.26.4 and numkong as they are. CONTRIBUTING says so in one sentence.

@ewienik could you take a look? This is what Claude proposed but I have not experience in Rust tool-chains so I have no idea if it makes sense.

@swasik
swasik force-pushed the VECTOR-720-usearch-numkong branch from 20b907a to a523bc1 Compare October 13, 2026 12:56
@ewienik

ewienik commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Release toolchain: numkong's aarch64 kernels need gcc ≥ 13 or clang, rust:-bookworm has gcc 12, and a trixie image would produce binaries needing glibc 2.39 (the ubi9-minimal runtime image has 2.34). scripts/release-toolchain.Dockerfile derives the toolchain image from the bookworm one and installs clang 19 from apt.llvm.org for arm64 only; run-with-release-toolchain builds it on first use (cached afterwards). The amd64 build keeps gcc 12, which compiles usearch 2.26.4 and numkong as they are. CONTRIBUTING says so in one sentence.

@ewienik could you take a look? This is what Claude proposed but I have not experience in Rust tool-chains so I have no idea if it makes sense.

This is a try to solve a known issue with docker dependency of a vector-store's docker image. We need to be based on redhat/ubi9-minimal as scylladb is based on this image. The official rust image which supports glibc from ubi9-minimal is bookworm, but this image doesnt't support gcc >= 13.

The proposed solution build docker image on fly - which is bad solution. We should consider other options:

  • try to use upgrade to ubi10-minimal (stay with redhat images) and upgrade rust image to the newer debian system (check glibc, possibility to run binary in dbuild docker in scylladb, check gcc version)
  • Prepare frozen toolchain for building vector-store - prepare docker image and use this frozen toolchain instead of rust official image

IMHO if ubi10-minamal gives good gcc version we might chose it.

@swasik

swasik commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

IMHO if ubi10-minamal gives good gcc version we might chose it.

But this will mean that we have to run VS in separate container from Scylla, not the same as we do today in Validator?

ewienik
ewienik previously approved these changes Oct 14, 2026

@ewienik ewienik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we need to deliver usearch 2.26 as fast as possible let's go with frozen toolchain. Now go with building docker in fly (it's going to increase build time) and in the second step let's prepare real frozen toolchain for releasing.

…ulating in f32

usearch 2.25+ takes its distance kernels from NumKong instead of simsimd.
Stock NumKong 7.8.5 costs 22% of the searches per second on Graviton4 and
44% of the index build time: every f32 kernel widens each lane to f64 before
the multiply-add (ashvardanian/NumKong#392). With the opt-in f32
accumulation and a two-chain SVE kernel (ashvardanian/NumKong#393, pinned
from the scylladb/NumKong fork through [patch.crates-io] until NumKong
ships it) the new
usearch beats 2.22.0 by 2-5% on F32 and runs F16 and BF16 6-7x faster than
today's release, whose simsimd probe falls back to serial kernels on Linux
ARM (VECTOR-1027).

The upgrade also ends search stalls during row deletions. usearch 2.22.0
finds keys through a table with an identity hash and linear probing, so
Vector Store's dense, ascending keys form one long run, and remove()
walks it from the key's slot to its end while Vector Store runs the
remove with no search in flight. On a 136M-row index that is ~0.31 s
per delete, and 2 deletes/s put half of the searches over 100 ms. With
2.26.4 (SplitMix64 key hash, unum-cloud/USearch#773) the same deletes
leave search latency unchanged.

numkong's aarch64 kernels need gcc >= 13 or clang. The release toolchain
image is now derived from rust:<channel>-bookworm with clang 19 for arm64
(scripts/release-toolchain.Dockerfile, built on first use by
run-with-release-toolchain), which keeps bookworm's glibc floor; amd64 keeps
gcc 12, which builds the crates as they are. numkong's SME targets are off:
clang's SME kernels need compiler-rt's __arm_get_current_vg, which the gcc
link does not provide, and no machine we ship to has SME.

The `-include unistd.h` entry that scylladb#633 put in .cargo/config.toml goes:
it fixed the capability probe of usearch 2.22.0's simsimd, which numkong
replaces, and numkong's probe includes the header itself.

Refs: VECTOR-720

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@swasik
swasik force-pushed the VECTOR-720-usearch-numkong branch from a523bc1 to f722c6b Compare October 14, 2026 09:38
@swasik
swasik marked this pull request as ready for review October 14, 2026 09:54
@swasik
swasik requested a review from ewienik October 14, 2026 09:55
@swasik

swasik commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

As we need to deliver usearch 2.26 as fast as possible let's go with frozen toolchain. Now go with building docker in fly (it's going to increase build time) and in the second step let's prepare real frozen toolchain for releasing.

@ewienik agreed. This PR keeps the on-the-fly image; the frozen toolchain for releasing is VECTOR-1056: a published vector-store-toolchain image (bookworm plus clang 19, which bookworm's own repositories ship now, so no apt.llvm.org), rebuilt by a workflow when rust-toolchain.toml or its Dockerfile changes, run-with-release-toolchain pulling it by tag and digest, and a CI check on the glibc floor of the binaries. The clang vs gcc question for arm64 is VECTOR-1055, and the x86 and f16 measurements are VECTOR-1054.

Since your review, the numkong pin moved from my personal fork to scylladb/NumKong (same commit), which also made it an allowed git source for cargo deny; the force-push dismissed the approval.

@ewienik
ewienik added this pull request to the merge queue Oct 14, 2026
Merged via the queue into scylladb:master with commit 6065c85 Oct 14, 2026
50 checks passed
swasik added a commit to swasik/vector-store that referenced this pull request Oct 15, 2026
…ernels

scylladb#634 moved to usearch 2.26.4 with numkong's f32 angular kernels
accumulating in f32 on NEON and SVE. Benchmarks for VECTOR-1054 against
release 1.12.0 (usearch 2.22.0) found three gaps the pin left open:

- x86 F32: numkong's Haswell and Skylake f32 angular kernels still widen
  every lane to f64. On an r7i.4xlarge (Sapphire Rapids) that cost 10% of
  the searches per second and 16% of the index build time.
- arm64 F16: nk_angular_f16_svehalf converts every f16 lane to f32 before
  the multiply-add, 30 instructions per vector: 17-23% fewer searches
  per second than 1.12.0 on Graviton4 and a 42% slower index build.
- x86 F16: 13% fewer searches; not addressed here (below).

Pin numkong to scylladb/NumKong 23067331 (branch
f32-accumulate-angular-f32-x86), two commits on top of the 501e810 used
so far:

- f16 angular kernels on SVE2 (FMLALB/FMLALT) and FEAT_FHM (FMLAL) that
  accumulate the half-precision products in f32 with widening
  multiply-adds, 12 instructions per vector; the runtime dispatch prefers
  them to svehalf and plain NEON.
- NK_ACCUMULATE_F32_IN_F64=0 now also covers nk_angular_f32_haswell and
  nk_angular_f32_skylake, and .cargo/config.toml sets it for
  x86_64-unknown-linux-gnu as it does for aarch64.

Measured on AWS (cohere-1m, COSINE, k=10, HTTP at concurrency 64, ABBA
with a fresh process per switch; full tables on VECTOR-720):

- x86 F32: -10.2% -> -4.2% against 1.12.0 (CV <= 0.6%), recall 93.95%
  vs 93.7% (noise), index build 127 s -> 116 s (1.12.0: 110 s). The
  kernel now costs what simsimd's does per call on the node; the
  remaining 4% is in usearch 2.26.4's search path, not the kernel.
- arm64 F16: -19% -> -6.4% +- 2.6% (mean over 8-10 independent index
  builds per arm), at 93.5% recall vs 92.2% for 1.12.0, whose simsimd
  kernel accumulates in f16. Index build 86 s -> 70 s (1.12.0: 61 s).
- x86 F16 stays at -13%: numkong has no AVX512-FP16 angular kernel for
  Sapphire Rapids, so it converts to f32 (recall 93.9% vs 92.65%).

The aarch64 and x86_64 release builds of this tree were checked: the
x86 kernels contain no vcvtps2pd, the f16 SVE2 kernel is in the binary.

Refs: VECTOR-1054
Refs: VECTOR-720

Co-Authored-By: Claude Opus 5.5 <[email protected]>
knowack1 pushed a commit to knowack1/vector-store that referenced this pull request Oct 15, 2026
…ernels (scylladb#645)

## Motivation

scylladb#634 moved Vector Store to usearch 2.26.4 with NumKong's f32 angular
kernels accumulating in f32 on NEON and SVE. VECTOR-1054 benchmarked the
rest of the matrix against release 1.12.0 (usearch 2.22.0 with scylladb#633's
SVE detection) and found three gaps:

| case | 1.12.0 kernel | NumKong kernel today | searches per second vs
1.12.0 |
| --- | --- | --- | --- |
| x86 F32 (r7i, Sapphire Rapids) | `simsimd_cos_f32_skylake` |
`nk_angular_f32_skylake`, widens every lane to f64 | −10% |
| arm64 F16 (r8g, Graviton4) | `simsimd_cos_f16_sve` |
`nk_angular_f16_svehalf`, converts every lane to f32 | −17 to −23% |
| x86 F16 | `simsimd_cos_f16_sapphire` (AVX512-FP16) |
`nk_angular_f16_skylake`, converts to f32 | −13% |

This PR closes most of the first two.

## What it does

* Pins numkong to `scylladb/NumKong@23067331` (branch
`f32-accumulate-angular-f32-x86`), two commits on top of the `501e810`
that scylladb#634 uses:
* `d8277cd9`: f16 angular kernels for SVE2 (`FMLALB`/`FMLALT`) and
FEAT_FHM (`FMLAL`). They accumulate the half-precision products in f32
with widening multiply-adds instead of converting every lane, at 12
instructions per vector instead of 30. The runtime dispatch prefers them
to `svehalf` and plain NEON. Against a binary128 reference the max error
is 3.8–4.6e-7 (`svehalf` 6.1e-7), and NumKong's `angular_f16` tests
pass.
* `23067331`: `NK_ACCUMULATE_F32_IN_F64=0` now also covers
`nk_angular_f32_haswell` and `nk_angular_f32_skylake`: two chains of f32
FMAs, no `vcvtps2pd`, max error 3–4e-7, verified on a Sapphire Rapids
node.
* `.cargo/config.toml` sets `CFLAGS_x86_64_unknown_linux_gnu =
"-DNK_ACCUMULATE_F32_IN_F64=0"`, as it already does for aarch64, and its
comment says what the x86 kernels cost.

## Measurements

AWS, cohere-1m, COSINE, M=16, ef_construction=128, ef_search=64, k=10,
HTTP at concurrency 64, `vsbench bench ab` in ABBA order with a fresh
process and a 240 s settle per switch. The tables, kernel profiles and a
per-call kernel microbenchmark run on the nodes are on VECTOR-720.

| case | before (this master) | with this PR | recall, 1.12.0 → this PR
| index build 1M, 1.12.0 / master / PR |
| --- | --- | --- | --- | --- |
| x86 F32 | −10.2% | **−4.2%** (CV ≤ 0.6%) | 93.95% → 93.7% (noise) |
110 / 127 / 116 s |
| arm64 F16 | −19% | **−6.4% ± 2.6%** (mean over 8–10 independent index
builds per arm) | 92.2% → 93.5% | 61 / 86 / 70 s |
| x86 F16 | −13% | −13% (unchanged) | 92.65% → 93.9% | 77 / 92 / 92 s |

* x86 F32: on the node, the f32-accumulating kernel costs the same per
call as simsimd's, and less on a hot pair: 50.8 vs 60.3 ns at 768-d. The
remaining 4% is outside the kernel, somewhere in usearch 2.26.4's search
path; it stays open on VECTOR-1054.
* arm64 F16: the new kernels do the arithmetic 2.1× faster than
`svehalf`, but 13–15% slower than simsimd's kernel, which accumulates in
f16. That is also why NumKong's F16 recall is 1.3 points higher.
* x86 F16 is not addressed: NumKong has no AVX512-FP16 angular kernel
for Sapphire Rapids (its `diamond` kernel needs AVX10.2), and
AVX512-FP16 has no widening FMA into f32.

## Decision

The performance is still a bit worse than Usearch 2.22.0 but we have
other wins:
* higher recall
* deletions that does not impact latency of search queries (in 2.22.0
when dataset has over 10M vectors it is easy to exceed 1000 ms search
latency while deleting)
* f16 in general is not recommended - bf16 has much better performance
and the same recall

## Testing

* `cargo fmt --all -- --check` and `cargo clippy --all-targets --
-Dwarnings` are clean, and `cargo test -p vector-store` passes on x86_64
(344 unit and 119 integration tests). numkong's build script reports
`CFLAGS_x86_64_unknown_linux_gnu = Some(-DNK_ACCUMULATE_F32_IN_F64=0)`.
* The arm64 build with clang 19 (the release toolchain's) and the amd64
build with bookworm's gcc 12 both pass the vsbench verify gate (GLIBC ≤
2.34). In the arm64 binary `nk_angular_f16_sve2` and
`nk_angular_f16_neonfhm` are present; in the amd64 binary
`nk_angular_f32_skylake` and `_haswell` contain no `vcvtps2pd`, against
4 and 2 on master.
* `cargo deny check` reports RUSTSEC-2026-0346 and -0347 for rustls
0.23.45. Upstream master reports the same two, so they are unrelated to
this change.

Refs: VECTOR-1054
Refs: VECTOR-720

🤖 Generated with [Claude Code](https://claude.com/claude-code)
m-szymon pushed a commit to m-szymon/vector-store that referenced this pull request Oct 22, 2026
The release workflow announces every release in #release-announce
with the same line, "ScyllaDB Vector Store *X.Y.Z* is released". It
says nothing about what changed, what to check before upgrading, or
where the release notes are. 1.13.0 fixed searches stalling during
deletes but lowered search throughput by up to 13% in some
configurations, and the announcement mentioned neither.

Let the release notes carry the announcement in a hidden
`<!-- slack-announcement ... -->` block, written in Slack mrkdwn. It
is written and reviewed with the notes when the release is cut, and
GitHub does not render it on the release page. The announce job now:

- reads the notes with `gh release view` when it runs, rather than
  from the release event, so a workflow_dispatch run finds them and a
  re-run after fixing them posts the fixed text;
- posts the block with @here, turns PR numbers such as (scylladb#634) into
  links and adds a line linking the release notes;
- falls back to the old one-liner, plus a link to the notes, when
  the notes have no block, and warns if they mention one it could not
  use;
- fails on a block that is never closed instead of posting the wrong
  text;
- builds the payload with jq instead of interpolating into a JSON
  string, which would break on the first quote in the text;
- fails when Slack refuses the message. chat.postMessage answers
  HTTP 200 with "ok": false, so the old step passed on, for example,
  an expired token.

The message also goes to the job summary. docs/releasing.md documents
the block, with 1.13.0 rewritten as a worked example.

The text is written by hand rather than generated in CI. The
repository has no API key for an LLM, and an @here message should not
go out before anyone has read it.

Fixes: VECTOR-1094

Co-Authored-By: Claude Opus 5.5 <[email protected]>
m-szymon pushed a commit to m-szymon/vector-store that referenced this pull request Oct 22, 2026
The release workflow announces every release in `#release-announce` with
the same line, `@here ScyllaDB Vector Store *X.Y.Z* is released`. It
doesn't say what changed, what to check before upgrading, or where the
release notes are. 1.13.0 fixed searches stalling during deletes but
lowered search throughput by up to 13% in some configurations, and the
announcement mentioned neither. Other ScyllaDB projects post a curated
summary instead, such as the Java driver's 4.19.2.3 announcement: a
:warning: line for each change to check before upgrading, grouped fixes,
a recommendation and a link.

This lets the release notes carry the announcement in a hidden block
written in Slack mrkdwn. The block is written and reviewed with the
notes when the release is cut. GitHub doesn't render it on the release
page:

```
<!-- slack-announcement
:rocket: ScyllaDB Vector Store 1.13.0 is out! One fix worth upgrading for, and one trade-off to check first:
:warning: Search throughput is lower in some configurations: … (scylladb#634, scylladb#645)
…
-->
```

The `announce` job now:

- reads the notes with `gh release view` when it runs, not from the
release event. A `workflow_dispatch` run then finds them too, and a
re-run after editing them posts the edited text;
- posts the block with `@here`, turns PR numbers into links, and adds a
line linking the release notes;
- posts the old one-liner, plus a link to the notes, when there is no
block. It warns if the notes mention a block it couldn't use;
- fails on a block that is never closed, instead of posting the wrong
text;
- builds the payload with `jq` instead of interpolating into a JSON
string;
- fails when Slack refuses the message. `chat.postMessage` answers HTTP
200 with `"ok": false`, so the old step passed on, for example, an
expired token.

The message also goes to the job summary. `docs/releasing.md` documents
the block, with 1.13.0 rewritten as a worked example.

The text is written by hand rather than generated in CI. The repository
has no LLM API key, and an `@here` message shouldn't go out before
anyone has read it.

## Testing

Both steps were extracted from the workflow and run locally with `gh`
and `curl` stubbed, under gawk and mawk (the runner's `awk`). Each case
behaved as expected:

| Release body | Result |
| --- | --- |
| 1.13.0's real notes (no block) | one-liner with a link to the notes |
| block with CRLF line endings | block posted, PR numbers linked,
"Details:" line added |
| marker lines with trailing spaces | block posted |
| empty block | warning, one-liner |
| block never closed | job fails with an error naming the problem |
| the example in `docs/releasing.md` | block posted |
| Slack replies `{"ok":false,"error":"invalid_auth"}` | job fails,
naming `invalid_auth` |

`gh release view 1.13.0 --json body,url` was checked against the real
repository. actionlint reports nothing for the `announce` job.

Not tested: a real post to Slack. That first happens at the next
release, where the job summary shows what was sent.

Fixes: VECTOR-1094

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants