Skip to content

Downstream check: zvec on the latest 0.8.x release #219

Closed

Description

@gouyt13

Run the downstream compatibility checks for zvec against 0.8.x and record the result here.

  • zvec pins RaBitQ-Library as a submodule (currently 0.7.0) and uses only core and FastScan.
  • 0.8.0 renamed the query accessors k1xsumq()/kbxsumq()/kbase_sumq() to g_k1xsumq()/g_kbxsumq()/g_kbase_sumq(); zvec's ivf_rabitq_streamer_test.cc needs that one-line change when it moves to 0.8.
  • 0.8.1 changed only thread-count resolution in include/rabitqlib/utils/tools.hpp and src/utils/thread_count.cpp (v0.8.0 causing segfault 11 on macOS #207: num_threads=0 honors OMP_NUM_THREADS); 0.8.2 changes no core, FastScan, SIMD or utils files.

Checks: build zvec's RaBitQ components against the 0.8.2 tag and run its IVF/HNSW RaBitQ streamer, dispatch and index tests. Then decide whether to propose the submodule bump to zvec.

zvec includes only core/ (encoder, metric, query, rotator), fastscan/ (data_layout, encoder, fastscan) and utils/space.hpp, which the planned 0.9 changes do not touch. Rerun this check for 0.9 only if 0.9 changes those headers, for example rotator serialization for format v2 (#212).

Activity

  1. added this to the 0.8.x milestone on Nov 2, 2026
  2. added
    help wanted
    on Nov 11, 2026
  3. changed the title [-]Downstream check: zvec on 0.8.2[/-] [+]Downstream check: zvec on the latest 0.8.x release[/+] on Nov 15, 2026
  4. gouyt13 commented on Nov 19, 2026

    @gouyt13
    MemberAuthor

    Ran this check against the 0.9 candidate. dev/0.9 contains main through v0.8.5, so the run also covers every 0.8.x change to core and FastScan. In the headers zvec includes, 0.9 adds METRIC_COSINE to MetricType and the ceil_log2 shift fix (#247).

    Revisions. zvec main at 018b1eb3935fece0a9f49728ac3bdd3833acfa60, which pins RaBitQ-Library v0.7.0 (de793e8). Candidate: RaBitQ-Library dev/0.9 at c456f31. Baseline: v0.7.0, zvec's pin.

    Platform. Linux x86-64, GCC 14.3.0, CMake 3.28, Ninja, Release. zvec builds RaBitQ-Library through its own thirdparty/RaBitQ-Library/CMakeLists.txt (core and FastScan only: RABITQ_BUILD_INDEX=OFF, RABITQ_USE_OPENMP=OFF, native optimization OFF).

    Changes to zvec for the check.

    • thirdparty/RaBitQ-Library/CMakeLists.txt: RABITQ_SOURCE_DIR points at a git archive of the candidate (or of v0.7.0 for the baseline).
    • Candidate only: tests/core/algorithm/ivf_rabitq/ivf_rabitq_streamer_test.cc:633 calls g_kbxsumq() instead of kbxsumq(), the accessor rename from 0.8.0 (refactor!: rename query factor accessors with the g_ prefix #201). No other source change was needed.

    Commands.

    cmake -S src -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_C_BINDINGS=OFF -DBUILD_BENCHMARKS=OFF -DBUILD_CPP_EXAMPLES=OFF
    cmake --build build --parallel 8 --target hnsw_rabitq_streamer_test rabitq_dispatch_test ivf_rabitq_streamer_test
    OMP_NUM_THREADS=4 build/bin/<test>
    

    Results. Both builds compile without warnings. Candidate and baseline pass the same 34 tests:

    • rabitq_dispatch_test: 1 passed
    • hnsw_rabitq_streamer_test: 9 passed (build and search, KNN/linear search, iterator, open/close, dimensions, ex-bits mismatch)
    • ivf_rabitq_streamer_test: 24 passed (build and search; close and reopen for L2, inner product, cosine and 1-bit; recall quality; filters; primary-key search; parameter and format validation)

    Notes for zvec's eventual bump.

    • The kbxsumq() to g_kbxsumq() rename above.
    • src/turbo/CMakeLists.txt:239 adds thirdparty/RaBitQ-Library/RaBitQ-Library-0.7.0/include directly, so renaming the submodule directory needs that path updated too.

    Not tested. The full zvec build (DB layer, Arrow, RocksDB, turbo, Python and C bindings), other platforms (ARM64, macOS, Windows, Android, iOS), zvec's Python tests, and a numerical comparison of recall or distances between candidate and baseline beyond each test's own thresholds.

  5. gouyt13 commented on Nov 23, 2026

    @gouyt13
    MemberAuthor

    0.9.0 is released. The check above ran on an earlier candidate. I repeated it on release/v0.9.0 at f6ff6d5, whose library sources match the v0.9.0 tag (later commits change documentation only), against zvec main at 8d978b0. Candidate and v0.7.0 again pass the same tests, 38 this time, because this run also builds hnsw_rabitq_index_test (4 tests). Full record: #263, "Downstream compatibility".

    When zvec moves its submodule off v0.7.0, it needs two changes: kbxsumq() becomes g_kbxsumq() in tests/core/algorithm/ivf_rabitq/ivf_rabitq_streamer_test.cc:633, and the hard-coded RaBitQ-Library-0.7.0/include path in src/turbo/CMakeLists.txt:239 must change. That path only supplies the vendored Eigen.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions