Reference documentation and code samples for the Google Cloud Vector Search V1 Client class DistanceMetric.
Distance metric for vector search.
Protobuf type google.cloud.vectorsearch.v1.DistanceMetric
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
DISTANCE_METRIC_UNSPECIFIED
Value: 0Default value, distance metric is not specified.
Generated from protobuf enum DISTANCE_METRIC_UNSPECIFIED = 0;
DOT_PRODUCT
Value: 1Dot product distance metric.
Generated from protobuf enum DOT_PRODUCT = 1;
COSINE_DISTANCE
Value: 2Cosine distance metric.
Generated from protobuf enum COSINE_DISTANCE = 2;