Language

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

The metric type as an integer: 1 for Cosine, 2 for DotProduct, or 3 for 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