Single file
Useclient.process() — the top-level shortcut for uploading and queuing a single document:
Job object can be awaited with job.wait().
Multiple files
Job. processMany processes them sequentially.
With options
From a connector (S3 / GCS / Azure)
If you have a connector configured, process files directly from cloud storage:Polling manually
If you need fine-grained control over polling:job.wait() — it handles this automatically with configurable timeout and poll interval.