---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Capabilities](/capabilities)
3.  Buckets

Back to Capabilities

Data Extraction

# Buckets

Schema-backed containers for organizing multimodal objects with automatic validation and lineage tracking

[Create Your First Bucket](/start)[Beginner Tutorial](/docs/tutorials/ingest-video-from-s3)

## Video Overview

### Why do anything?

Organizing multimodal data (videos, images, documents, audio) requires consistent structure and validation before processing. Without buckets, data pipelines break when inputs don't match expected formats.

### Why now?

AI applications need reliable data staging areas. Manual validation is error-prone and doesn't scale. Collections need structured inputs to process data correctly.

### Why this feature?

Schema-backed buckets validate blob types (text, image, video, audio, JSON) before storage, ensure metadata consistency, and maintain complete lineage from source to processed documents. Works with S3, MinIO, LocalStack, and direct uploads.

## How It Works

Buckets are schema-backed containers that organize raw multimodal inputs before processing. They enforce validation, maintain metadata, and provide a staging area for collections to transform objects into searchable documents.

1

#### Schema Definition

Define blob properties (text, image, video, audio, JSON) with validation rules (required, enum, description)

2

#### Object Registration

Upload objects with blobs that match schema properties, include metadata for downstream use

3

#### Blob Validation

Validate each blob against schema: check type, required fields, and content format

4

#### Storage & Indexing

Store blob metadata in MongoDB, save blob content to S3/MinIO/LocalStack, index by key\_prefix

5

#### Lineage Tracking

Assign object\_id, track root\_object\_id and root\_bucket\_id for complete decomposition history

6

#### Collection Integration

Feed validated objects to collections for feature extraction and document creation

### Why This Approach

Schema validation at ingestion prevents downstream processing failures. Separation of storage (buckets) from processing (collections) enables reusing the same data across multiple feature extractors without re-uploading. Lineage tracking maintains provenance from raw input to final enriched document.

## Where This Is Used

[

E-commerce

#### Product Catalog Management



](/solutions/ecommerce)

[

Media

#### Video Asset Library



](/solutions/media-intelligence)

[

Healthcare

#### Medical Imaging Archive



](/solutions/healthcare)

## Integration

PythonJavaScriptAPI

from mixpeek import Mixpeek

client = Mixpeek(api\_key="YOUR\_API\_KEY")

# Create bucket with schema
bucket = client.buckets.create(
    bucket\_name="product\_catalog",
    description="E-commerce product data",
    bucket\_schema={
        "properties": {
            "product\_text": {
                "type": "text",
                "required": True,
                "description": "Product description"
            },
            "hero\_image": {
                "type": "image",
                "required": True
            },
            "spec\_sheet": {
                "type": "json"
            }
        }
    }
)

# Upload object to bucket
object\_response = client.buckets.objects.create(
    bucket\_id=bucket.bucket\_id,
    key\_prefix="/products/red-sneaker",
    metadata={
        "category": "footwear",
        "brand": "Acme",
        "sku": "SNK-001"
    },
    blobs=\[
        {
            "property": "product\_text",
            "type": "text",
            "data": "Comfortable red sneaker with foam sole."
        },
        {
            "property": "hero\_image",
            "type": "image",
            "data": "https://cdn.example.com/images/red-sneaker.jpg"
        },
        {
            "property": "spec\_sheet",
            "type": "json",
            "data": {
                "size\_range": "6-13",
                "colors": \["red", "blue"\],
                "weight\_oz": 12
            }
        }
    \]
)

# List objects with filters
objects = client.buckets.objects.list(
    bucket\_id=bucket.bucket\_id,
    filters={
        "AND": \[
            {"field": "metadata.category", "operator": "eq", "value": "footwear"}
        \]
    },
    page\_size=50
)

[View Documentation](https://mixpeek.com/docs/platform/data-model)

## Comparisons & Alternatives

vs. Direct S3/GCS uploads

#### Key Differences

*   Built-in schema validation vs. manual validation
*   Automatic lineage tracking vs. custom metadata management
*   Integration with Mixpeek collections vs. separate processing setup
*   Unified API for multimodal types vs. format-specific handling

#### When to Use

When you need validated, schema-backed storage that feeds directly into ML pipelines

#### When NOT to Use

If you only need raw file storage without processing pipelines

vs. Database tables (PostgreSQL, MongoDB)

#### Key Differences

*   Blob-optimized storage (S3) vs. database storage
*   Multimodal support (video, image, audio) vs. structured data only
*   Feature extraction integration vs. manual processing
*   Presigned URL access vs. direct database queries

#### When to Use

For multimodal data that needs ML processing and feature extraction

#### When NOT to Use

For purely structured relational data without media files

vs. Data lakes (Databricks, Snowflake)

#### Key Differences

*   Purpose-built for multimodal AI vs. general analytics
*   Real-time feature extraction vs. batch ETL
*   Direct collection integration vs. external connector setup
*   Embedded lineage tracking vs. separate data catalog

#### When to Use

When building AI applications that need instant multimodal processing

#### When NOT to Use

For business intelligence dashboards and reporting use cases

## Resources

This capability is referenced and used across the following resources:

### Recipes (2)

[Feature Extraction](/recipes/feature-extraction)[Dataset Versioning](/recipes/dataset-versioning)

### Solutions (3)

[Ecommerce](/solutions/ecommerce)[Entertainment](/solutions/entertainment)[Healthcare](/solutions/healthcare)

### Tutorials (1)

[Ingest Video From S3](/docs/tutorials/ingest-video-from-s3)

### University Modules (1)

[Data Transformation Pipeline](/university/module/data-transformation-pipeline)

## Recent updates

[Full changelog](/changelog)

*   [Nov 25, 2026Provenance says where each piece came from, and a bucket can set a defaultAn extracted document's provenance now has an origin: the source, author and link of the object it came from, and a span saying whether the document is the whole object or a part of it. Objects accept a provenance record on create, bulk create and upload, and a bucket's default\_provenance fills it in for objects that send none. Manifests declare, export, diff and apply default\_provenance like any other bucket field. origin.source and origin.span are indexed for filtering.](/changelog)
*   [Sep 26, 2026An object deleted during a batch stays deletedWhen an object was deleted while its batch was still queued, the delete removed the object's row from the bucket's system collection and the batch then wrote it back, so the deleted object showed up again in the bucket's listing. When a tier finishes, the rows of any batch objects deleted in the meantime are now removed.](/changelog)
*   [Jul 25, 2026Create Bucket points at the schema templates instead of asking for a propertyStep 2 of the Create Bucket wizard blocks until the object schema has at least one property, and the block read \`Please define at least one property in the object schema\`. One-click templates for Videos, Images, Documents, and Products sit directly above that step, and nothing connected the two. The message now reads \`Add at least one field, or pick a template above (Videos, Images, Documents) to fill in a starting schema you can tweak\`.](/changelog)

## Related Capabilities

[

prerequisite

#### Collections

Collections consume bucket objects for feature extraction



](/capabilities/collections)

[

prerequisite

#### Namespaces

Buckets are scoped to namespaces for multi-tenancy



](/capabilities/namespaces)