getSourceChunkCount method

Future<int> getSourceChunkCount({
  1. required int sourceId,
})

Get the total number of chunks for a specific source.

Useful for pagination, progress tracking, and batch processing.

Implementation

Future<int> getSourceChunkCount({required int sourceId}) async {
  return await rust_rag.getSourceChunkCount(sourceId: sourceId);
}