Google Cloud Vector Search V1 Client - Class DistanceMetric (0.3.0)

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 \ V1

Methods

static::name

Parameter
Name
Description
value
mixed

static::value

Parameter
Name
Description
name
mixed

Constants

DISTANCE_METRIC_UNSPECIFIED

  Value: 0 
 

Default value, distance metric is not specified.

Generated from protobuf enum DISTANCE_METRIC_UNSPECIFIED = 0;

DOT_PRODUCT

  Value: 1 
 

Dot product distance metric.

Generated from protobuf enum DOT_PRODUCT = 1;

COSINE_DISTANCE

  Value: 2 
 

Cosine distance metric.

Generated from protobuf enum COSINE_DISTANCE = 2;

Create a Mobile Website
View Site in Mobile | Classic
Share by: