RagAskPrompt class

The prompt for one question, built by prepareAsk.

Send prompt to the LLM, for example with a streaming SDK, then pass the complete answer to answer.

Constructors

RagAskPrompt({required String question, required String prompt, required List<RagPassage> passages})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasPassages → bool
False when the search found nothing; there is nothing to send.
no setter
passages → List<RagPassage>
Passages included in prompt.
final
prompt → String
Prompt for the LLM. Empty when no passages were found.
final
question → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

answer(String text) → RagAnswer
Pairs the LLM's text with the passages it cites.
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