ScoredDocument class

A RagDocument paired with its similarity score from a search.

Constructors

ScoredDocument({required RagDocument document, required double score})
Creates a scored result.
const

Properties

document → RagDocument
The matched document.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → double
The similarity score (higher is more similar).
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