RagSource class

A retrieved chunk, numbered for citation.

Constructors

RagSource(int number, SearchHit hit)
Creates a source.
const

Properties

documentId → String?
Id of the document the chunk came from.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hit → SearchHit
The underlying search hit.
final
id → String
Chunk id.
no setter
metadata → Map<String, Object?>
Chunk metadata (the document's plus the reserved chunk fields).
no setter
number → int
1-based number the model cites as [n].
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → double
Retrieval score.
no setter
text → String
Chunk text.
no setter

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