SearchResult.EmbeddingMatchInfo.EmbeddingSearchMetricType Property

Definition

Gets the embedding search metric type that this embedding match corresponds to.

public int EmbeddingSearchMetricType { [Android.Runtime.Register("getEmbeddingSearchMetricType", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getEmbeddingSearchMetricType", "()I", "", ApiSince=36)>]
member this.EmbeddingSearchMetricType : int

Property Value

Value is one of the following: SearchSpec.EMBEDDING_SEARCH_METRIC_TYPE_DEFAULT SearchSpec.EMBEDDING_SEARCH_METRIC_TYPE_COSINE SearchSpec.EMBEDDING_SEARCH_METRIC_TYPE_DOT_PRODUCT SearchSpec.EMBEDDING_SEARCH_METRIC_TYPE_EUCLIDEAN

Attributes

Remarks

Gets the embedding search metric type that this embedding match corresponds to.

Java documentation for android.app.appsearch.SearchResult.EmbeddingMatchInfo.getEmbeddingSearchMetricType().

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.

Applies to