Share via


SearchSpec.EmbeddingSearchMetricTypeCosine Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.AppSearch.EmbeddingSearchMetricType enum directly instead of this field.

Cosine similarity as metric for embedding search and ranking.

[Android.Runtime.Register("EMBEDDING_SEARCH_METRIC_TYPE_COSINE", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.EmbeddingSearchMetricType enum directly instead of this field.", true)]
public const Android.App.AppSearch.EmbeddingSearchMetricType EmbeddingSearchMetricTypeCosine = 1;
[<Android.Runtime.Register("EMBEDDING_SEARCH_METRIC_TYPE_COSINE", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.EmbeddingSearchMetricType enum directly instead of this field.", true)>]
val mutable EmbeddingSearchMetricTypeCosine : Android.App.AppSearch.EmbeddingSearchMetricType

Field Value

Value = 1

Implements

Attributes

Remarks

Cosine similarity as metric for embedding search and ranking.

Java documentation for android.app.appsearch.SearchSpec.EMBEDDING_SEARCH_METRIC_TYPE_COSINE.

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