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."],[[["This webpage provides documentation for the `FeatureView.Types.IndexConfig.Types.DistanceMeasureType` enum within the Google Cloud AI Platform v1 API, specifically for the .NET environment."],["The content includes documentation for versions ranging from 1.0.0 to 3.22.0, with the latter marked as the latest version of the API, which is part of the larger .NET Google Cloud reference documentation."],["The `DistanceMeasureType` enum defines the various methods for measuring distance in nearest neighbor searches, including `CosineDistance`, `DotProductDistance`, `SquaredL2Distance`, and `Unspecified`."],["The documentation advises to use `DOT_PRODUCT_DISTANCE` combined with `UNIT_L2_NORM` over `COSINE` for better performance and mathematically equivalent results."],["Each version of the API can be accessed via a hyperlink, taking you directly to that specific version's documentation for this enum."]]],[]]