Function Description

AscendIndexIVFSQT contains the dimension reduction algorithm IVFSQ for three-level retrieval. Two parameters need to be passed to specify the dimension information before and after dimension reduction. The reduced dimension must be able to exactly divide the previous dimension.

Generate the operators required for the three-level retrieval based on the IVFSQT operator generation method.

This class provides the fuzzy clustering function. Use the threshold parameter to control the fuzziness before vectors enter a bucket. Set the threshold parameter based on the base library capacity and available memory size. If the value is too large, the memory is insufficient and the operation fails. For the Ascend 310 AI Processor, set the value to [1.0, 1.3], and for the Atlas inference products, set the value to [1.0, 1.5]. You are advised to set batch size to 65536 for search.