Added in API level Baklava
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 |
Constants | |
---|---|
static Int |
Content in this property will not be indexed. |
static Int |
Embedding vectors in this property will be indexed. |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int |
Returns how the property is indexed. |
Inherited functions | |
---|---|
Constants
INDEXING_TYPE_NONE
Added in API level Baklava
static val INDEXING_TYPE_NONE: Int
Content in this property will not be indexed.
Value: 0
INDEXING_TYPE_SIMILARITY
Added in API level Baklava
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
Public methods
getIndexingType
Added in API level Baklava
fun getIndexingType(): Int
Returns how the property is indexed.
Return | |
---|---|
Int |
Value is android.app.appsearch.AppSearchSchema.EmbeddingPropertyConfig#INDEXING_TYPE_NONE , or android.app.appsearch.AppSearchSchema.EmbeddingPropertyConfig#INDEXING_TYPE_SIMILARITY |