Cosine Distance. Defined as 1 - cosine similarity.
We strongly suggest using DOT_PRODUCT_DISTANCE + UNIT_L2_NORM instead
of COSINE distance. Our algorithms have been more optimized for
DOT_PRODUCT distance which, when combined with UNIT_L2_NORM, is
mathematically equivalent to COSINE distance and results in the same
ranking.
DotProductDistance
Dot Product Distance. Defined as a negative of the dot product.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["The content provides a comprehensive list of available versions for `FeatureView.Types.IndexConfig.Types.DistanceMeasureType`, ranging from the latest version 3.22.0 down to version 1.0.0."],["This documentation is for the Cloud AI Platform v1 API, specifically detailing the `DistanceMeasureType` enum used in nearest neighbor searches."],["There are four possible field values for `DistanceMeasureType`: `CosineDistance`, `DotProductDistance`, `SquaredL2Distance`, and `Unspecified`, each detailed by its name and a description."],["The documentation suggests using `DOT_PRODUCT_DISTANCE` with `UNIT_L2_NORM` over `COSINE_DISTANCE` for performance reasons, though they are mathematically equivalent."],["The namespace of this API element is `Google.Cloud.AIPlatform.V1` within the `Google.Cloud.AIPlatform.V1.dll` assembly."]]],[]]