KoolbaseSemanticHit class

One ranked hit from a semantic search. record carries the full record (same wire shape as a record returned by query/get), and distance is the cosine distance between the query vector and the stored vector — lower means more similar. Range: 0 (identical direction) to 2 (opposite direction).

Constructors

KoolbaseSemanticHit({required KoolbaseRecord record, required double distance})
const
KoolbaseSemanticHit.fromJson(Map<String, dynamic> json)
factory

Properties

distance → double
final
hashCode → int
The hash code for this object.
no setterinherited
record → KoolbaseRecord
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.
inherited

Operators

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