RagConfig class
Configuration options for RagEngine initialization.
Constructors
- RagConfig({required String tokenizerAsset, required String modelAsset, String? databaseName, int maxChunkChars = 500, int overlapChars = 50})
-
Creates a RagConfig with all options.
const
- RagConfig.fromAssets({required String tokenizerAsset, required String modelAsset, String? databaseName, int maxChunkChars = 500, int overlapChars = 50})
-
Convenience factory for asset-based initialization.
factory
Properties
- databaseName → String?
-
Name of the SQLite database file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxChunkChars → int
-
Maximum characters per chunk (default: 500).
final
- modelAsset → String
-
Asset path for ONNX embedding model.
final
- overlapChars → int
-
Overlap characters between chunks for context continuity (default: 50).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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