custom:<name> feature on a collection, with its vectors searchable by a retriever.
Prerequisites
Where an extractor can run decides how you ship it:Build and ship an extractor
Lay out the extractor
Declare the manifest
mixpeek://my_extractor@1.0.0/my_embedding.Write the batch processor
feature_name. Read the content from the data column: raw text for text blobs, an S3 URL for images, video and audio. Make one batched model call per batch.pipeline.py wires the processor into Ray Data as one or more StepDefinitions, each with a resource_type (CPU or GPU) and an optional row condition such as RowCondition.IS_IMAGE. A step can reuse a served model, for example get_batch_service("intfloat/multilingual-e5-large-instruct"), instead of loading its own.Add a query-time endpoint (optional)
realtime.py lets a feature_search stage embed the query with the same model you indexed with. It must return an embedding key. A feature_search stage sends the query as {"files": ["..."]}; POST /v1/inference sends your inputs as given.realtime.py and any feature_uri in the manifest for a batch-only extractor.Lint and test offline
lint validates the manifest, catches wrong features keys and runs the security scanner. test runs your processor through Ray Data map_batches with Arrow, feeding sample rows in the data column as production does, and checks your output columns against the manifest. Neither needs an API key.Ship it
- Dedicated deployment:
python plugins.py pushuploads a version anddeployserves it. The CLI readsMIXPEEK_API_KEY,MIXPEEK_NAMESPACEandMIXPEEK_API_URL. - Submit for review: upload the zip through submissions, below. Mixpeek reviews it and, once approved, it joins the built-in catalog for every organization.
- Marketplace (Enterprise): publish a submission that passed its scan so other organizations can install a copy.
Use it in a collection
feature_extractor with "feature_extractor_name": "my_extractor" and "version": "1.0.0" when you need your own input_mappings or parameters. A custom feature is priced per unit from the compute profile it declares; quote it first with the cost estimate in Limits and billing.Submit an extractor for review
status to review when the scan passes or rejected when it fails, with security_violations naming file and line.
Swap the model of a built-in with one YAML file
A zip that holds a single YAML manifest configures a built-in extractor and ships no code. It names the base withextends and points the vector index at another embedding model, including one your organization uploaded (org:<model_id>). Submit it the same way; confirm sets it to validating, and a validation job runs one sample inference and deploys it. Call it with POST /v1/inference.
dimensions must match the length the model returns, or validation rejects the extractor with the traceback. The base must embed with a model Mixpeek serves, such as text_extractor/v1 or image_extractor/v1; a base that calls an external embedding API, such as multimodal_extractor/v1, is refused at confirm.
Publish to the extractor marketplace
On the Enterprise tier,POST /v1/extractors/{extractor_id}/publish lists a submission that passed its scan (status review or approved) under a public_name, up to 10 per organization. Anyone can browse listings with GET /v1/public/extractors/ and no API key. POST /v1/extractors/install with a public_name copies a listing into your organization, scans it again, saves it as an approved submission and returns the feature_uri to use. See Publish extractor and Install public extractor.
Load your own model weights
An extractor can load any public HuggingFace model, or weights your organization uploads. Uploaded weights work on every paid plan (Build, Scale and Enterprise; the free tier gets a403 naming the build tier), and running them inside your own extractor needs a dedicated deployment or the YAML path above.
Upload the weights
safetensors, onnx, pytorch and huggingface. A name is 3 to 64 letters, digits or underscores and starts with a letter. The model joins your organization’s registry, so it keeps one model_id in every namespace. For large archives, use the presigned flow at Generate presigned URL for model upload.Deploy it
Load it in your processor
LazyModelMixin loads the model on the first batch and shares it across workers through Ray’s object store. Set model_source = "namespace" for uploaded weights, or "huggingface" with a HuggingFace model id.model_class (default AutoModel), tokenizer_class (AutoTokenizer, or None), torch_dtype (float32, float16 or bfloat16). self.get_model() returns (model, tokenizer).Check that it worked
GET /v1/extractors/submissions/{submission_id}showsstatus,security_scan_passed,manifest_validand anyrejection_reason.- After a batch,
GET /v1/collections/{collection_id}should list your index invector_indexeswith itsfeature_uri. An empty list means the manifest’sfeatureskeys are wrong. - Run a retriever with a
feature_searchstage on that feature URI and confirm documents come back. See Retrievers.
What goes wrong
Upload or deploy returns 403 DedicatedInfrastructureRequired
Upload or deploy returns 403 DedicatedInfrastructureRequired
/v1/namespaces/{namespace_id}/plugins. Develop and test offline, then submit for review, use the YAML path, or provision a dedicated deployment.Task COMPLETED with 0 documents
Task COMPLETED with 0 documents
features keys in manifest.py leave the collection with no vector index; run lint. The other common cause is reading a column named after your bucket field instead of batch["data"]. Look for [FailureAggregator] lines in the Ray logs.Confirm returns rejected
Confirm returns rejected
subprocess, os.system, os.popen, os.exec*, eval, exec, ctypes, socket, multiprocessing, open, setattr and delattr in your source. import os is allowed, and library file I/O such as torch.load or pd.read_csv is fine. Call ffmpeg, ffprobe, ImageMagick, exiftool, mediainfo, sox, REDline or art-cmd through run_tool from shared.extractors.sdk. Use json.loads in place of eval.First run is slow, or the first search returns nothing
First run is slow, or the first search returns nothing
PROCESSING for minutes, and the first retriever call can return 0 documents while the query-side model warms. Retry after a few seconds. Call prefetch_hf_model() in setup() to cut model download time.feature_search on your URI fails
feature_search on your URI fails
feature_uri needs a realtime.py to embed queries. Remove both for a batch-only extractor.Archive and runtime limits
Archive and runtime limits
compute_profile = {"resource_type": "cpu", "batch_size": 32, "max_concurrency": 4} for extractors that call an API or do no GPU work: skipping GPU allocation saves about 3 minutes of startup. For system packages or compiled binaries, set container_image in the manifest to an image built from the Mixpeek engine base image and pushed to your organization’s Artifact Registry repository.Serving settings for the real-time endpoint
Serving settings for the real-time endpoint
compute_profile.serve controls the Ray Serve app: min_replicas (default 0, scales to zero), max_replicas (1), idle_timeout_s (600, 300 to 1800), target_ongoing_requests (5) and placement (worker or head). A floor above zero needs a min_reason.Typed SDK
Typed SDK
shared.extractors.sdk offers ExtractorManifest and Feature.embedding(name, dim) for a validated manifest, BatchProcessor with setup() and process(), InferenceService with setup() and infer(), and helpers: parallel_io, concurrent_api_calls, open_asset, download_asset, upload_asset, run_tool and prefetch_hf_model. Inside a pipeline, container.llm calls platform LLMs with cost tracking and container.secrets.get(name) reads organization secrets.Related
- Collections and features: use a custom feature and chain it with other collections
- Extractors: the built-in extractors and their parameters
- Retriever stages:
feature_searchand the stages that call real-time endpoints - Manifests: declare extractors and container images as code

