getIndexName
Returns
string
: The unique name identifier of the index.
Example Usage
getIndexType
'ivf'
, 'ivfpq'
, or 'ivfflat'
).
Returns
string | undefined
: The index type, or undefined
if not set.
Example Usage
isTrained
Returns
boolean
: true
if the index has been trained, false
otherwise.
Example Usage
getIndexConfig
Returns
IndexIVFFlatModel
: For IVFFlat indexesIndexIVFModel
: For IVF indexesIndexIVFPQModel
: For IVFPQ indexes
Example Usage
Configuration Properties
Common Properties (All Index Types)
Property | Type | Description |
---|---|---|
type | string | Index type ('ivf' , 'ivfflat' , or 'ivfpq' ) |
dimension | number | Vector dimensionality |
metric | string | Distance metric ('cosine' , 'euclidean' , etc.) |
nLists | number | Number of inverted lists for clustering |
IVFPQ-Specific Properties
Property | Type | Description |
---|---|---|
pqDim | number | Product quantization dimension |
pqBits | number | Number of bits for quantization |