VectorIndexDefinition<T>.WithQuantizerType(QuantizerType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>.