Enum Class VectorField.CompressionType

java.lang.Object
java.lang.Enum<VectorField.CompressionType>
com.redis.vl.schema.VectorField.CompressionType
All Implemented Interfaces:
Serializable, Comparable<VectorField.CompressionType>, Constable
Enclosing class:
VectorField

public static enum VectorField.CompressionType extends Enum<VectorField.CompressionType>
Vector compression types for SVS-VAMANA algorithm.

Compression families:

  • LVQ (Learned Vector Quantization): Reduces storage without dimensionality reduction
  • LeanVec: Combines dimensionality reduction with quantization for maximum compression

Bit depths:

  • 4-bit: Higher compression, lower accuracy
  • 8-bit: Lower compression, higher accuracy
  • 4x4, 4x8, 8x8: Hybrid approaches with different primary/secondary quantization
  • Enum Constant Details

  • Method Details

    • values

      public static VectorField.CompressionType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VectorField.CompressionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Get the compression type value for Redis
      Returns:
      Compression type value
    • isLeanVec

      public boolean isLeanVec()
      Check if this is a LeanVec compression type. LeanVec types support dimensionality reduction via the 'reduce' parameter.
      Returns:
      true if LeanVec compression type
    • isLVQ

      public boolean isLVQ()
      Check if this is an LVQ compression type. LVQ types do NOT support dimensionality reduction.
      Returns:
      true if LVQ compression type