addDocument method
Implementation
Future<SourceAddResult> addDocument(
String content, {
String? metadata,
String? name,
String? filePath,
ChunkingStrategy? strategy,
Duration? chunkDelay,
void Function(int done, int total)? onProgress,
}) => _engine.addDocument(
content,
metadata: metadata,
name: name,
filePath: filePath,
strategy: strategy,
chunkDelay: chunkDelay,
onProgress: onProgress,
collectionId: _collectionId,
);