> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Extractors

> Every built-in extractor: inputs, output fields, feature URIs, parameters and the feature key that selects it, with one example each.

An extractor is the pipeline a [collection](https://docs.mixpeek.com/docs/extract/collections.md) 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.

| Extractor | Feature key | Input | Writes, per document | Feature URI | Use it when |
| - | - | - | - | - | - |
| [Universal](#universal) | `video_search` | `content`: image, video, audio, PDF, text | 3072-d Gemini vector, `text`, `description` | `mixpeek://universal_extractor@v1/gemini-embedding-2` | One extractor for a mixed bucket |
| [Multimodal](#multimodal) | `multimodal_understanding` | `video`, `image`, `text`, `gif` (v2 adds `audio`) | Segment vector, transcript, OCR, description, thumbnail | `mixpeek://multimodal_extractor@v1/vertex_multimodal_embedding` | You need control over video splitting, transcription or OCR |
| [Text](#text) | `text_search` | `text` | 1024-d E5 vector per chunk | `mixpeek://text_extractor@v1/multilingual_e5_large_instruct_v1` | Semantic or cross-lingual text search, RAG chunks |
| [Image](#image) | `image_search`, `document_search` | `image` (PDFs render per page) | 768-d SigLIP vector, thumbnail | `mixpeek://image_extractor@v1/google_siglip_base_v1` | Fast visual similarity and text-to-image search |
| [Document](#document) | `document_layout` | `pdf` | One block with layout class, bbox, confidence, 1024-d E5 vector | `mixpeek://document_graph_extractor@v1/intfloat__multilingual_e5_large_instruct` | Scanned or multi-column PDFs, tables, forms |
| [Face identity](#face-identity) | `faces` | `image`, `video`, `video_frame`, `pdf` | One face with 512-d ArcFace vector, bbox, quality | `mixpeek://face_identity_extractor@v1/insightface__arcface` | Find every clip or photo a person appears in |
| [Scrolling text](#scrolling-text) | `onscreen_text` | `video` | On-screen text fields, no vector | None | Tickers, credits, disclaimers, title cards |
| [Audio fingerprint](#audio-fingerprint) | `audio_search`, `audio_fingerprint` | `audio` or `video` | 512-d CLAP vector per audio window | `mixpeek://audio_fingerprint_extractor@v1/laion__clap_htsat_tiny` | Match a jingle, sound logo or ad audio |
| [Web scraper](#web-scraper) | `web_crawl` | `url` | Page text, code blocks, images, up to 4 vectors | `mixpeek://web_scraper@v1/intfloat__multilingual_e5_large_instruct` | Crawl and index a website |
| [Gemini multifile](#gemini-multifile) | None (explicit config only) | `files`: a list of fields | One 3072-d vector per object | `mixpeek://gemini_multifile_extractor@v1/gemini-embedding-2` | Search objects by several files together |
| [Video transcode](#video-transcode) | `video_transcode` | `video` | Playable MP4 URL, no vector | None | RED or ARRI RAW footage, mixed codecs |
| [Passthrough](#passthrough) | `storage_only` | any | Copied fields, optional precomputed vectors | Your `vector_fields` names | Store metadata or vectors you already have |
| [Jev](#jev) | None | text fields | Typed answers with probabilities | None | Labels, flags and ratings from a fixed set |

## List available extractors

Four routes list extractors from the same registry. They differ in envelope, filters and credentials.

| Route | Auth | Returns | Query parameters |
| - | - | - | - |
| `GET /v1/collections/features/extractors` | None | An array; each item has `feature_extractor_name`, `version`, `feature_extractor_id`, `input_schema`, `output_schema`, `parameter_schema`, `default_parameters` and `example_usage` | None |
| `GET /v1/discovery/extractors` | None | An array of summaries for manifest authors: `name`, `version`, `supported_modalities`, `output_features`, `parameter_schema` | None |
| `GET /v1/extractors` | API key | `extractors`, `total`, `builtin_count`, `custom_count` | `source` (`builtin`, `custom` or `all`), `include_disabled` |
| `GET /v1/namespaces/{namespace_id}/extractors` | API key and `X-Namespace` | `extractors`, `total`, `namespace_id`, plus custom plugins deployed to that namespace | `source`, `include_disabled` |

`/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](https://docs.mixpeek.com/docs/api-reference/collections/create-collection.md). 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.

```bash cURL theme={null}
curl -X POST "https://api.mixpeek.com/v1/collections" \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" \
  -H "X-Namespace: $NAMESPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "collection_name": "lecture-segments",
    "source": { "type": "bucket", "bucket_ids": ["'"$BUCKET_ID"'"] },
    "feature_extractor": {
      "feature_extractor_name": "multimodal_extractor",
      "version": "v1",
      "input_mappings": { "video": "video" },
      "field_passthrough": [{ "source_path": "course_id" }],
      "parameters": { "split_method": "silence", "run_transcription": true }
    }
  }'
```

```python Python theme={null}
import os
import requests

resp = requests.post(
    "https://api.mixpeek.com/v1/collections",
    headers={
        "Authorization": f"Bearer {os.environ['MIXPEEK_API_KEY']}",
        "X-Namespace": os.environ["NAMESPACE_ID"],
    },
    json={
        "collection_name": "lecture-segments",
        "source": {"type": "bucket", "bucket_ids": [os.environ["BUCKET_ID"]]},
        "feature_extractor": {
            "feature_extractor_name": "multimodal_extractor",
            "version": "v1",
            "input_mappings": {"video": "video"},
            "field_passthrough": [{"source_path": "course_id"}],
            "parameters": {"split_method": "silence", "run_transcription": True},
        },
    },
)
print(resp.status_code, resp.json())
```

```javascript JavaScript theme={null}
const resp = await fetch("https://api.mixpeek.com/v1/collections", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MIXPEEK_API_KEY}`,
    "X-Namespace": process.env.NAMESPACE_ID,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    collection_name: "lecture-segments",
    source: { type: "bucket", bucket_ids: [process.env.BUCKET_ID] },
    feature_extractor: {
      feature_extractor_name: "multimodal_extractor",
      version: "v1",
      input_mappings: { video: "video" },
      field_passthrough: [{ source_path: "course_id" }],
      parameters: { split_method: "silence", run_transcription: true },
    },
  }),
});
console.log(resp.status, await resp.json());
```

| Field | What it does |
| - | - |
| `feature_extractor_name`, `version` | The extractor and the version this collection is pinned to |
| `input_mappings` | Extractor input name to bucket field, for example `{"video": "video"}`. Use flat field names |
| `field_passthrough` | Source fields copied onto every document, so you can filter on them at query time |
| `parameters` | The extractor's parameters listed below. An unknown parameter returns `422` with the parameter schema |

The examples in each section below show only the `feature_extractor` object. Each extractor's full schema is at [Get feature extractor](https://docs.mixpeek.com/docs/api-reference/feature-extractors/get-feature-extractor-by-name.md), with an ID such as `multimodal_extractor_v1`. A [feature URI](https://docs.mixpeek.com/docs/extract/collections.md#find-the-feature-uri-to-search) 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 key | `video_search` (input defaults to the `video` field). The `transcript` feature also runs it on the `audio` field |
| Input | `content`: URL or path of the file |
| Documents | One per image, one per 30-second video or audio segment, one per PDF page |
| Feature URI | `mixpeek://universal_extractor@v1/gemini-embedding-2`, index `universal_extractor_v1_embedding` |

| Parameter | Default | Range | What it does |
| - | - | - | - |
| `output_dimensionality` | `3072` | 256 to 3072 | Vector length |
| `task_type` | `RETRIEVAL_DOCUMENT` | | Gemini task hint. Queries use `RETRIEVAL_QUERY` automatically |
| `generate_description` | `true` | | Write a Gemini description |
| `extract_text` | `true` | | OCR for images and PDFs, transcript for audio and video |
| `max_video_segments` | `10` | 1 to 50 | 30-second segments processed per video or audio file |
| `max_document_pages` | `50` | 1 to 200 | Pages processed per PDF |
| `max_file_download_mb` | `500` | 1 to 1024 | Larger files are skipped |
| `max_concurrency` | `4` | 1 to 32 | Objects processed at once per task |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "universal_extractor",
  "version": "v1",
  "input_mappings": { "content": "video" },
  "parameters": { "max_video_segments": 30, "max_document_pages": 200 }
}
```

> [accordion] Output fields by modality
>
> Every document has `universal_extractor_v1_embedding`, `modality` (`image`, `video`, `audio` or `document`), `text`, `description`, `segment_index` and `segment_total`.
>
> | Modality | Documents | Extra fields | `text` holds | `description` holds |
> | - | - | - | - | - |
> | `image` | 1 | None | Description and OCR text, joined by a newline | Gemini description |
> | `video` | One per 30 s, up to `max_video_segments` | `start_time_s`, `end_time_s`, `start_time`, `end_time`, `duration_s`, `covered_s` | Segment description and transcript | Gemini description of the segment |
> | `audio` | One per 30 s, up to `max_video_segments` | `start_time_s`, `end_time_s`, `start_time`, `end_time`, `duration_s`, `covered_s` | Segment transcript | `null` |
> | `document` | One per page, up to `max_document_pages` | `page_number` | PDF text layer, or Gemini text for a page without one | One-sentence summary on page 1, `null` after |
>
> `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.

> [accordion] What it does not write
>
> 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](#face-identity) for faces, [Multimodal](#multimodal) for scene or named-window splits, and a [custom extractor](https://docs.mixpeek.com/docs/extract/custom-extractors.md) 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](#universal) when you need scene, silence or named-window splits, a transcript vector, or structured fields from `response_shape`.

| | v1 | v2 |
| - | - | - |
| Multimodal embedding | Vertex multimodal, 1408-d | Gemini Embedding 2: 3072, 1536 or 768 |
| Feature URIs | `mixpeek://multimodal_extractor@v1/vertex_multimodal_embedding`, `mixpeek://multimodal_extractor@v1/multilingual_e5_large_instruct_v1` (transcript) | `mixpeek://multimodal_extractor@v2/gemini-embedding-2`, plus E5 transcript, OCR and description indexes |
| Inputs | `video`, `image`, `text`, `gif` | Adds `audio` |
| `windows` split | Yes | No |

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.

| Parameter | Default | What it does |
| - | - | - |
| `split_method` | `time` | `time`, `scene`, `silence`, `whole` (one document per video) or `windows` (v1) |
| `time_split_interval` | `10` | Seconds per segment for `time`, 0.1 to 3600 |
| `scene_detection_threshold` | `0.5` when unset | For `scene`. `0.3` finds more cuts, `0.7` fewer |
| `silence_db_threshold` | `-40` when unset | For `silence`. `-50` finds more pauses, `-30` fewer |
| `max_segment_duration` | `30.0` | Longer scene or silence segments are split again. `null` turns it off |
| `run_transcription` | `false` | Whisper transcript in `transcription` |
| `transcription_language` | `null` | ISO-639-1 code to force a language. Unset detects it per segment |
| `run_transcription_embedding` | `false` | 1024-d E5 vector of the transcript |
| `run_multimodal_embedding` | `true` | Segment vector. `false` writes segments with no vector |
| `run_ocr` | `false` | Text from frames in `ocr_text` |
| `run_video_description` | `false` | Gemini description in `description`, about 2 s per segment |
| `description_prompt` | `"Describe the video segment in detail."` | Prompt for the description |
| `description_model` (v1) | `null` (`gemini-3.5-flash-lite`) | Gemini model for description, OCR and `response_shape` |
| `response_shape` | `null` | Plain-language request or JSON schema; the result lands in `json_output` |
| `enable_thumbnails` | `true` | Thumbnail per segment in `thumbnail_url` |
| `output_dimensionality` (v2) | `3072` | `3072`, `1536` or `768` |
| `run_ocr_embedding`, `run_description_embedding` (v2) | `false` | E5 vectors of OCR text and descriptions |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "multimodal_extractor",
  "version": "v1",
  "input_mappings": { "video": "video" },
  "parameters": {
    "split_method": "scene",
    "run_transcription": true,
    "run_transcription_embedding": true,
    "run_ocr": true
  }
}
```

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.

> [accordion] Named windows (v1)
>
> `split_method: "windows"` cuts the same windows from every video. Each window is one document, and `split_window` holds its name.
>
> ```json feature_extractor theme={null}
> {
>   "feature_extractor_name": "multimodal_extractor",
>   "version": "v1",
>   "input_mappings": { "video": "video" },
>   "parameters": {
>     "split_method": "windows",
>     "split_windows": [
>       { "name": "hook_1_5", "start": 0, "end": 1.5 },
>       { "name": "closing", "start": -5, "end": null }
>     ]
>   }
> }
> ```
>
> * 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.

> [accordion] Split-only layers and chained collections
>
> 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](https://docs.mixpeek.com/docs/extract/collections.md#chain-collections).

> [accordion] Languages
>
> 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](https://docs.mixpeek.com/docs/retrieve/stages.md).

> [accordion] Limits
>
> 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](https://docs.mixpeek.com/docs/retrieve/stages.md) and fuse the two.

| | |
| - | - |
| Feature key | `text_search` (input defaults to the `content` field) |
| Input | `text`. Up to 512 tokens (about 400 words) are embedded; longer text is truncated, so chunk it |
| Documents | One per input, or one per chunk. `text` holds the chunk |
| Feature URI | `mixpeek://text_extractor@v1/multilingual_e5_large_instruct_v1`, index `text_extractor_v1_embedding` |

| Parameter | Default | What it does |
| - | - | - |
| `split_by` | `none` | `characters`, `words`, `sentences`, `paragraphs`, `pages`, `markdown`, `time_segments` or `none` |
| `chunk_size` | `1000` | Units per chunk for the chosen `split_by`, 1 to 10000. For `markdown`, words of prose per section |
| `chunk_overlap` | `0` | Units shared by consecutive chunks. Unused for `markdown` |
| `source_type` | `text` | `html` embeds a page's article body and writes `html_article` metadata; `youtube` resolves YouTube URLs to captions |
| `response_shape` | `null` | Plain-language request or JSON schema for LLM extraction |
| `llm_provider`, `llm_model` | `null` | `openai`, `google`, `anthropic` or `typesafe` ([Jev](#jev)) |
| `embedding_model` | text default | Another model from the embedding registry |

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.

```json feature_extractor theme={null}
{
  "feature_extractor_name": "text_extractor",
  "version": "v1",
  "input_mappings": { "text": "content" },
  "parameters": { "split_by": "sentences", "chunk_size": 5, "chunk_overlap": 1 }
}
```

> [accordion] Markdown splitting
>
> `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.

> [accordion] LLM extraction and Jev
>
> `response_shape` asks an LLM for structured fields on each document, as a sentence or a JSON schema:
>
> ```json feature_extractor theme={null}
> {
>   "feature_extractor_name": "text_extractor",
>   "version": "v1",
>   "input_mappings": { "text": "content" },
>   "parameters": {
>     "response_shape": {
>       "type": "object",
>       "properties": {
>         "sentiment": { "type": "string", "enum": ["positive", "negative", "neutral"] },
>         "topics": { "type": "array", "items": { "type": "string" }, "maxItems": 5 }
>       },
>       "required": ["sentiment"]
>     },
>     "llm_provider": "anthropic",
>     "llm_model": "claude-haiku-4-5-20251001"
>   }
> }
> ```
>
> 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](#jev).

> [accordion] Embedding task and your own vectors
>
> 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](https://docs.mixpeek.com/docs/extract/collections.md). To write vectors you computed yourself into a text collection, embed the way the platform does:
>
> | Property | Value |
> | - | - |
> | Model | `intfloat/multilingual-e5-large-instruct` |
> | Dimensions | 1024 |
> | Distance | Cosine |
> | Document text | Prepend `passage: ` before you embed |
> | Query text | Prepend `query: ` before you embed a query vector you pass with `input_mode: vector` |
>
> 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](https://docs.mixpeek.com/docs/manage/vector-store.md#what-a-document-carries).

## 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 key | `image_search` (input `image`), `document_search` (input `pdf`) |
| Input | `image`: JPEG, PNG, WebP, BMP or static GIF, resized to 224 x 224 internally. PDF pages render at 72 DPI |
| Documents | One per image, PDF page or tile. Fields: `image_extractor_v1_embedding`, `thumbnail_url`, `page_number`, `total_pages` |
| Feature URI | `mixpeek://image_extractor@v1/google_siglip_base_v1`, index `image_extractor_v1_embedding` |

| Parameter | Default | What it does |
| - | - | - |
| `enable_thumbnails` | `true` | Thumbnail per document |
| `use_cdn` | `false` | Serve thumbnails from the CDN |
| `tile_grid` | `null` | `{cols, rows, include_full_frame}`, 1 to 4 each way. Also indexes each frame as a grid of crops |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "image_extractor",
  "version": "v1",
  "input_mappings": { "image": "image" },
  "field_passthrough": [{ "source_path": "sku" }]
}
```

> [accordion] Tiles for small objects in wide shots
>
> 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](#multimodal) with `run_ocr` for text in images and [Face identity](#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.

| | |
| - | - |
| Feature key | `document_layout` (input `pdf`) |
| Input | `pdf`: one PDF per object, up to 100 MB. Scan at 150 to 300 DPI for the best OCR |
| Documents | One per block: `page_number`, `object_type`, `block_index`, `bbox` (`x0`, `y0`, `x1`, `y1`), `text_raw`, `text_corrected`, `overall_confidence`, `confidence_tag`, `thumbnail_url`, `segment_thumbnail_url` |
| Feature URI | `mixpeek://document_graph_extractor@v1/intfloat__multilingual_e5_large_instruct`, index `document_graph_extractor_v1_text_embedding` |

| Parameter | Default | What it does |
| - | - | - |
| `layout_detector` | `pymupdf` | `pymupdf`: rule-based, about 15 pages/s. `docling`: ML layout and table structure, 3 to 8 s per document |
| `use_layout_detection` | `true` | `false` groups text spans only, using `vertical_threshold`, `horizontal_threshold` and `min_text_length` |
| `use_vlm_correction` | `true` | Re-read low-confidence blocks with a VLM |
| `min_confidence_for_vlm` | `0.6` | Blocks below this go to the VLM |
| `fast_mode` | `false` | Skip VLM correction entirely |
| `vlm_provider`, `vlm_model` | `google`, `gemini-2.5-flash` | Also `openai` or `anthropic`. `llm_api_key` takes your own key or a `{{SECRET.name}}` reference |
| `render_dpi` | `150` | 72 to 300, page rendering for the VLM |
| `run_text_embedding` | `true` | `false` stores blocks with no vector |
| `generate_thumbnails`, `thumbnail_mode` | `true`, `both` | `full_page`, `segment` (cropped to the block) or `both` |

`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.

```json feature_extractor theme={null}
{
  "feature_extractor_name": "document_graph_extractor",
  "version": "v1",
  "input_mappings": { "pdf": "pdf" },
  "parameters": {
    "layout_detector": "docling",
    "min_confidence_for_vlm": 0.75,
    "render_dpi": 200
  }
}
```

Handwriting detection is less reliable than printed text, and OCR works best on Latin scripts. For born-digital text you already have, [Text](#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 key | `faces` (inputs default to `image`, `video` and `pdf`) |
| Input | `image`, `video` (frames sampled at `video_sampling_fps`), `video_frame`, or `pdf` (each page) |
| Documents | One per face: `face_index`, `bbox`, `detection_score`, `landmarks`, `quality_score`, `face_crop_url`, `aligned_face_crop`, `frame_number`, `timestamp`, `page_number` |
| Feature URI | `mixpeek://face_identity_extractor@v1/insightface__arcface`, index `face_identity_extractor_v1_embedding` |

| Parameter | Default | Range | What it does |
| - | - | - | - |
| `detection_model` | `scrfd_2.5g` | `scrfd_500m`, `scrfd_2.5g`, `scrfd_10g` | Faster to more accurate |
| `min_face_size` | `20` | 10 to 200 px | Smaller faces are ignored |
| `detection_threshold` | `0.5` | 0 to 1 | Detection confidence cutoff |
| `max_faces_per_image` | `null` | 1 or more | Cap faces per image or frame |
| `quality_threshold` | `null` | 0 to 1 | Skip faces below this quality. `0.5` drops poor faces, `0.7` keeps clear ones |
| `max_video_length` | `60` | 1 to 300 s | Longer video is cut |
| `video_sampling_fps` | `1.0` | 0.1 to 60 | Frames sampled per second |
| `video_deduplication` | `true` | | Drop repeats of a face across frames, at cosine `video_deduplication_threshold` (`0.8`) |
| `include_face_crops` | `true` | | Store the aligned crop as base64, about 5 KB per face. Cluster labeling needs it to see faces |
| `output_mode` | `per_face` | `per_face`, `per_image` | One document per face or per image |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "face_identity_extractor",
  "version": "v1",
  "input_mappings": { "video": "video" },
  "parameters": {
    "detection_model": "scrfd_10g",
    "max_video_length": 300,
    "min_face_size": 30,
    "quality_threshold": 0.4
  }
}
```

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](https://docs.mixpeek.com/docs/enrich/clusters.md) 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](#text) collection on `onscreen_text` to search it by meaning.

| | |
| - | - |
| Feature key | `onscreen_text` (input `video`) |
| Input | `video` |
| Output | `onscreen_text` (static text, then scrolling text, joined with `\|`), `static_text`, `scrolling_text`, `scroll_bands` (`axis`, `direction`, `shift_per_frame`, `text`), `bands_detected` |
| Feature URI | None |

| Parameter | Default | Range | What it does |
| - | - | - | - |
| `static_ocr` | `true` | | OCR static text from keyframes, one VLM call for a fully static video |
| `max_static_frames` | `4` | 1 to 12 | Distinct keyframes in the static OCR grid |
| `fps` | `5.0` | 1 to 30 | Frame sampling. Raise it for fast tickers |
| `strip_height` | `40` | 10 to 200 px | Scan strip height. Match the band height |
| `min_shift_px` | `2.0` | 0.5 to 20 | Per-frame shift that counts as scrolling. Lower finds slower text |
| `consistency_ratio` | `0.6` | 0.3 to 1 | Share of frame pairs that must agree |
| `pad` | `8` | 0 to 50 px | Padding around a band before stitching |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "scrolling_text_extractor",
  "version": "v1",
  "input_mappings": { "video": "video" },
  "parameters": { "fps": 15.0, "strip_height": 30, "min_shift_px": 5.0 }
}
```

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](#universal) or [Multimodal](#multimodal).

| | |
| - | - |
| Feature key | `audio_search` (input `audio`), `audio_fingerprint` (video add-on, input `video`) |
| Input | `audio`, or `video` (the audio track is extracted) |
| Documents | One per window: `segment_index`, `start_time_sec`, `end_time_sec`, `duration_sec`, `total_duration_sec`, `sample_rate`, `audio_source_type` |
| Feature URI | `mixpeek://audio_fingerprint_extractor@v1/laion__clap_htsat_tiny`, index `audio_fingerprint_extractor_v1_embedding` |

| Parameter | Default | Range | What it does |
| - | - | - | - |
| `segment_duration_sec` | `5.0` | 1 to 30 | Window length. 5 s suits sound marks |
| `segment_hop_sec` | `2.5` | 0.5 to 15 | Step between windows. Equal to the window length means no overlap |
| `max_audio_length_sec` | `120.0` | 1 to 600 | Audio past this is not processed |
| `sample_rate` | `48000` | | Audio is resampled to this rate |
| `normalize_embeddings` | `true` | | L2-normalize for cosine similarity |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "audio_fingerprint_extractor",
  "version": "v1",
  "input_mappings": { "audio": "audio" },
  "parameters": { "segment_duration_sec": 10.0, "segment_hop_sec": 10.0, "max_audio_length_sec": 300.0 }
}
```

## 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 key | `web_crawl` (input `url`) |
| Input | `url`: the seed URL |
| Documents | One per page or chunk: `content`, `title`, `page_url`, `code_blocks`, `images`, `asset_links`, `crawl_depth`, `parent_url`, `chunk_index`, `total_chunks` |
| Feature URIs | `mixpeek://web_scraper@v1/` followed by `intfloat__multilingual_e5_large_instruct` (text, 1024-d), `jinaai__jina_embeddings_v2_base_code` (code, 768-d), `google__siglip_base_patch16_224` (images, 768-d) or `facebook__dinov2_base` (layout, 768-d) |

| Parameter | Default | Range | What it does |
| - | - | - | - |
| `max_depth` | `2` | 0 to 10 | Link hops from the seed. `0` is the seed only |
| `max_pages` | `50` | 1 to 500 | Pages per crawl |
| `crawl_timeout` | `300` | 10 to 3600 s | Crawl time limit |
| `crawl_mode`, `crawl_goal` | `deterministic` | | `semantic` lets an LLM follow links relevant to `crawl_goal` |
| `render_strategy` | `auto` | | `static`, `javascript` (browser rendering) or `auto` (static, then browser if content is short) |
| `include_patterns`, `exclude_patterns` | `null` | | URL regexes to follow or skip |
| `chunk_strategy`, `chunk_size`, `chunk_overlap` | `none`, `500`, `50` | | `sentences`, `paragraphs`, `words` or `characters` |
| `generate_text_embeddings`, `generate_code_embeddings`, `generate_image_embeddings`, `generate_structure_embeddings` | `true` | | Turn each vector off |
| `delay_between_requests` | `0.0` | 0 to 60 s | Wait between requests |
| `custom_headers` | `null` | | Headers such as `Authorization` for protected pages |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "web_scraper",
  "version": "v1",
  "input_mappings": { "url": "url" },
  "parameters": {
    "max_depth": 3,
    "max_pages": 200,
    "include_patterns": ["/docs/.*"],
    "generate_image_embeddings": false,
    "delay_between_requests": 0.5
  }
}
```

> [accordion] Retries, proxies, captchas and sessions
>
> | Parameter | Default | What it does |
> | - | - | - |
> | `max_retries` | `3` (0 to 10) | Retries with exponential backoff |
> | `retry_base_delay`, `retry_max_delay` | `1.0`, `30.0` s | Backoff bounds |
> | `respect_retry_after` | `true` | Honor the server's `Retry-After` |
> | `proxies` | `null` | Proxy URLs to rotate through |
> | `rotate_proxy_on_error`, `rotate_proxy_every_n_requests` | `true`, `0` | When to switch proxy |
> | `detect_captcha` | `true` | Detect captcha pages |
> | `captcha_service_provider`, `captcha_service_api_key` | `null` | `2captcha`, `anti-captcha` or `capsolver` |
> | `persist_cookies` | `true` | Keep cookies for the crawl |
> | `document_id_strategy` | `url` | `url`, `position` or `content` (hash of the text, which removes duplicates) |
> | `response_shape`, `llm_provider`, `llm_model`, `llm_api_key` | `null` | LLM extraction of structured fields per page |

> [accordion] YouTube channels
>
> `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.

> [accordion] Limits
>
> 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`.

| | |
| - | - |
| Input | `files`: a list of bucket fields in `input_mappings`, each an image, PDF, video, audio or text field |
| Documents | One per object: `gemini_multifile_extractor_v1_embedding`, `source_blob_count`, `source_blob_properties` |
| Feature URI | `mixpeek://gemini_multifile_extractor@v1/gemini-embedding-2` |

| Parameter | Default | What it does |
| - | - | - |
| `output_dimensionality` | `3072` | 256 to 3072 |
| `task_type` | `RETRIEVAL_DOCUMENT` | Also `SEMANTIC_SIMILARITY`, `CLASSIFICATION`, `CLUSTERING` |
| `input_key` | `files` | Must match the key in `input_mappings` |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "gemini_multifile_extractor",
  "version": "v1",
  "input_mappings": { "files": ["hero_image", "spec_sheet", "description"] }
}
```

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 key | `video_transcode`, a video add-on that creates a companion collection |
| Input | `video`: R3D, ARI, ARRIRAW, ARX, MXF, MP4, MOV, AVI, MKV, WebM or anything FFmpeg decodes |
| Documents | One per object: `converted_url`, `source_format` (`r3d`, `arri` or `standard`), `width`, `height`, `duration_sec`, `converted_size_bytes` |

| Parameter | Default | What it does |
| - | - | - |
| `output_codec` | `libx264` | `libx265` for smaller files |
| `crf` | `23` | 0 to 51. Lower is higher quality; 18 to 23 is usual for H.264 |
| `preset` | `medium` | `ultrafast` to `veryslow`. Slower compresses better |
| `max_resolution` | `1080` | Output height cap, 144 to 4320. `null` keeps the source |
| `audio_codec` | `aac` | `mp3`, or `copy` to keep the source audio |
| `require_native_sdks` | `false` | `true` fails RED or ARRI files when the vendor tool is missing |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "transcoding_extractor",
  "version": "v1",
  "input_mappings": { "video": "video" },
  "parameters": { "crf": 20, "max_resolution": null, "require_native_sdks": true }
}
```

> [!WARNING]
>
> 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 key | `storage_only`, which copies all source fields |
| Input | Any. `content` and `data` are optional |
| Documents | One per object, or one per row when `vector_fields` or `row_format` is set |
| Feature URI | One index per `vector_fields` entry, named by its `name`; none otherwise |

| Parameter | Default | What it does |
| - | - | - |
| `vector_fields` | `[]` | Each `{field, name, dimensions, distance}` stores a row's vector under its own index. `distance` is `cosine`, `dot` or `euclidean` |
| `row_format` | `null` | `jsonl` or `parquet` reads each row as a document. With `vector_fields` set and this unset, the file extension decides |
| `preserve_metadata` | `true` | Keep the source object's metadata |

```json feature_extractor theme={null}
{
  "feature_extractor_name": "passthrough_extractor",
  "version": "v1",
  "input_mappings": { "content": "content" },
  "parameters": {
    "vector_fields": [
      { "field": "embedding", "name": "text_embedding", "dimensions": 384, "distance": "cosine" }
    ]
  }
}
```

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](https://docs.mixpeek.com/docs/manage/vector-store.md). 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.

| Surface | How to select Jev | What Jev decides | Probability is written to |
| - | - | - | - |
| [Text](#text) extractor | `llm_provider: "typesafe"` | Each `response_shape` field | `extraction_confidence` |
| [Cluster](https://docs.mixpeek.com/docs/enrich/clusters.md) labeling | `llm_labeling.provider: "typesafe"` with `candidate_labels` | The label per cluster | `label_confidence` |
| [LLM Filter stage](https://docs.mixpeek.com/docs/retrieve/stages.md) | `model_name: "jev-latest"` | Keep or drop each document | `scores.<stage_name>` |
| [LLM Enrich stage](https://docs.mixpeek.com/docs/retrieve/stages.md) | `model_name: "jev-latest"` with `output_schema` | Each schema field | `<output_field>_confidence` |
| [Rerank stage](https://docs.mixpeek.com/docs/retrieve/stages.md) | `inference_name: "typesafe__jev"` | Relevance per query and document | `score` |
| [Classify stage](https://docs.mixpeek.com/docs/retrieve/stages.md) | `inference_name: "typesafe__jev"` with `labels` | Each label's probability | `labels[].confidence` |
| [Agent Search stage](https://docs.mixpeek.com/docs/retrieve/stages.md) | `strategy: "cluster_navigation"`, `model_name: "jev-latest"` | Which child cluster to enter | `cluster_path_score` |

Each schema field becomes one question:

| Schema field | Question |
| - | - |
| `boolean` | Yes/no; `true` at a probability of 0.5 or more |
| `number` with `minimum: 0`, `maximum: 1` | Yes/no; the value is the probability |
| `string` with `enum` (2 to 255 values) | Choice. `enumDescriptions` describes each option |
| `integer` with `minimum` and `maximum` (2 to 10 levels) | Score |
| `array` of `enum` strings | One yes/no per value |

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.

```bash cURL theme={null}
curl -X POST "https://api.mixpeek.com/v1/inference" \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" \
  -H "X-Namespace: $NAMESPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "inference_name": "typesafe__jev",
    "inputs": {
      "text": "Kickflip down the eight stair at the city skatepark",
      "schema": {
        "type": "object",
        "properties": {
          "sport": {"type": "string", "enum": ["skateboarding", "surfing", "basketball"]},
          "is_tutorial": {"type": "boolean"}
        }
      }
    }
  }'
```

```python Python theme={null}
import os
import requests

resp = requests.post(
    "https://api.mixpeek.com/v1/inference",
    headers={
        "Authorization": f"Bearer {os.environ['MIXPEEK_API_KEY']}",
        "X-Namespace": os.environ["NAMESPACE_ID"],
    },
    json={
        "inference_name": "typesafe__jev",
        "inputs": {
            "text": "Kickflip down the eight stair at the city skatepark",
            "schema": {
                "type": "object",
                "properties": {
                    "sport": {"type": "string", "enum": ["skateboarding", "surfing", "basketball"]},
                    "is_tutorial": {"type": "boolean"},
                },
            },
        },
    },
)
print(resp.json())
```

```javascript JavaScript theme={null}
const resp = await fetch("https://api.mixpeek.com/v1/inference", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MIXPEEK_API_KEY}`,
    "X-Namespace": process.env.NAMESPACE_ID,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    inference_name: "typesafe__jev",
    inputs: {
      text: "Kickflip down the eight stair at the city skatepark",
      schema: {
        type: "object",
        properties: {
          sport: { type: "string", enum: ["skateboarding", "surfing", "basketball"] },
          is_tutorial: { type: "boolean" },
        },
      },
    },
  }),
});
console.log(await resp.json());
```

`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](https://docs.mixpeek.com/docs/api-reference/inference/execute-raw-inference.md).

> [accordion] Use another decision model
>
> `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.

> [accordion] Writing questions Jev answers well
>
> 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.