Skip to main content
Package your own processing code as an extractor, test it on your machine, and run it as a custom:<name> feature on a collection, with its vectors searchable by a retriever.

Prerequisites

Where an extractor can run decides how you ship it: Contact your account team to provision a dedicated deployment. On a single-tenant deployment or the standalone container you can also ship an extractor as a container image declared in a manifest.

Build and ship an extractor

1

Lay out the extractor

Layout
2

Declare the manifest

The manifest is the contract with the platform: what the extractor reads, what it writes and which vector indexes to create.
manifest.py
Each features entry needs exactly the keys feature_type ("embedding"), feature_name, embedding_dim and distance_metric ("cosine", "euclid" or "dot"). With type, name, dimensions or distance instead, the collection gets no vector index and the batch reports COMPLETED with 0 documents.
The vectors land at the feature URI mixpeek://my_extractor@1.0.0/my_embedding.
3

Write the batch processor

Your processor receives a pandas DataFrame and returns it with new columns, one per 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.
processors/core.py
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.
4

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
The real-time endpoint serves on a dedicated deployment. Leave out both realtime.py and any feature_uri in the manifest for a batch-only extractor.
5

Lint and test offline

Shell
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.
6

Ship it

Pick the path that fits your deployment:
  • Dedicated deployment: python plugins.py push uploads a version and deploy serves it. The CLI reads MIXPEEK_API_KEY, MIXPEEK_NAMESPACE and MIXPEEK_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.
7

Use it in a collection

cURL
Use 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

The presigned URL is valid for one hour. Confirm scans the code and checks the manifest, then sets 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 with extends 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.
extractor.yaml
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 a 403 naming the build tier), and running them inside your own extractor needs a dedicated deployment or the YAML path above.
1

Upload the weights

cURL
Formats are 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.
2

Deploy it

cURL
3

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.
processors/core.py
Other attributes: model_class (default AutoModel), tokenizer_class (AutoTokenizer, or None), torch_dtype (float32, float16 or bfloat16). self.get_model() returns (model, tokenizer).
An organization holds up to 50 models, each archive up to 5 GB. Deploy a new version next to the old one; the extractor version in the feature URI changes with it, so both can run while you compare.

Check that it worked

  • GET /v1/extractors/submissions/{submission_id} shows status, security_scan_passed, manifest_valid and any rejection_reason.
  • After a batch, GET /v1/collections/{collection_id} should list your index in vector_indexes with its feature_uri. An empty list means the manifest’s features keys are wrong.
  • Run a retriever with a feature_search stage on that feature URI and confirm documents come back. See Retrievers.

What goes wrong

The shared API does not serve /v1/namespaces/{namespace_id}/plugins. Develop and test offline, then submit for review, use the YAML path, or provision a dedicated deployment.
Wrong 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.
The scanner blocks 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.
On a cold engine the model loads on demand: the first batch can stay in 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.
A manifest with a feature_uri needs a realtime.py to embed queries. Remove both for a batch-only extractor.
A zip is up to 500 MB and 1,000 files; do not bundle model weights. Set 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.
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.
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.