DbVectorMetrics class abstract final

Distance names vec0 stores in distance_metric.

DbVector.metric is still a String. l2 and cosine are the metrics sqlite_plus_vec implements. Another metric can be written as a plain identifier; vec0 rejects it when the table is created.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

cosine → const String
One minus the cosine similarity, in the range 0 to 2.
l2 → const String
Euclidean distance, sqrt of the sum of squared coordinate differences.