| 1 | [vectordb](../README.md) / [Exports](../modules.md) / IvfPQIndexConfig |
| 2 | |
| 3 | # Interface: IvfPQIndexConfig |
| 4 | |
| 5 | ## Table of contents |
| 6 | |
| 7 | ### Properties |
| 8 | |
| 9 | - [column](IvfPQIndexConfig.md#column) |
| 10 | - [index\_cache\_size](IvfPQIndexConfig.md#index_cache_size) |
| 11 | - [index\_name](IvfPQIndexConfig.md#index_name) |
| 12 | - [max\_iters](IvfPQIndexConfig.md#max_iters) |
| 13 | - [max\_opq\_iters](IvfPQIndexConfig.md#max_opq_iters) |
| 14 | - [metric\_type](IvfPQIndexConfig.md#metric_type) |
| 15 | - [num\_bits](IvfPQIndexConfig.md#num_bits) |
| 16 | - [num\_partitions](IvfPQIndexConfig.md#num_partitions) |
| 17 | - [num\_sub\_vectors](IvfPQIndexConfig.md#num_sub_vectors) |
| 18 | - [replace](IvfPQIndexConfig.md#replace) |
| 19 | - [type](IvfPQIndexConfig.md#type) |
| 20 | - [use\_opq](IvfPQIndexConfig.md#use_opq) |
| 21 | |
| 22 | ## Properties |
| 23 | |
| 24 | ### column |
| 25 | |
| 26 | • `Optional` **column**: `string` |
| 27 | |
| 28 | The column to be indexed |
| 29 | |
| 30 | #### Defined in |
| 31 | |
| 32 | [index.ts:1282](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1282) |
| 33 | |
| 34 | ___ |
| 35 | |
| 36 | ### index\_cache\_size |
| 37 | |
| 38 | • `Optional` **index\_cache\_size**: `number` |
| 39 | |
| 40 | Cache size of the index |
| 41 | |
| 42 | #### Defined in |
| 43 | |
| 44 | [index.ts:1331](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1331) |
| 45 | |
| 46 | ___ |
| 47 | |
| 48 | ### index\_name |
| 49 | |
| 50 | • `Optional` **index\_name**: `string` |
| 51 | |
| 52 | A unique name for the index |
| 53 | |
| 54 | #### Defined in |
| 55 | |
| 56 | [index.ts:1287](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1287) |
| 57 | |
| 58 | ___ |
| 59 | |
| 60 | ### max\_iters |
| 61 | |
| 62 | • `Optional` **max\_iters**: `number` |
| 63 | |
| 64 | The max number of iterations for kmeans training. |
| 65 | |
| 66 | #### Defined in |
| 67 | |
| 68 | [index.ts:1302](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1302) |
| 69 | |
| 70 | ___ |
| 71 | |
| 72 | ### max\_opq\_iters |
| 73 | |
| 74 | • `Optional` **max\_opq\_iters**: `number` |
| 75 | |
| 76 | Max number of iterations to train OPQ, if `use_opq` is true. |
| 77 | |
| 78 | #### Defined in |
| 79 | |
| 80 | [index.ts:1321](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1321) |
| 81 | |
| 82 | ___ |
| 83 | |
| 84 | ### metric\_type |
| 85 | |
| 86 | • `Optional` **metric\_type**: [`MetricType`](../enums/MetricType.md) |
| 87 | |
| 88 | Metric type, L2 or Cosine |
| 89 | |
| 90 | #### Defined in |
| 91 | |
| 92 | [index.ts:1292](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1292) |
| 93 | |
| 94 | ___ |
| 95 | |
| 96 | ### num\_bits |
| 97 | |
| 98 | • `Optional` **num\_bits**: `number` |
| 99 | |
| 100 | The number of bits to present one PQ centroid. |
| 101 | |
| 102 | #### Defined in |
| 103 | |
| 104 | [index.ts:1316](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1316) |
| 105 | |
| 106 | ___ |
| 107 | |
| 108 | ### num\_partitions |
| 109 | |
| 110 | • `Optional` **num\_partitions**: `number` |
| 111 | |
| 112 | The number of partitions this index |
| 113 | |
| 114 | #### Defined in |
| 115 | |
| 116 | [index.ts:1297](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1297) |
| 117 | |
| 118 | ___ |
| 119 | |
| 120 | ### num\_sub\_vectors |
| 121 | |
| 122 | • `Optional` **num\_sub\_vectors**: `number` |
| 123 | |
| 124 | Number of subvectors to build PQ code |
| 125 | |
| 126 | #### Defined in |
| 127 | |
| 128 | [index.ts:1312](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1312) |
| 129 | |
| 130 | ___ |
| 131 | |
| 132 | ### replace |
| 133 | |
| 134 | • `Optional` **replace**: `boolean` |
| 135 | |
| 136 | Replace an existing index with the same name if it exists. |
| 137 | |
| 138 | #### Defined in |
| 139 | |
| 140 | [index.ts:1326](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1326) |
| 141 | |
| 142 | ___ |
| 143 | |
| 144 | ### type |
| 145 | |
| 146 | • **type**: ``"ivf_pq"`` |
| 147 | |
| 148 | #### Defined in |
| 149 | |
| 150 | [index.ts:1333](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1333) |
| 151 | |
| 152 | ___ |
| 153 | |
| 154 | ### use\_opq |
| 155 | |
| 156 | • `Optional` **use\_opq**: `boolean` |
| 157 | |
| 158 | Train as optimized product quantization. |
| 159 | |
| 160 | #### Defined in |
| 161 | |
| 162 | [index.ts:1307](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L1307) |