Skip to main content
An extractor is the pipeline a collection runs over each object or document: it splits the input, runs models and writes documents with vectors and fields. You usually select one through a feature key such as video_search. Set the extractor explicitly with feature_extractor when you need its parameters, and read this page for what each one accepts and writes.

List available extractors

Four routes list extractors from the same registry. They differ in envelope, filters and credentials. /v1/features/extractors does not exist and returns 404. The list also includes colbert_extractor (serves text_search) and colqwen_extractor (serves image_search and document_search), which store one vector per token or patch.

Set extractor parameters

A features create uses each extractor’s defaults. Send feature_extractor in place of features when you need to change a parameter, map inputs yourself or copy source fields onto documents. It goes on Create Collection. The namespace must already list that extractor in its feature_extractors; a features create registers it for you, and an explicit create returns an error that names the missing extractor.
The examples in each section below show only the feature_extractor object. Each extractor’s full schema is at Get feature extractor, with an ID such as multimodal_extractor_v1. A feature URI is what a retriever’s feature_search stage searches. Copy it from the collection’s vector_indexes.

Universal

Embeds images, video, audio, PDFs and text into one 3072-d Gemini Embedding 2 space, and writes extracted text and a description next to each vector. It runs as a fast-path task without starting a Ray job, so small batches finish quickly. It calls Google Gemini for every object.
feature_extractor
Every document has universal_extractor_v1_embedding, modality (image, video, audio or document), text, description, segment_index and segment_total.covered_s is the span the indexed segments cover, so a value below duration_s means max_video_segments cut the file short. When no segment of a file produces a document, the extractor writes one document for the whole file with text: null and no segment times.
Segments are fixed 30-second windows starting at 0, so you cannot narrow the first segment to the first 3 seconds. There is no field for a hook segment, faces, keyframes, scene boundaries, music or tone; the description is free text. Use Face identity for faces, Multimodal for scene or named-window splits, and a custom extractor for other fields.

Multimodal

Splits video and audio into segments, then runs transcription (Whisper), a multimodal embedding, OCR and Gemini descriptions on each segment. Images, GIFs and text are embedded without splitting. Pick it over Universal when you need scene, silence or named-window splits, a transcript vector, or structured fields from response_shape. To choose the version, create the collection with feature_extractor and set version. The multimodal_understanding feature picks one for you, so read the collection’s vector_indexes to see which.
feature_extractor
Each segment document carries start_time, end_time, start_frame, end_frame, fps (after preprocessing), source_fps (of the original file), duration (of the whole video), thumbnail_url, source_video_url and video_segment_url. Timing fields are null when the source does not provide them; documents written before that change hold 0.0, so re-ingest a whole collection before filtering on a missing value.
split_method: "windows" cuts the same windows from every video. Each window is one document, and split_window holds its name.
feature_extractor
  • 1 to 20 windows. A name is 1 to 64 letters, digits, _ or -, unique in the list.
  • A negative start or end counts back from the end of the video. end: null is the end of the video.
  • Windows cannot overlap, and a window whose length is known up front is 0.5 to 120 seconds.
  • A window that runs past the end is cut short and stored with split_window_truncated: true. A window that would be under 0.5 seconds, starts past the end or overlaps once placed is skipped for that video. When no window fits, the object fails with NoWindowFits and is not retried.
  • The source must be a bucket video field. You cannot PATCH a collection to or from windows; clone it. Billing counts the whole video’s minutes.
  • Filter on split_window, which the namespace indexes as a keyword.
With every embedding flag off, each segment is still written with its times and lineage, and no vector. Attribute filters read those documents; a feature_search on that collection returns 400 naming it. Embed the layer you search and leave the layers you only split without vectors. A downstream collection can map video_segment_url as its video input to split a segment again. See chained collections.
Whisper detects the language of each segment, so a mixed-language corpus needs no setting. transcription is in the spoken language; no extractor writes a translation. E5 and Gemini vectors put 100+ languages in one space, so an English query matches Russian speech. To show a translation, add an llm_enrich stage in the retriever.
Keep videos under 2 hours and downsample 8K sources. Clips under 5 seconds carry a large fixed overhead. OCR and descriptions add the most processing time, so turn them on only where you search them.

Text

Embeds text with multilingual E5-Large (1024-d), optionally chunking it first. One vector space covers 100+ languages, so a query in one language matches text in another without a translation step. For exact tokens such as SKUs or codes, add a lexical (BM25) search in the same feature_search stage and fuse the two. Suggested chunk_size: 500 to 2000 characters, 100 to 400 words, 3 to 10 sentences, 1 to 3 paragraphs. An overlap of 10 to 20 percent of chunk_size keeps context across boundaries.
feature_extractor
split_by: "markdown" writes one document per heading section and one per fenced code block. A section longer than chunk_size words splits at paragraph boundaries; code blocks are never split. Front matter is dropped and its title becomes the outermost heading. Each document carries heading_path (headings joined with " > "), chunk_kind (section or code) and, for code, code_language. Use it for docs and READMEs: the other strategies can cut through a code fence.
response_shape asks an LLM for structured fields on each document, as a sentence or a JSON schema:
feature_extractor
With llm_provider: "typesafe", Jev answers each field and writes its probability to extraction_confidence. Every field then needs a closed set of values; see Jev.
Indexing uses the retrieval_document task and queries use retrieval_query, so you rarely set it. For clustering, classification or symmetric similarity, set embedding_task on the collection. To write vectors you computed yourself into a text collection, embed the way the platform does:The platform L2-normalizes its own vectors; normalize yours the same way. Check index.dimensions on the collection’s vector_indexes before you embed, since the default model can change. Send each vector under a key the collection accepts, as in Write your own vectors into a managed collection.

Image

Embeds each image with Google SigLIP (768-d, about 50 to 100 ms per image). SigLIP’s text encoder shares the space, so text queries find images. With PDF input it renders each page as an image, which is how document_search works.
feature_extractor
The model reads 224 px, so a small subject in a wide shot gets lost. With tile_grid: {"cols": 3, "rows": 2} each frame becomes 7 documents: tile 0 is the whole frame, then crops row by row. Each tile has tile_index and a shared frame_key. In the retriever, search with a high top_k and add a group_by stage on frame_key with max_per_group: 1 to rank frames by their best tile. Extraction and storage cost about 7 times as much. PDF pages are not tiled.
Image does no OCR and no face matching. Use Multimodal with run_ocr for text in images and Face identity for people.

Document

Splits PDFs into spatial blocks (paragraph, table, form, list, header, footer, figure, handwritten), each with a bounding box, a layout class and a confidence score. Blocks below a confidence threshold are re-read by a vision language model, and block text is embedded with E5-Large. Use it for scanned files and layouts where a flat text dump loses structure. confidence_tag is A at 0.85 or above, B at 0.70, C at 0.50 and D below 0.50. Filter on it to route C and D blocks to review.
feature_extractor
Handwriting detection is less reliable than printed text, and OCR works best on Latin scripts. For born-digital text you already have, Text is faster.

Face identity

Detects faces with SCRFD, aligns each to a 112 x 112 template and embeds it with ArcFace (512-d, 99.8% verification accuracy on LFW). Use it to find every photo or clip a person appears in: search with a reference face image as the query.
feature_extractor
ArcFace cosine similarity reads as: above 0.30 very likely the same person, 0.25 to 0.30 likely, 0.20 to 0.25 possible, below 0.20 different people. Start a verification threshold at 0.25 to 0.30. To group faces by person, run a cluster on this feature URI.

Scrolling text

Recovers on-screen text from video: static overlays (title cards, captions, disclaimers) through OCR of a few distinct keyframes, and scrolling bands (tickers, credits) by stitching frames into a panorama and reading it with Gemini. It writes text fields and no vector, so chain a Text collection on onscreen_text to search it by meaning.
feature_extractor
For a slow credit roll, try fps: 3.0, strip_height: 120, min_shift_px: 1.0 and consistency_ratio: 0.5.

Audio fingerprint

Splits audio into overlapping windows and embeds each with CLAP (laion/clap-htsat-tiny, 512-d). Use it to find a known jingle, sound logo or ad inside longer media, or acoustically similar clips. It writes no transcript; for spoken words use Universal or Multimodal.
feature_extractor

Web scraper

Crawls a site from a seed URL and writes page text, code blocks, images and asset links. It embeds page text with E5-Large, code with Jina Code, images with SigLIP and page layout with DINOv2. It renders JavaScript pages when needed, and retries, rotates proxies and detects captchas.
feature_extractor
youtube_mode: "auto" hands YouTube channel URLs to a channel fetcher and crawls other URLs as pages. off never does; force treats every URL as a channel. youtube_max_videos (50), youtube_backfill_months (6) and youtube_download_videos (true) bound what it fetches.
The crawler does not click, fill forms or scroll, and it signs in only through headers. It does not read robots.txt, so set delay_between_requests and max_pages to crawl politely. Rendering JavaScript takes 2 to 3 times as long per page.

Gemini multifile

Embeds several files of one object together (an image, a PDF and a text field, for example) into one 3072-d Gemini Embedding 2 vector, so each object becomes one document. Use it to search products, cases or records by all their files at once. No feature key selects it, so create the collection with feature_extractor.
feature_extractor
The list value is what turns on multi-file embedding; each object needs every listed field. At query time a feature_search stage accepts input_mode: "text" or "content" for one item, or input_mode: "multi_content" with values: [...] to embed several query files together the same way objects were indexed. multi_content works only on this extractor’s feature URI and returns 400 elsewhere.

Video transcode

Converts source video to a web-playable H.264 or H.265 MP4 in your object storage. RED R3D goes through REDline, ARRI RAW through ART CMD and everything else through FFmpeg. ffprobe reads the codec to pick the path, so a misleading file extension does no harm. It writes no scenes or vectors; chain a video collection on its output.
feature_extractor
With require_native_sdks: false, a RAW file falls back to FFmpeg when REDline or ART CMD is missing and can produce wrong color or a broken file that you notice only later. Set it to true for RED and ARRI sources.

Passthrough

Stores objects or documents without running a model. Use it to carry metadata into a collection, to copy fields between collections in a chain, or to load rows of JSONL or Parquet with vectors you already computed.
feature_extractor
A row without the vector field, or with a vector of the wrong length, fails on its own and the other rows are written. A vector name starts with a letter, uses letters, digits and _, and cannot reuse a document key such as document_id or metadata. Search these indexes with a raw query vector in a feature_search stage. To copy only some fields, list them in field_passthrough; set include_all_source_fields: true on feature_extractor to copy everything. For embeddings computed outside Mixpeek that are not rows of a JSONL or Parquet file, upsert them into the vector store. This extractor declares no vector index of its own, so without vector_fields it stores no vectors.

Jev

Jev is a decision model from TypeSafe AI. It answers typed questions about text (yes/no, a choice, a score) with a calibrated probability, and generates no text. It reads up to 32,000 tokens per request; media documents are judged on their text fields such as transcripts and descriptions. Each schema field becomes one question: A string field named reason, reasoning, explanation, rationale or justification receives the probabilities behind the answer. Any other free-text field is rejected before the request, and the error names it. Use a generative model such as gemini-2.5-flash-lite for free text.
typesafe__jev also takes pairs (a list of [query, document], returns scores), text with labels (returns every label with its probability) and state with questions (returns TypeSafe’s response). parameters.api_key uses your own TypeSafe key. See Raw inference.
inference_name: "mixpeek__decision" takes the same inputs and calls the model in parameters.model, or DECISION_MODEL_DEFAULT when unset. On Rerank and Classify, set decision_model; on Agent Search, model_name; on cluster labeling, llm_labeling.provider and model_name. A generative model reports its own confidence, and the response marks it calibrated: false. The text extractor, LLM Filter and LLM Enrich write a probability only when Jev answers.
State the exact condition: “The document states the refund policy for damaged items” works better than “relevant to refunds”. Keep arithmetic, counting and date comparison in code. Send only the text the question needs. Route answers below a probability you choose to review or to a generative model.