Skip to main content
Performance Goal: Process 1000+ documents efficiently while maintaining accuracy and minimizing costs.

Quick Performance Wins

Processing Mode Optimization

Async Processing (10x Faster)

Batch Processing Strategies

Intelligent Batching

Error Handling & Retry Strategies

Production-Ready Error Handling

Cost Optimization

Smart Processing Strategies

Performance Monitoring

Real-Time Performance Tracking

Performance Best Practices

  • DEFAULT mode: Fast processing for most use cases
  • ADVANCED mode: Maximum accuracy for complex documents
  • Sweet spot: 5-10 concurrent requests for most use cases
  • Small files: Can handle 15-20 concurrent requests
  • Large files: Reduce to 3-5 concurrent requests
  • Monitor: Watch for rate limiting and adjust accordingly
  • Small files (< 1MB): Batches of 30-50 files
  • Medium files (1-10MB): Batches of 10-20 files
  • Large files (>10MB): Batches of 3-5 files
  • Mixed sizes: Group by size before batching
  • Process large datasets in chunks (100-500 files per chunk)
  • Clear document variables after processing
  • Use garbage collection for long-running processes
  • Save results immediately, don’t accumulate in memory

Performance Rule: Start with async processing + DEFAULT mode + batches of 20. This gives 80% of optimal performance with minimal tuning.