github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/docs/index_limitations.md (about)

     1  # Index Parameter Range
     2  
     3  Searching with most indexes that Milvus supported requires specifying construction and search parameters. Listed below are the type and ranges of these parameters.
     4  
     5  <table class="index_limit">
     6  	<thead>
     7  	<tr>
     8  		<th>Index</th>
     9  		<th>Type</th>
    10  		<th>Const. Param & Range</th>
    11  		<th>Search Param & Range</th>
    12      <th>Note</th>
    13  	</tr>
    14  	</thead>
    15  	<tbody>
    16  	<tr>
    17  		<td>Flat</td>
    18  		<td>entity.Flat</td>
    19  		<td>N/A</td>
    20  		<td>N/A</td>
    21   		<td>No parameter is required for search with Flat.</td>
    22  	</tr>
    23  	<tr>
    24  		<td>BinFlat</td>
    25  		<td>entity.BinFlat</td>
    26  		<td><code>nlist</code>&isin;[1, 65536]</td>
    27  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]</td>
    28  		<td>&nbsp;</td>
    29  	</tr>
    30  	<tr>
    31  		<td>IvfFlat</td>
    32  		<td>entity.IvfFlat</td>
    33  		<td><code>nlist</code>&isin;[1, 65536]</td>
    34  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]</td>
    35  		<td>&nbsp;</td>
    36  	</tr>
    37  	<tr>
    38  		<td>BinIvfFlat</td>
    39  		<td>entity.BinIvfFlat</td>
    40  		<td><code>nlist</code>&isin;[1, 65536]</td>
    41  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]</td>
    42  		<td>BinIvfFlat will be supported in upcoming version of Milvus.</td>
    43  	</tr>
    44  	<tr>
    45  		<td>IvfSQ8</td>
    46  		<td>entity.IvfSQ8</td>
    47  		<td><code>nlist</code>&isin;[1, 65536]</td>
    48  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]</td>
    49  		<td>&nbsp;</td>
    50  	</tr>
    51  	<tr>
    52  		<td>IvfSQ8H</td>
    53  		<td>entity.IvfSQ8H</td>
    54  		<td><code>nlist</code>&isin;[1, 65536]</td>
    55  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]</td>
    56  		<td>&nbsp;</td>
    57  	</tr>
    58  	<tr>
    59  		<td>IvfPQ</td>
    60  		<td>entity.IvfPQ</td>
    61  		<td><code>nlist</code>&isin;[1, 65536]<br/><code>m</code> dim===0 (mod self)<br/><code>nbits</code>&isin;[1, 16]</td>
    62  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]</td>
    63  		<td>&nbsp;</td>
    64  	</tr>
    65  	<tr>
    66  		<td>RNSG</td>
    67  		<td>entity.NSG</td>
    68  		<td><code>out_degree</code>&isin;[5, 300]<br/><code>candidate_pool_size</code>&isin;[50, 1000]<br/><code>search_length</code>&isin;[10, 300]<br/><code>knng</code>&isin;[5, 300]</td>
    69  		<td><code>search_length</code>&isin;[10, 300]</td>
    70  		<td>&nbsp;</td>
    71  	</tr>
    72  	<tr>
    73  		<td>HNSW</td>
    74  		<td>entity.HNSW</td>
    75  		<td><code>M</code>&isin;[4, 64]<br/><code>efConstruction</code>&isin;[8, 512]</td>
    76  		<td><code>ef</code>&isin;[topK, 32768]</td>
    77  		<td>&nbsp;</td>
    78  	</tr>
    79  	<tr>
    80  		<td>RHNSWFlat</td>
    81  		<td>entity.RHNSWFlat</td>
    82  		<td><code>M</code>&isin;[4, 64]<br/><code>efConstruction</code>&isin;[8, 512]</td>
    83  		<td><code>ef</code>&isin;[topK, 32768]</td>
    84  		<td>&nbsp;</td>
    85  	</tr>
    86  	<tr>
    87  		<td>RHNSW_PQ</td>
    88  		<td>entity.RHNSW_PQ</td>
    89  		<td><code>M</code>&isin;[4, 64]<br/><code>efConstruction</code>&isin;[8, 512]<br/><code>PQM</code> dim===0 (mod self)</td>
    90  		<td><code>ef</code>&isin;[topK, 32768]</td>
    91  		<td>&nbsp;</td>
    92  	</tr>
    93  	<tr>
    94  		<td>RHNSW_SQ</td>
    95  		<td>entity.RHNSWSQ</td>
    96  		<td><code>M</code>&isin;[4, 64]<br/><code>efConstruction</code>&isin;[8, 512]</td>
    97  		<td><code>ef</code>&isin;[topK, 32768]</td>
    98  		<td>&nbsp;</td>
    99  	</tr>
   100  	<tr>
   101  		<td>IvfHNSW</td>
   102  		<td>entity.IvfHNSW</td>
   103  		<td><code>nlist</code>&isin;[1, 65536]<br/><code>M</code>&isin;[4, 64]<br/><code>efConstruction</code>&isin;[8, 512]</td>
   104  		<td><code>nprobe</code>&isin;[1, <code>nlist</code>]<br/><code>ef</code>&isin;[topK, 32768]</td>
   105  		<td>&nbsp;</td>
   106  	</tr>
   107  	</tbody>
   108  </table>
   109