zvec/tests
Zihao Wang d29bffca39
fix(quantizer): use rounded int8 values for SQ8 metadata to fix recall drop (#329)
fixes #328

Problem:
SQ8 metadata (squared_sum, sum) was computed from pre-rounded float
values, causing mismatch with actual stored int8 values. On asymmetric
datasets (e.g. OpenAI 1536D where |x_min| >> x_max), this leads to
severe recall drop.

Solution:
Move std::round before accumulating squared_sum and sum.

Co-authored-by: rayx <rui.xing@alibaba-inc.com>
2026-04-16 10:07:14 +08:00
..
ailego feat: windows support (#216) 2026-03-30 20:47:34 +08:00
c ci: refact android ci (#330) 2026-04-15 15:37:51 +08:00
core fix(quantizer): use rounded int8 values for SQ8 metadata to fix recall drop (#329) 2026-04-16 10:07:14 +08:00
db ci: refact android ci (#330) 2026-04-15 15:37:51 +08:00
CMakeLists.txt fix: misc fix for Windows(BUILD_SHARED_LIBS, CI) (#296) 2026-04-02 09:23:35 +08:00
android_gmock_main.cc ci: refact android ci (#330) 2026-04-15 15:37:51 +08:00
android_gtest_main.cc ci: refact android ci (#330) 2026-04-15 15:37:51 +08:00
ios_test_sandbox.cc feat: add iOS build support (#321) 2026-04-09 16:14:26 +08:00
test_util.h feat: add iOS build support (#321) 2026-04-09 16:14:26 +08:00