RagConfig class

Configuration options for RagEngine initialization.

Constructors

RagConfig({required String tokenizerAsset, required String modelAsset, String? databaseName, int maxChunkChars = kDefaultMaxChunkChars, int overlapChars = kDefaultOverlapChars, int? embeddingIntraOpNumThreads, ThreadUseLevel? threadLevel, bool deferIndexWarmup = false})
Creates a RagConfig with all options.
const
RagConfig.fromAssets({required String tokenizerAsset, required String modelAsset, String? databaseName, int maxChunkChars = kDefaultMaxChunkChars, int overlapChars = kDefaultOverlapChars, int? embeddingIntraOpNumThreads, ThreadUseLevel? threadLevel, bool deferIndexWarmup = false})
Convenience factory for asset-based initialization.
factory

Properties

databaseName → String?
Name of the SQLite database file.
final
deferIndexWarmup → bool
Whether to defer index warmup during initialization.
final
embeddingIntraOpNumThreads → int?
Maximum number of threads for intra-op parallelism in ONNX runtime.
final
hashCode → int
The hash code for this object.
no setterinherited
maxChunkChars → int
Maximum characters per chunk (default: kDefaultMaxChunkChars).
final
modelAsset → String
Asset path for ONNX embedding model.
final
overlapChars → int
Overlap characters between chunks for context continuity (default: kDefaultOverlapChars).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
threadLevel → ThreadUseLevel?
High-level thread usage configuration.
final
tokenizerAsset → String
Asset path for tokenizer JSON file.
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