VectorIndexDefinition<T>.WithQuantizationByteSize(Int32) Method

Definition

Configures the quantization byte size for the current VectorIndexPath definition.

public Microsoft.Azure.Cosmos.Fluent.VectorIndexDefinition<T> WithQuantizationByteSize(int quantizationByteSize);
member this.WithQuantizationByteSize : int -> Microsoft.Azure.Cosmos.Fluent.VectorIndexDefinition<'T>
Public Function WithQuantizationByteSize (quantizationByteSize As Integer) As VectorIndexDefinition(Of T)

Parameters

quantizationByteSize
Int32

The number of bytes used in product quantization of the vectors. This is an optional parameter and applies to index types DiskANN and quantizedFlat. Note that, the allowed range for this parameter is between 1 and 3.

Returns

An instance of the current VectorIndexDefinition<T>.

Applies to