Files
faiss/tests
Alibek Zhakubayev 9a6c02b061 Rename RaBitQ factor structs for clarity and reorganize tests (#4730)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4730

Improves code clarity by renaming factor data structures to better reflect their purpose in RaBitQ's quantization modes:
- BaseFactorsData → SignBitFactors (1-bit mode factors)
- FactorsData → SignBitFactorsWithError (multi-bit mode with error bound)
- ExFactorsData → ExtraBitsFactors (additional precision bits factors)

Also reorganizes the test suite by extracting FastScan-specific tests into a separate test_rabitq_fastscan.py file and consolidates the multi-bit RaBitQ tests in test_rabitq.py for better maintainability.

Additionally fixes a bug in index_factory regex that incorrectly allowed RaBitQfs0 (nb_bits=0).

Reviewed By: mnorris11, subhadeepkaran

Differential Revision: D89494412

fbshipit-source-id: 99bac77ed8281f569da2081b022955a60fbe00a6
2025-12-19 10:52:34 -08:00
..
2025-03-29 12:26:39 -07:00
2025-03-24 09:56:45 -07:00
2025-01-06 09:48:32 -08:00