Files
faiss/tests
Alibek Zhakubayev 261d8f25aa Add IVFSQTurboQSearchParameters to __init__.pyi stub (#5304)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5304

Add IVFSQTurboQSearchParameters to the authoritative __init__.pyi type stub.

TurboQuant was added to ScalarQuantizer in D102408184, which introduced
IVFSQTurboQSearchParameters in IndexScalarQuantizer.h. The struct controls
two new per-search parameters:
- qb: query quantization bits for MSE pre-screening (0 = float path,
  1-8 = integer popcount path)
- int_qjl: use integer popcount for the QJL sign-bit stage (requires qb > 0)

IndexScalarQuantizer.h is `%include`d in swigfaiss.swig so SWIG wraps the
struct at runtime. However, __init__.pyi (the authoritative Pyre type source
since D107274305) was not updated when the struct was added. Any Pyre-checked
code that uses IVFSQTurboQSearchParameters receives [missing-attribute] errors.

Pattern matches the approach used in D107508282, which added
SearchParametersHNSW and SearchParametersPQ for the same gap.

Reviewed By: limqiying, mnorris11

Differential Revision: D108001955

fbshipit-source-id: 6cfbb0dddea1e09562b8185888c571aea229b747
2026-06-11 12:56:37 -07:00
..
2026-05-05 16:54:09 -07:00
2026-05-05 16:54:09 -07:00
2026-05-01 09:55:55 -07:00
2026-06-01 10:47:38 -07:00
2025-01-06 09:48:32 -08:00