AscendIndexVstarHyperParams

API definition

AscendIndexVstarHyperParams();

Function

Hyperparameter structure is VSTAR mode.

Input

N/A

Output

N/A

Restrictions

For details, see AscendIndexVstarHyperParams.

API definition

AscendIndexVstarHyperParams(int nProbeL1, int nProbeL2, int l3SegmentNum);

Function

Hyperparameter structure is VSTAR mode.

Input

int nProbeL1: number of clusters for L1 retrieval.

int nProbeL2: number of clusters for L2 retrieval.

int l3SegmentNum: number of segments for L3 retrieval, which is used to search for data segments from nProbeL2.

Output

N/A

Restrictions

  • nProbeL1 ∈ [32, nListL1]. The value of nProbeL1 must be an integer multiple of 8. The default value is 72.
  • nProbeL2 ∈ (16, nProbeL1 × n]. When dim is 1024, n is 16. For other dimensions, n is 32 and nProbeL2 must be an integral multiple of 8. The default value is 64.
  • l3SegmentNum ∈ (100, 5000], and l3SegmentNum must be an integer multiple of 8. The default value is 512.