SemanticResponse class

Result of a semantic query: rows nearest to the query by meaning.

Constructors

SemanticResponse({required List<Map<String, dynamic>> rows, String? model})
const
SemanticResponse.fromJson(Map<String, dynamic> j)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
model → String?
The embedding model used; null when the column has nothing embedded yet.
final
rows → List<Map<String, dynamic>>
The table's rows (vector columns removed), each with _similarity (cosine, null for a keyword-only hit) and _score (sort key).
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

Static Methods

scoreOf(Map<String, dynamic> row) → double
_score of row.
similarityOf(Map<String, dynamic> row) → double?
_similarity of row, or null.