Skip to main content
This cookbook demonstrates patterns for efficiently processing large datasets with Model Inference. You’ll learn chunking strategies, parallel execution, rate limiting, error recovery, and result aggregation.

What this recipe accomplishes

  • Process large datasets in manageable chunks
  • Execute inference requests in parallel
  • Handle rate limits and backoff
  • Recover from failures without losing progress
  • Aggregate and report results

Prerequisites

Complete example

Key patterns

Controlled concurrency

Limit parallel requests to avoid overwhelming the system:

Exponential backoff

Retry failed requests with increasing delays:

Progress tracking

Report progress for visibility into long-running jobs:

Checkpoint recovery

Save progress for resumable processing:

Performance tuning

Running Inference

Inference fundamentals

Choosing Models

Model selection guide

Tracking Jobs

Monitor job status

Data Enrichment

Enrichment pipeline example