zvec/src
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 fix: skip drive root in Windows MakePath (#337) 2026-04-14 19:01:37 +08:00
binding fix: refact c struct name (#302) 2026-04-02 14:54:03 +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 chore: clang format collection.cc (#319) 2026-04-07 14:10:33 +08:00
include/zvec fix: refact c struct name (#302) 2026-04-02 14:54:03 +08:00
turbo feat: windows support (#216) 2026-03-30 20:47:34 +08:00
CMakeLists.txt feat: add c language support (#167) 2026-03-31 18:00:08 +08:00