VectorIndexDefinition<T>.WithQuantizerType(QuantizerType) Method

Definition

Configures the quantizer type for the current VectorIndexPath definition.

public Microsoft.Azure.Cosmos.Fluent.VectorIndexDefinition<T> WithQuantizerType(Microsoft.Azure.Cosmos.QuantizerType quantizerType);
member this.WithQuantizerType : Microsoft.Azure.Cosmos.QuantizerType -> Microsoft.Azure.Cosmos.Fluent.VectorIndexDefinition<'T>
Public Function WithQuantizerType (quantizerType As QuantizerType) As VectorIndexDefinition(Of T)

Parameters

quantizerType
QuantizerType

The quantizer type to be used for vector quantization. This is an optional parameter and applies to index types DiskANN and quantizedFlat. Allowed values are Product and Spherical.

Returns

An instance of the current VectorIndexDefinition<T>.

Applies to