image_search or faces. Mixpeek resolves each feature to an extractor, pins its version and wires its inputs to your bucket fields.
Create a collection
This creates a collection that indexes the images in a bucket, then starts processing the objects already in it.202 with a batch_id, a task_id and the object_count it picked up:
cURL
GET /v1/tasks/{task_id}. In production, a sync on the bucket submits batches as objects land, so you trigger only for on-demand runs. Until a batch runs, objects sit at PENDING and the collection has zero documents.
How a collection works
Features map to modalities and extractors. Each feature applies to one or more modalities and is billed in that modality’s unit.GET /v1/collections/features returns the live menu, with keys, units and rates, and needs no API key.
storage_only stores objects without a model. Clustering and taxonomy enrichment are included on every modality. Rates and the cost estimate endpoint are in Limits and billing; the extractor index shows which extractor serves each key.
One pipeline per collection. A collection runs exactly one extractor. Features that need different extractors, such as a base feature and an add-on marked companion: true in the menu, go in separate collections over the same bucket. The create error lists which features group into which collection.
Inputs are wired for you. The scaffolded uploads bucket has one field per modality: image, video, audio, pdf, content (text) and url (web). A features create maps the extractor’s inputs to those fields. If your bucket names them differently, the create returns 422 with the fields that exist; rename the field or set input_mappings yourself with the explicit config.
Documents and output schema. An extractor can split one object into many documents: a video into segments, a PDF into pages or blocks, text into chunks. Each document carries its extractor’s fields, the source fields you pass through, and lineage (root_object_id, source_collection_id, processing_tier). The collection’s output_schema exists as soon as you create it; GET /v1/collections/{collection_id}/features lists the feature URIs, types and dimensions before any object is processed.
Find the feature URI to search
Afeature_search stage in a retriever names the vector index it searches with a feature URI, in the form mixpeek://{extractor}@{version}/{model}. Read it from the collection after you create it:
cURL
video_search writes one vector per segment that blends picture and speech; the transcript is stored in the text field. To search a transcript as its own vector, use the Multimodal extractor with run_transcription_embedding. On a collection with imported or promoted vectors and no extractor, feature_uri is the bare index name, and a feature_search stage accepts it as returned.
The URI pins the extractor version, so a retriever built on v1 keeps working after v2 ships. You move to a new version on purpose, as described in Change the model or extractor.
Options
Explicit pipeline config
feature_extractor replaces features when you need extractor parameters, your own input_mappings or field_passthrough. Send one or the other. The field shape and every extractor’s parameters are on Extractors.
Pass through every field you plan to filter on at query time. A local field filter runs 100 to 1,000 times faster than a stage that reaches back into the bucket.
Custom features
Extractors you upload keep their own names and are selected ascustom:<plugin_name>, for example "features": ["custom:defect_detector"]. They are priced per unit from the compute profile the extractor declares. See Custom extractors.
Chain collections
A collection whose source is another collection reads that collection’s documents. This turns ingestion into a tree: split video into segments, then chunk and embed each segment’s transcript, then classify each chunk. Mixpeek assigns each collection a processing tier and runs a tier only after the tier above has written its documents. Re-ingesting an object at the top re-runs the whole chain.Tier 2 collection body
- Each tier carries forward only the fields you pass through, so pass a field at every tier you need it.
- A tier-1 collection maps bucket fields; a lower tier maps the upper collection’s document fields.
- Give vector indexes only to layers you search. A Multimodal layer with
run_multimodal_embedding: falsesplits video and stores segments with no vector. - Deleting a tier-1 document removes its descendants.
- Walk the tree with the Document Lineage API. To return the parent of a child hit, see Retriever stages.
Merge buckets with different schemas
A collection can read several buckets.source.field_map picks which fields each bucket contributes and what they are called:
Merged source
source_path (required, dot paths allowed), target_path (defaults to the last part of source_path), default and required. A bucket with no key in field_map passes all of its fields; a bucket mapped to [] passes none. A document carries null for fields its own bucket did not map. Filter on root_bucket_id to select one bucket’s documents. Without field_map, all fields are merged by name, and two buckets that give one name different types return 422.
Build a collection from a retriever pipeline
retriever_transform runs retriever stages over the source and writes their outputs as fields, producing a view of the source’s documents. Use it to store a classification or score on every document.
Transform collection body
retriever_transform, or features/feature_extractor, and you cannot add an extractor later. The transform reads the whole source on each trigger and upserts by document id, so a re-run updates in place. With a group_by stage, documents that share the grouped value collapse into one, keeping the highest-scoring. Transform output has no vectors; point an extractor collection at the view to search it by similarity.
Embedding task
embedding_task on the collection sets the task hint for instruction-aware models (E5, Gemini). Indexing defaults to retrieval_document, and queries use retrieval_query automatically. Set clustering, classification or semantic_similarity only when the collection serves that purpose more than search. Vertex, SigLIP and CLIP vectors ignore it.
Change the model or extractor
The vector length of an index is fixed when the index is created, and vectors from different models cannot be compared. To move to a new embedding model or extractor version, re-extract into a target namespace and switch over when it checks out. The source namespace stays live, which is your rollback.1
Validate the migration
cURL
2
Create and start it
Send the same
config to POST /v1/namespaces/migrations/ with "start_immediately": true. Use filters to migrate a subset first; re-extraction pays full extraction cost for every document. Follow it with GET /v1/namespaces/migrations/{migration_id}.3
Compare and switch
Run your evaluations against both namespaces. When the target holds up, send its id in
X-Namespace. Point back at the source if metrics drop, and retire the source when you no longer need that rollback.copy migrations copy resources without re-extracting, and extend adds features to existing documents. To try a new extractor version next to the old one inside one namespace, create a parallel collection on the same bucket and compare retrievers on both feature URIs.
Limits and errors
422 on create
422 on create
- Unknown feature key: the error lists every valid key, plus
custom:<plugin>. - Both
featuresandfeature_extractor, or neither (and noretriever_transform). - Features that need more than one extractor: the error groups them by collection.
- Input fields missing from a custom bucket: the error names the fields that exist.
- Two
field_mapentries that resolve to the same target name, afield_mapkey not inbucket_ids, or one field name with different types across buckets. Settarget_pathon nested fields, sincemetadata.authorandcontent.authorboth becomeauthor.
201 with warnings
201 with warnings
The create succeeds and returns a
warnings array when a mapped field is declared on the bucket schema and missing from the objects in it. That collection processes nothing until objects carry the field. Fix it on the sync: add a schema_mapping whose blob entry sets blob_property to the mapped field. The check samples one object and stays quiet on an empty bucket.Task COMPLETED with 0 documents
Task COMPLETED with 0 documents
The usual causes are an
input_mappings field the objects do not carry, or, for a custom extractor, wrong features keys in its manifest. Check vector_indexes on the collection and the object’s lineage.Changes after create
Changes after create
PATCH refuses structural fields such as feature_extractor and the windows split; clone the collection with the new setting instead.Old extractor names
Configs that sendfeature_extractor with a built-in name keep working with no end date, and existing collections and feature URIs are unchanged. New collections should use features. The extractor index maps each extractor name to its feature key.
Related
- Extractors: inputs, outputs and parameters of each extractor
- Custom extractors: run your own model as a feature
- Buckets and Object storage and syncs: what a collection reads
- Retrievers: search the documents a collection writes
- Taxonomies and Clusters: enrich documents after extraction

