View on GitHub
Runnable reference for this extractor — inputs, parameters, output fields, embedding models, and copy-paste examples. Auto-generated from the live registry.
gemini-embedding-exp-03-07, 3072-d) to embed all files of an object — images, PDFs, video, audio, and text — into one unified vector per object in a single API call.
This is fundamentally different from other extractors: instead of producing one document per file, it collapses all of an object’s blobs into a single embedding representing the object as a whole.
View extractor details at api.mixpeek.com/v1/collections/features/extractors/gemini_multifile_extractor_v1
When to Use
When NOT to Use
How It Works
Standard extractors produce one document per blob (file). The Gemini Multifile Extractor uses arrayinput_mappings to collect multiple blob fields from one object into a single list, then sends all of them to Gemini Embedding 2 in one API call:
Array input_mappings
The key difference from other extractors is the input_mappings value: instead of mapping one field, you map a list of fields. All listed fields are collected from each object and embedded together.
"files") is the extractor’s input name. The value is a list of blob field names from your bucket schema. Each field can be an image, PDF, video, audio, or text blob.
Output
Parameters
At query time, Mixpeek automatically uses
RETRIEVAL_QUERY — you only need to set task_type at index time. The default RETRIEVAL_DOCUMENT is correct for most use cases. See Text Extractor embedding task docs for details on each value.Complete Collection Setup
1
Define your bucket schema with multiple blob fields
cURL
2
Create a collection with array input_mappings
cURL
The value of
"files" is a list of field names, not a single string. This is what triggers the multi-file embedding behavior. All three fields are embedded together into one vector.3
Upload objects to the bucket
Each object must have all the mapped fields populated:
cURL
4
Process the batch
cURL
Creating a Retriever
After indexing, create a retriever to search the embedded objects. Thefeature_search stage supports two query input modes for this extractor:
Single-item query (text or content mode)
Query with a single URL or text string — Gemini embeds it as-is and searches:
cURL
Multi-file query (multi_content mode)
Query with multiple files at once — Gemini embeds all of them together, matching how objects were indexed. This produces the most accurate similarity scores because the query vector is built the same way as the index vectors.
cURL
inputs:
cURL
multi_content is only valid for feature URIs backed by gemini_multifile_extractor. Using it with any other extractor returns a 400 error.Dimensionality Reduction
Gemini Embedding 2 supports truncated dimensions for storage cost reduction:Pricing
See Billing & Pricing — rates come fromGET /v1/billing/pricing. One charge covers all N files within an object — not per file.
Related
- Feature Search Stage — Search with
multi_contentquery mode - Image Extractor — Per-image embeddings (one document per image)
- Multimodal Extractor — Per-segment video/audio embeddings
- Text Extractor — Per-chunk text embeddings

