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

    Interface ZVecFlatIndexParams

    Configuration parameters for a flat index on a vector field.

    interface ZVecFlatIndexParams {
        indexType: 4;
        metricType?: ZVecMetricType;
        quantizeType?: ZVecQuantizeType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    indexType: 4

    Must be ZVecIndexType.FLAT (4).

    metricType?: ZVecMetricType

    Distance metric used for similarity computation.

    ZVecMetricType.IP
    
    quantizeType?: ZVecQuantizeType

    Optional quantization type for vector compression.

    ZVecQuantizeType.UNDEFINED