Batch Processing
Multi-tier DAG processing that transforms bucket objects into searchable documents with feature extraction
Why do anything?
Raw objects need feature extraction to become searchable. Without batch processing, you can't generate embeddings or enrich content at scale.
Why now?
AI search requires vector embeddings. Manual processing doesn't scale.
Why this feature?
Multi-tier DAG processing handles complex pipelines: Tier 0 (bucket→collection) and Tier N (collection→collection) with Celery workers and Ray inference.
How It Works
Batch processing uses a multi-tier DAG architecture. Tier 0 processes bucket objects, Tier N processes upstream collection outputs.
Batch Creation
Create batch record, validate source and collection config
Task Routing
Route to Celery process_tier queue based on tier level
Feature Extraction
Ray engine runs feature extractor, generates embeddings
Document Storage
Documents stored in the Mixpeek Vector Store with vectors indexed
Why This Approach
DAG enables complex multi-stage pipelines (e.g., video→frames→faces→embeddings). Celery provides reliable task execution. Ray handles ML inference at scale.
Where This Is Used
Recent updates
Full changelog- Nov 25, 2026A batch reports every collection that failedWhen one processing job ran several collections and some failed, the batch could mark the first of them COMPLETED. Its downstream collections then ran over an empty parent, and the batch's error named only some of the failures. A failed collection now stays FAILED, its downstream collections are skipped, and a tier that ends COMPLETED_WITH_ERRORS lists each failed collection in tier_tasks[].errors with its error type, message and affected count.
- Nov 25, 2026A batch the engine cannot take yet waits in the queue and keeps its retriesWhen the processing engine could not accept a job, a batch submit could wait two minutes and then fail, though nothing had been sent. The engine now checks first and answers at once with a 503 and a Retry-After of 60 seconds, and the batch waits in the queue with the reason shown. A batch refused while a circuit breaker is open also queues and keeps its retry attempts. A batch refunded on failure that then completes on a retry is charged for the output it delivered.
- Nov 25, 2026A batch that writes nothing is refunded in fullTwo cases kept a batch's up-front charge when it produced no documents. A batch whose priced collections all came back empty could still read as having written documents, and a batch whose last tier had every collection skipped after an upstream failure ended without settling. Both now settle on what was written, so a batch that delivered nothing is refunded in full.
- Nov 24, 2026A batch can re-run only the layers that read other collectionsA batch can now name only collections that read from other collections, with no collection reading the bucket directly. Submit used to refuse every object with "has no collection that can process it", and the batch then failed because its first tier read bucket objects instead of the source collections' documents. Re-processing part of a pipeline after an extractor change no longer requires re-running the first layer.