reembedAll method
Re-embed every stored chunk with the currently loaded model and clear the embeddingFingerprintLock. Resumable across app restarts — progress is persisted per chunk on the Rust side, so an interrupted run picks up where it left off on the next call.
onProgress is invoked once per chunk with the cumulative
(done, total) snapshot for the current run.
Throws StateError when no mismatch is active.
Implementation
Future<void> reembedAll({
void Function(RagReembedProgress progress)? onProgress,
int batchSize = 32,
}) =>
_engine!.reembedAll(onProgress: onProgress, batchSize: batchSize);