Apply Taxonomy to Existing Documents
Changed onApply a taxonomy to all existing documents in a collection retroactively.
This endpoint triggers distributed Ray processing to enrich existing documents with taxonomy data. Unlike automatic materialization (which happens during ingestion), this endpoint allows you to:
- Backfill enrichment for documents ingested before the taxonomy was created
- Re-apply taxonomy after configuration changes
- Process specific subsets using scroll_filters
⚙️ Processing Details:
- Uses Ray datasets with map_batches for parallel processing
- Scales horizontally across Ray cluster
- Non-blocking: Returns immediately with task_id
- Monitor progress via Tasks API
⚠️ Prerequisites:
- Taxonomy must exist and be valid
- Taxonomy must be in collection's taxonomy_applications list
- Collection must contain documents
📊 Performance:
- ~1000-5000 docs/second depending on cluster size
- Parallel processing across multiple Ray workers
- Batch size and parallelism configurable
🔍 Use Cases:
- Backfill: Apply new taxonomy to historical data
- Re-enrichment: Update after taxonomy changes
- Selective: Process filtered document subsets
See Collections API and Taxonomies API documentation for details.
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/collections/{collection_identifier}/apply-taxonomy
- Auth: HTTP bearer and API key in header X-Namespace
Path parameters
Collection ID or name to apply taxonomy to
Request body
Example request
{
"description": "Apply taxonomy to all documents",
"taxonomy_id": "tax_abc123"
}Response
Successful Response
Example response
{
"collection_id": "col_products",
"estimated_documents": 15000,
"status": "submitted",
"task_id": "ray_task_abc123",
"taxonomy_id": "tax_categories"
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
added the new optional request property
- info