ingest method
Index document into the corpus.
Throws SDKException when the session is closed or ingestion fails.
Implementation
Future<void> ingest(RagDocument document) async {
_requireLive();
try {
await DartBridgeRAG.shared.ingestDocumentAsync(_toProto(document));
} catch (error) {
throw SDKException.invalidState('RAG ingestion failed: $error');
}
}