EmbeddingPropertyConfig


class EmbeddingPropertyConfig : AppSearchSchema.PropertyConfig
kotlin.Any
   ↳ android.app.appsearch.AppSearchSchema.PropertyConfig
   ↳ android.app.appsearch.AppSearchSchema.EmbeddingPropertyConfig

Configuration for a property of type EmbeddingVector in a Document.

Summary

Nested classes

Builder for EmbeddingPropertyConfig.

Constants
static Int

Content in this property will not be indexed.

static Int

Embedding vectors in this property will be indexed.

static Int

Contents in this property will be quantized to 8 bits.

static Int

Contents in this property will not be quantized.

Inherited constants
Public methods
Int

Returns how the property is indexed.

Int

Returns how the embedding contents of this property should be quantized.

Inherited functions

Constants

INDEXING_TYPE_NONE

static val INDEXING_TYPE_NONE: Int

Content in this property will not be indexed.

Value: 0

INDEXING_TYPE_SIMILARITY

static val INDEXING_TYPE_SIMILARITY: Int

Embedding vectors in this property will be indexed.

The index offers 100% accuracy, but has linear time complexity based on the number of embedding vectors within the index.

Value: 1

QUANTIZATION_TYPE_8_BIT

static val QUANTIZATION_TYPE_8_BIT: Int

Contents in this property will be quantized to 8 bits.

Value: 1

QUANTIZATION_TYPE_NONE

static val QUANTIZATION_TYPE_NONE: Int

Contents in this property will not be quantized.

Value: 0

Public methods

getQuantizationType

fun getQuantizationType(): Int

Returns how the embedding contents of this property should be quantized.

If the property isn't indexed, returns QUANTIZATION_TYPE_NONE.

Return
Int Value is android.app.appsearch.AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_NONE, or android.app.appsearch.AppSearchSchema.EmbeddingPropertyConfig#QUANTIZATION_TYPE_8_BIT