SearchResult.EmbeddingMatchInfo(Double, Int32, Int32) Constructor

Definition

Creates a new immutable EmbeddingMatchInfo.

[Android.Runtime.Register(".ctor", "(DII)V", "", ApiSince=36)]
public EmbeddingMatchInfo(double semanticScore, int queryEmbeddingVectorIndex, int embeddingSearchMetricType);
[<Android.Runtime.Register(".ctor", "(DII)V", "", ApiSince=36)>]
new Android.App.AppSearch.SearchResult.EmbeddingMatchInfo : double * int * int -> Android.App.AppSearch.SearchResult.EmbeddingMatchInfo

Parameters

semanticScore
Double

the semantic score of the embedding match against the query vector.

queryEmbeddingVectorIndex
Int32

the index of the matched query embedding vector in SearchSpec#getEmbeddingParameters()

embeddingSearchMetricType
Int32

the search metric type used to calculate the score for the match and the query vector

Attributes

Remarks

Creates a new immutable EmbeddingMatchInfo.

Java documentation for android.app.appsearch.SearchResult.EmbeddingMatchInfo.SearchResult$EmbeddingMatchInfo(double, int, int).

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