RagConfig constructor
const
RagConfig({})
Creates a RagConfig with all options.
Implementation
const RagConfig({
required this.tokenizerAsset,
required this.modelAsset,
this.databaseName,
this.maxChunkChars = 500,
this.overlapChars = 50,
this.embeddingIntraOpNumThreads,
this.threadLevel,
this.deferIndexWarmup = false,
}) : assert(
embeddingIntraOpNumThreads == null || threadLevel == null,
'Cannot set both [embeddingIntraOpNumThreads] and [threadLevel]. Choose one.',
);