VectorSearchHit class

One (id, distance) search result. id is whatever caller-supplied key was passed to FlatIndex.add; distance is in the metric that was requested at search time (smaller = better for L2/cosine, larger = better for inner-product; the returned list is always sorted best-first).

Constructors

VectorSearchHit(Object? id, double distance)
const

Properties

distance double
final
hashCode int
The hash code for this object.
no setterinherited
id Object?
final
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.
override

Operators

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