RagAnswer class

An answer from ask, with the passages it was based on.

Constructors

RagAnswer({required String question, required String text, required String prompt, required List<RagPassage> passages, required List<RagPassage> citations})
const

Properties

citations → List<RagPassage>
Passages cited in text, in order of first citation. Citations of ids that were not given to the LLM are left out.
final
hashCode → int
The hash code for this object.
no setterinherited
hasPassages → bool
False when the search found nothing and the LLM was not called.
no setter
passages → List<RagPassage>
Passages given to the LLM.
final
prompt → String
Prompt sent to the LLM.
final
question → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The LLM's answer. Empty when no passages were found and the LLM was not called.
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