ingestAll method

Future<void> ingestAll(
  1. List<RagDocument> documents
)

Index every document in documents.

Throws SDKException when the session is closed or ingestion fails.

Implementation

Future<void> ingestAll(List<RagDocument> documents) async {
  for (final document in documents) {
    await ingest(document);
  }
}