EmbeddingSearchMetricType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public enum EmbeddingSearchMetricType
type EmbeddingSearchMetricType =
- Inheritance
-
EmbeddingSearchMetricType
Fields
| Name | Value | Description |
|---|---|---|
| Default | 0 | Use the default metric set in SearchSpec.getDefaultEmbeddingSearchMetricType() for embedding search and ranking. Android reference for 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. |
| Cosine | 1 | Cosine similarity as metric for embedding search and ranking. Android reference for 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. |
| DotProduct | 2 | Dot product similarity as metric for embedding search and ranking. Android reference for 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. |
| Euclidean | 3 | Euclidean distance as metric for embedding search and ranking. Android reference for 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. |