AiSearchResult class

Constructors

AiSearchResult({required double score, double? similarity, required bool keywordMatch, required String highlight, required AiChunk chunk, required AiSearchDocument document})
const
AiSearchResult.fromJson(Map<String, dynamic> j)
factory

Properties

chunk → AiChunk
final
document → AiSearchDocument
final
hashCode → int
The hash code for this object.
no setterinherited
highlight → String
The best-matching words, wrapped in **.
final
keywordMatch → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → double
Reciprocal-rank-fusion score (vector + keyword); results are sorted by it.
final
similarity → double?
final

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