Zvec Node.js API Reference
    Preparing search index...

    Interface ZVecHnswRabitqIndexParams

    Configuration parameters for an HNSW-RaBitQ index on a vector field.

    HNSW RaBitQ combines HNSW graph-based search with RaBitQ quantization for improved memory efficiency while maintaining high recall.

    Platform support: Only available on Linux x86_64 with AVX2/AVX-512.

    interface ZVecHnswRabitqIndexParams {
        indexType: 4;
        metricType?: ZVecMetricType;
        totalBits?: number;
        numClusters?: number;
        m?: number;
        efConstruction?: number;
        sampleCount?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    indexType: 4

    Must be ZVecIndexType.HNSW_RABITQ (4).

    metricType?: ZVecMetricType

    Distance metric used for similarity computation.

    ZVecMetricType.IP
    
    totalBits?: number

    Total number of bits used for RaBitQ quantization.

    7
    
    numClusters?: number

    Number of clusters used in RaBitQ quantization.

    16
    
    m?: number

    Number of bi-directional links created for every new element during construction.

    50
    
    efConstruction?: number

    Size of the dynamic candidate list for nearest neighbors during index construction.

    500
    
    sampleCount?: number

    Number of samples used for RaBitQ training.

    0