VectorEncoding

public enum VectorEncoding : Equatable

ENTERPRISE EDITION ONLY

Vector encoding type to use in vector indexes.

  • No encoding; 4 bytes per dimension, no data loss.

    Declaration

    Swift

    case none
  • Scalar Quantizer encoding.

    Declaration

    Swift

    case scalarQuantizer(type: ScalarQuantizerType)

    Parameters

    type

    The type of ScalarQuantizer

  • Product Quantizer encoding.

    Declaration

    Swift

    case productQuantizer(subquantizers: UInt32, bits: UInt32)

    Parameters

    subquantizers

    Number of subquantizers. Must be a factor of vector dimensions.

    bits

    Number of bits. Must be >= 4 and <= 12.