AppSearchSchema.EmbeddingPropertyConfig.Builder.SetQuantizationType 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 whether the vector contents of this property should be quantized.
[Android.Runtime.Register("setQuantizationType", "(I)Landroid/app/appsearch/AppSearchSchema$EmbeddingPropertyConfig$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.AppSearchSchema.EmbeddingPropertyConfig.Builder SetQuantizationType(int quantizationType);
[<Android.Runtime.Register("setQuantizationType", "(I)Landroid/app/appsearch/AppSearchSchema$EmbeddingPropertyConfig$Builder;", "", ApiSince=36)>]
member this.SetQuantizationType : int -> Android.App.AppSearch.AppSearchSchema.EmbeddingPropertyConfig.Builder
Parameters
- quantizationType
- Int32
Value is one of the following: AppSearchSchema.EmbeddingPropertyConfig.QUANTIZATION_TYPE_NONE AppSearchSchema.EmbeddingPropertyConfig.QUANTIZATION_TYPE_8_BIT
Returns
- Attributes
Remarks
Configures whether the vector contents of this property should be quantized. Quantization can reduce the size of the embedding search index, potentially leading to faster embedding search due to lower I/O bandwidth. Quantization is usually very reliable and in most cases will have a negligible impact on recall. Using quantization is strongly recommended. If this method is not called, the default quantization type is EmbeddingPropertyConfig.QUANTIZATION_TYPE_NONE.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.