documentCount property

int get documentCount

Get the number of indexed document chunks.

Implementation

int get documentCount {
  if (_pipeline == null) return 0;

  final lib = PlatformLoader.loadCommons();
  final fn = lib.lookupFunction<RacRagGetDocumentCountNative,
      RacRagGetDocumentCountDart>('rac_rag_get_document_count');

  return fn(_pipeline!);
}