RAGQueryOptions class

Options for a RAG query.

Specifies the question and generation parameters. Mirrors iOS RAGQueryOptions exactly.

Constructors

RAGQueryOptions({required String question, String? systemPrompt, int maxTokens = 512, double temperature = 0.7, double topP = 0.9, int topK = 40})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
maxTokens int
Maximum tokens to generate (default: 512).
final
question String
The user's question (required).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemPrompt String?
Optional system prompt override.
final
temperature double
Sampling temperature (default: 0.7).
final
topK int
Top-k sampling (default: 40).
final
topP double
Nucleus sampling probability (default: 0.9).
final

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