Table of Contents

Enum VectorQuantization

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Type of automatic vector quantization for your vectors. Use this setting only if your embeddings are float or double vectors. See Vector Quantization for more information.

public enum VectorQuantization

Fields

None = 0

Indicates no automatic quantization for the vector embeddings. Use this setting if you have pre-quantized vectors for ingestion. If omitted, this is the default value.

Scalar = 1

Indicates scalar quantization, which transforms values to 1 byte integers.

Binary = 2

Indicates binary quantization, which transforms values to a single bit. To use this value, numDimensions must be a multiple of 8. If precision is critical, select None or Scalar instead of Binary.