1.  [](/)
2.  [Templates](/templates)
3.  Video Moderation Extraction Foundation

Safety and compliance

[Part of the Content Moderation solution →](/solutions/content-moderation)v1.0 · updated 2026-09-03

# Video Moderation Extraction Foundation

Segment a video corpus, extract a keyframe record for every segment, and match brand marks against a reference set you upload. Face and public-figure matching run on a dedicated or customer-hosted deployment. This deploy is the extraction layer a moderation policy sits on, and the page carries a state on every part so you can see which policy pieces are yours to add.

[Deploy this namespace](https://studio.mixpeek.com/manifests/apply?url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Fvideo-moderation.namespace.yaml&manifest_url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Fvideo-moderation.namespace.yaml&src=template-video-moderation&template=video-moderation&template_name=Video+Moderation+Extraction+Foundation&sync=1&starter=brand-logo-match&utm_source=homepage&utm_medium=template_deploy&utm_campaign=mvs_onramp)[Book a workshop](/pilot?src=template-video-moderation)View manifest

What deploys today7 ready1 not yet proven3 need your input13 not available yet

Studio also offers Brand Logo Match for a zero-setup trial.

Video Moderation Extraction Foundation

Watch the video moderation template

of minors caught at a cutoff of 18

82%

recall is reachable, and the page says what it costs

100%

face detector gate

0.70

of detections routed to review as unaged

39%

click to first answer

91.5 s

How these were measured

*   82% of minors caught at a cutoff of 18: on 650 labelled faces, 320 minors and 330 adults, single frame; 4.8% of adults sent to review
*   100% recall is reachable, and the page says what it costs: a cutoff of 30 catches every minor and sends 94.5% of adult footage to review; the whole curve is in the evaluation tab
*   0.70 face detector gate: cleared six phantom minors the detector found in non-faces while keeping 85% of genuine faces
*   39% of detections routed to review as unaged: no usable face, under 24px, or detector confidence under 0.70. None of them is passed as adult.
*   91.5 s click to first answer: from clicking apply to the first search that answers, timed on production on 6 November 2026 by the harness that runs nightly

## What’s inside

Extractors

[multimodal](/extractors/multimodal)[image](/extractors/image)[passthrough](/extractors/passthrough)

Models

[Gemini Embedding 2](/models/gemini-embedding-2)[Multilingual E5 Large Instruct](/models/multilingual-e5-large-instruct)[SigLIP Base patch16 224](/models/siglip-base-patch16-224)

Retrievers

brand-mark-match·[feature\_search](/retrievers/feature_search)roll-up-by-segment·[attribute\_filter](/retrievers/attribute_filter) → [group\_by](/retrievers/group_by)segment-search·[feature\_search](/retrievers/feature_search)review-queue·[feature\_search](/retrievers/feature_search)moderation-search·[feature\_search](/retrievers/feature_search)cleared-set-export·[feature\_search](/retrievers/feature_search)flagged-segment-monitor·[feature\_search](/retrievers/feature_search) → [llm\_filter](/retrievers/llm_filter)

Marketplace retrieversHosted checks that run beside it, no key

[IP screening: faces and brand marks](/marketplace/ip-screen)[Celebrity face match](/marketplace/celebrity-face-match)[Brand logo match](/marketplace/brand-logo-match)[Trademarked slogan match](/marketplace/trademark-slogan-match)

Solution

[Content Moderation →](/solutions/content-moderation)

## See it work

*   segments with a visible brand mark
    
    brand-mark-match
    
    keyframes matched against your own reference index
    
*   everything still waiting on a human decision
    
    review-queue
    
    the borderline set, with the reason each one landed there
    
*   the cleared set, ready to publish
    
    cleared-set-export
    
    only what passed, once the verdict steps apply; empty before that
    

Simulated walkthrough · illustrative frames, scripted decisions

Pause

facelogocontextticker

![A close-up interview frame with one face in shot](/templates/video-moderation/face.webp)face 0.93 · est. 16 to 18 · borderlinereview

faces -> age-estimation -> person-verdictsStill: Pexels / Ron Lachframe 1 of 4

Detections on this frame

*   face 0.93 · est. 16 to 18 · borderline

Decision path

1.  face detected 0.93
2.  grouped across 3 looks
3.  age estimate: borderline
4.  route: review

within 6 years of the cutoff, and 3 looks

Your call on this frame

Clear itExclude it

Running tally

0

cleared

1

review

0

excluded

What a person's call does here

A reviewer marks a verdict right or wrong and attaches what they saw. That is an annotation, written with POST /v1/annotations, versioned, and stored in the namespace's own mxp\_document\_annotations collection.

Try a search

“segments with a visible brand mark”“everything still waiting on a human decision”“the cleared set, ready to publish”

Pick a search to see which retriever answers it and whether it works on a one-click deploy.

Insource-videobrand-mark-refsperson-refsOutsegment-verdictsreview-queuecleared-set-export

## How it's wired

Applies 3 buckets, 4 collections and 7 retrievers today; dashed parts ship commented out

SourceBucketCollectionRetrieverClusterTriggerClean viewAlertNot applied yet

.wf-flow { stroke-dasharray: 6 6; animation: wf-dash 1.2s linear infinite; } @keyframes wf-dash { to { stroke-dashoffset: -12; } } @media (prefers-reduced-motion: reduce) { .wf-flow { animation: none; } } SOURCENeeds your inputsource-videos3 · continuousSOURCENeeds your inputbrand-marksmanual · one-shotSOURCENeeds your inputperson-referencesmanual · one-shotBUCKETsource-videocontent: video · dedupBUCKETbrand-mark-refscontent: image · dedupBUCKETperson-refscontent: image · dedupCOLLECTIONDeploys readyvideo-segmentsmultimodal\_extractor@v2COLLECTIONDeploys readybrand-mark-indeximage\_extractor@v1COLLECTIONNot available yetperson-ref-indexface\_identity\_extractor@v1COLLECTIONNot available yetfacesface\_identity\_extractor@v1COLLECTIONDeploys readykeyframesimage\_extractor@v1COLLECTIONNot available yetonscreen-textscrolling\_text\_extractor@v1COLLECTIONNot available yetage-estimationage\_estimator@v1 · pluginCOLLECTIONNot available yetviolence-contextcontext\_scorer@v1 · pluginRETRIEVERDeploys readybrand-mark-matchrrf · top 5RETRIEVERNot available yetpublic-figure-matchrrf · top 5CLUSTERNot available yetperson-rolluphdbscanCLUSTERNot available yetsegment-rollupclusterTRIGGERperson-rollup-nightlyTRIGGERsegment-rollup-nightlyCLEAN VIEWNot available yetperson-verdictsone row per person\_idCLEAN VIEWNot available yetsegment-verdictsone row per segment\_idRETRIEVERDeploys, not yet provenroll-up-by-segmentpipeline · group by segment\_idRETRIEVERDeploys readysegment-searchrrf · top 20RETRIEVERNot available yetreview-queuerrf · top 100RETRIEVERNot available yetmoderation-searchlearned · top 25RETRIEVERNot available yetcleared-set-exportrrf · top 500RETRIEVERDeploys readyflagged-segment-monitortop 5ALERTflagged-segment

Drag nodes to rearrange. Drag the background to pan, ctrl or cmd plus scroll to zoom. Click a node for its settings.

## What it costs

Files per monthMinutes per file333 hours of video a monthSearches per month

Reset to defaults

Usage cost per month

$7,288

$0.73 per file · rate card when this page was built

Processing is priced the way a batch is charged: each bucket's minutes, images, pages or tokens times its rate card lines. The batch dry run in Studio gives the binding quote.

## Models

*   [Gemini Embedding 2](/models/gemini-embedding-2)Provider APIEmbedding
*   [Multilingual E5 Large Instruct](/models/multilingual-e5-large-instruct)![](/favicon.ico)Served on MixpeekEmbedding
*   [SigLIP Base patch16 224](/models/siglip-base-patch16-224)![](/favicon.ico)Served on MixpeekEmbedding

### Collections and their documents

video-segmentsfrom bucket source-video, by multimodal\_extractor@v2

Reads video from content

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

file\_location

as sent

no

segment\_id

as sent

no

start\_time

as sent

no

end\_time

as sent

no

*   `mixpeek://multimodal_extractor@v2/gemini-embedding-2` from [Gemini Embedding 2](/models/gemini-embedding-2)

brand-mark-indexfrom bucket brand-mark-refs, by image\_extractor@v1

Reads image from content

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

mark\_name

as sent

no

rule

as sent

no

*   `mixpeek://image_extractor@v1/google_siglip_base_v1` from [SigLIP Base patch16 224](/models/siglip-base-patch16-224)

keyframesfrom collection video-segments, by image\_extractor@v1

Reads image from thumbnail\_url

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

thumbnail\_url

as sent

no

segment\_id

as sent

no

frame\_ts

as sent

no

segment-verdictsfrom collection video-segments, by passthrough\_extractor@v1

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

*   `mixpeek://multimodal_extractor@v2/gemini-embedding-2` from [Gemini Embedding 2](/models/gemini-embedding-2)
*   `mixpeek://multimodal_extractor@v2/multilingual_e5_large_instruct_ocr_v1` from [Multilingual E5 Large Instruct](/models/multilingual-e5-large-instruct)
*   `mixpeek://multimodal_extractor@v2/multilingual_e5_large_instruct_v1` from [Multilingual E5 Large Instruct](/models/multilingual-e5-large-instruct)

## Retrievers

*   brand-mark-match
    
    feature\_search over brand-mark-index; input query
    
*   roll-up-by-segment
    
    attribute\_filter then group\_by over video-segments; input limit
    
*   segment-search
    
    feature\_search over video-segments; input query
    
*   review-queue
    
    feature\_search over segment-verdicts; input query
    
*   moderation-search
    
    feature\_search over segment-verdicts; input query, session\_id
    
*   cleared-set-export
    
    feature\_search over segment-verdicts; input query
    
*   flagged-segment-monitor
    
    feature\_search then llm\_filter over video-segments; input query, document\_id
    

## Spend limits

Daily spend budget in the manifest

1 USD a day; new batches pause once it is spent

Acceptance run ceiling

0.5 USD

Model cost

Unmeasured for 3 of 3 models

Monthly cost at your volume is in the [calculator](#pricing). Served models start at zero replicas, so an idle namespace runs no model.

## Reward signals

Reviewers do not only clear a queue. Every call they make is a labelled example, and the template is built so those labels move the thresholds rather than sit in a spreadsheet.

How reviewer decisions move the thresholds

Docs[Annotations](https://docs.mixpeek.com/relevance/annotations)[Interactions](https://docs.mixpeek.com/retrieval/interactions)[Reward signals](https://docs.mixpeek.com/retrieval/reward-signals)[Auto-tune](https://mixpeek.com/docs/retrieval/adaptive-query-pipeline#learned-fusion-auto-tune)[Build a feedback loop](https://docs.mixpeek.com/tutorials/feedback-loop)[Generate evaluations from interactions](https://docs.mixpeek.com/api-reference/retriever-evaluations/generate-from-interactions)

Explicit signals

A reviewer marks a verdict right or wrong and attaches what they saw. That is an annotation, written with POST /v1/annotations, versioned, and stored in the namespace's own mxp\_document\_annotations collection.

Implicit signals

What a reviewer opens, skips, or acts on is an interaction, written with POST /v1/retrievers/interactions into mxp\_retriever\_interactions. Nobody fills in a form for these.

Where they land

`mxp_document_annotations``mxp_retriever_interactions``mxp_retriever_evaluations`

How the loop closes

POST /v1/retrievers/{id}/evaluations/generate-from-interactions turns those signals into an evaluation set, so a threshold change is judged by precision and recall moving on held-out data rather than by whether signals were captured. moderation-search is configured with learned fusion in shadow mode: it learns from the signals and reports what it would have ranked, and you flip it on with a retriever PATCH when the numbers justify it.

OverviewManifestWhat deploysComponentsDeploymentEvaluationQuestions

One click deploys the extraction layer: segments you can search in plain text, keyframes, and a brand-mark reference index with the retriever that searches it.

*   Your video lands in video-segments, and every segment traces back to its source object by lineage.
*   segment-search answers a plain-text description of what is on screen with the matching segments of your footage, each traceable to its source video.
*   keyframes come out of the segment pass, so every frame is addressable per segment.
*   brand-mark-index holds the reference set you upload. It deploys empty on purpose, and the deploy screen says so.
*   brand-mark-match searches those references and returns the segments that matched.
*   Face recognition is off on Mixpeek Cloud, so faces, person-ref-index and public-figure-match ship commented out in the manifest. They apply on a dedicated or customer-hosted deployment, where the face extractor is served.
*   The policy layer is yours to add and this page says which parts. Age estimation and violence context are not available yet: neither extractor is published, and age estimation also needs face recognition. The verdict roll-ups, the review queue and the cleared-set export are not available yet, and each one carries that state next to what it describes.
*   Screening at ingest checks a library once, before it is published or reused, and every later use reads the same decisions.

For: Trust and safety, compliance and content teams who have to show a regulator, a customer or a court what was flagged and why. The problem shows up at ingest, where the library is largest and a miss is copied into everything made from it.

What goes in

source-video

Your footage, read from your own object storage. Nothing is copied out.

brand-mark-refs

Logo and mark variants you supply, one file per variant, with a hard-fail or contextual rule each.

person-refs

Public-figure reference imagery you supply and hold the rights to. Several poses per person.

What comes out

segment-verdicts

One row per segment with the decision, the reason behind it, and counts of people, minors, unaged faces and borderline faces, once the age-estimation and segment roll-up steps apply. Until then it holds the raw segment rows, with no decisions in them.

review-queue

Everything routed to a human, ranked, with the decision chain attached to each item.

cleared-set-export

The segments that pass the policy, as a filterable set to publish or hand on, once segment-verdicts carries decisions. Until then it returns nothing. Cleared means eligible under this template's test policy, not a rights clearance.

Docs[Namespaces](https://docs.mixpeek.com/vector-store/namespaces)[Pipeline configuration](https://docs.mixpeek.com/processing/feature-extractors)[Retrievers](https://docs.mixpeek.com/retrieval/retrievers)

One file spins up the namespace. Generated from the workflow above. Also served at `/templates/video-moderation.namespace.yaml`.

\# video-moderation: one manifest spins up the namespace.
# Platform manifest schema (GET /v1/discovery/schema). Validate with POST /v1/manifest/validate,
# apply with POST /v1/manifest/apply or the Deploy button. Wiring comes from the flow diagram:
# edges are bucket -> collection sources, collection -> retriever scope, retriever -> view.
# Applying a SECOND time, over a namespace this template already created: use
# POST /v1/manifest/apply?mode=create\_missing, which creates what is missing and leaves
# what exists alone. The default, create\_only, fails the WHOLE apply and rolls it back if
# any resource already exists, so an upgrade looks like a dead end without this. Use
# mode=upsert to also patch resources that exist but have drifted from this file.
version: '1.0'
metadata:
  name: video-moderation
  description: "Namespace template video-moderation. Generated from the flow diagram on mixpeek.com/templates/video-moderation."
namespaces:
  - name: video-moderation
    description: "Everything below lives in this namespace."
    feature\_extractors:
      - name: multimodal\_extractor
        version: v2
      - name: image\_extractor
        version: v1
      - name: passthrough\_extractor
        version: v1
    # Daily spend budget, in dollars of what you are charged (1,000 credits a dollar).
    # New batches pause once the namespace has spent this much today; queries are not capped.
    # Raise it later on the namespace: PATCH /v1/namespaces/<id> {"spend\_budget": {"daily\_usd": N}}.
    budget:
      daily\_usd: 1

# Data sources. A storage connection carries credentials, so it is created in Studio
# (or POST /v1/organizations/storage-connections) and synced into the bucket named here.
#   source-video: s3, continuous, your footage, in your account -> bucket source-video
#   brand-marks: manual, one-shot, customer-supplied logo and mark variants -> bucket brand-mark-refs
#   person-references: manual, one-shot, customer-supplied public-figure reference imagery -> bucket person-refs
buckets:
  - name: source-video
    namespace: video-moderation
    description: "Meant to be fed by source-video (s3, continuous). No source is connected yet: applying this manifest creates the bucket only. Connect the source to this bucket in Studio (Syncs) to start the feed."
    schema:
      properties:
        content:
          type: video
  - name: brand-mark-refs
    namespace: video-moderation
    description: "Meant to be fed by brand-marks (manual, one-shot): upload files here or write them through the API. Nothing arrives until you do."
    schema:
      properties:
        content:
          type: image
    # Starts empty and is yours to fill. Until it has files, screen against the hosted
    # set instead: 189,830 brand marks from LogoDet-3K, OpenLogo, OSLD, Logos-in-the-Wild and the ESPN team sets
    #   curl -X POST https://api.mixpeek.com/v1/marketplace/catalog/brand-logo-match/execute \\
    #     -H 'Content-Type: application/json' \\
    #     -d '{"inputs":{"query":"<image url>"},"pagination":{"method":"offset","page\_number":1,"page\_size":10}}'
    # No key and no subscription. https://mixpeek.com/marketplace/brand-logo-match
  - name: person-refs
    namespace: video-moderation
    description: "Meant to be fed by person-references (manual, one-shot): upload files here or write them through the API. Nothing arrives until you do."
    schema:
      properties:
        content:
          type: image
    # Starts empty and is yours to fill. Until it has files, screen against the hosted
    # set instead: 32,667 public-figure faces from LFW, FaceScrub, Wikipedia and the 2025 NFL, NBA, MLB, NHL, NCAA and Premier League rosters
    #   curl -X POST https://api.mixpeek.com/v1/marketplace/catalog/celebrity-face-match/execute \\
    #     -H 'Content-Type: application/json' \\
    #     -d '{"inputs":{"query":"<image url>"},"pagination":{"method":"offset","page\_number":1,"page\_size":10}}'
    # No key and no subscription. https://mixpeek.com/marketplace/celebrity-face-match

# Connect your own storage. Create the two secrets, uncomment, and apply again;
# apply live-tests the connection, so it must have real credentials to succeed.
# Until then the buckets above accept direct uploads.
# storage\_connections:
#   - name: source-video-connection
#     provider: s3
#     description: "Read-only access to the s3 location holding your footage, in your account."
#     config:
#       region: us-east-1
#       credentials:
#         type: access\_key
#         access\_key\_id: ${{ secrets.AWS\_ACCESS\_KEY\_ID }}
#         secret\_access\_key: ${{ secrets.AWS\_SECRET\_ACCESS\_KEY }}

# bucket\_syncs:
#   - name: source-video-sync
#     bucket: source-video
#     connection: source-video-connection
#     source\_path: "footage/"
#     sync\_mode: continuous
#     polling\_interval\_seconds: 300
#     skip\_duplicates: true
#     file\_filters:
#       include\_patterns: \["\*.mp4", "\*.mov", "\*.mkv", "\*.webm"\]
#     schema\_mapping:
#       mappings:
#         content:
#           target\_type: blob
#           source: {type: file}
#           blob\_type: video

collections:
  - name: video-segments
    namespace: video-moderation
    description: "multimodal\_extractor@v2 over bucket source-video. Feeds flagged-segment-monitor, flagged-segment, faces, keyframes, onscreen-text, segment-rollup, roll-up-by-segment, segment-search."
    source:
      type: bucket
      bucket: source-video
    feature\_extractor:
      name: multimodal\_extractor
      version: v2
      parameters:
        run\_transcription: true
        run\_transcription\_embedding: true
        run\_ocr: true
        run\_ocr\_embedding: true
      input\_mappings:
        video: content
      field\_passthrough:
        - source\_path: file\_location
        - source\_path: segment\_id
        - source\_path: start\_time
        - source\_path: end\_time
    alert\_applications:
      - alert: flagged-segment
        input\_mappings:
          - input\_key: query
            source: {source\_type: constant, value: "nudity, violence or a weapon"}
          - input\_key: document\_id
            source: {source\_type: document\_field, path: \_internal.document\_id}
    enabled: true
  - name: brand-mark-index
    namespace: video-moderation
    description: "image\_extractor@v1 over bucket brand-mark-refs. Feeds brand-mark-match."
    source:
      type: bucket
      bucket: brand-mark-refs
    feature\_extractor:
      name: image\_extractor
      version: v1
      input\_mappings:
        image: content
      field\_passthrough:
        - source\_path: mark\_name
        - source\_path: rule
    enabled: true
  - name: keyframes
    namespace: video-moderation
    description: "image\_extractor@v1 over collection video-segments. Feeds violence-context."
    source:
      type: collection
      collection: video-segments
    feature\_extractor:
      name: image\_extractor
      version: v1
      input\_mappings:
        image: thumbnail\_url
      field\_passthrough:
        - source\_path: thumbnail\_url
        - source\_path: segment\_id
        - source\_path: frame\_ts
    enabled: true

# NOT APPLIED. Every collection person-verdicts derives from (faces, age-estimation) is commented out in this
# manifest, so it has no source to be created from. It applies once one of them does.
#   - name: person-verdicts
#     namespace: video-moderation
#     description: "Cluster person-rollup is the intended producer and is emitted commented out below, so nothing writes here yet. One document per person\_id. Writes back n\_looks. Declared as a passthrough collection so the retrievers that name it still resolve; read what they return as source rows, not as this view's output. age\_median and aged wait on the age-estimation block above."
#     source:
#       type: none
#     feature\_extractor:
#       name: passthrough\_extractor
#       version: v1
#       field\_passthrough: \[\]
#     enabled: true
  - name: segment-verdicts
    namespace: video-moderation
    description: "Cluster segment-rollup is the intended producer and is emitted commented out below. Until it applies, this collection holds a plain copy of video-segments's rows, with none of the fields this view describes. One document per segment\_id. Writes back n\_person. Declared as a passthrough collection so the retrievers that name it still resolve; read what they return as source rows, not as this view's output. decision, reason, n\_minor and n\_unaged wait on the age-estimation block above, n\_borderline on violence-context."
    source:
      type: collection
      collection: video-segments
    feature\_extractor:
      name: passthrough\_extractor
      version: v1
      field\_passthrough: \[\]
    enabled: true

# NOT APPLIED. Face recognition is turned off on Mixpeek Cloud, so this face step does not deploy. It runs on a dedicated or customer-hosted deployment, where face\_identity\_extractor is served.
# The block below is correct and is emitted commented out so the rest of this
# manifest applies; an apply is all-or-nothing and would otherwise roll back.
#   - name: person-ref-index
#     namespace: video-moderation
#     description: "face\_identity\_extractor@v1 over bucket person-refs. Feeds public-figure-match."
#     source:
#       type: bucket
#       bucket: person-refs
#     feature\_extractor:
#       name: face\_identity\_extractor
#       version: v1
#       input\_mappings:
#         image: content
#       field\_passthrough:
#         - source\_path: person\_name
#         - source\_path: rights\_note
#     enabled: true

# NOT APPLIED. Face recognition is turned off on Mixpeek Cloud, so this face step does not deploy. It runs on a dedicated or customer-hosted deployment, where face\_identity\_extractor is served.
# The block below is correct and is emitted commented out so the rest of this
# manifest applies; an apply is all-or-nothing and would otherwise roll back.
#   - name: faces
#     namespace: video-moderation
#     description: "face\_identity\_extractor@v1 over collection video-segments. Feeds age-estimation, person-rollup, segment-rollup."
#     source:
#       type: collection
#       collection: video-segments
#     feature\_extractor:
#       name: face\_identity\_extractor
#       version: v1
#       input\_mappings:
#         video: video\_segment\_url
#       field\_passthrough:
#         - source\_path: segment\_id
#         - source\_path: bbox
#         - source\_path: detection\_score
#         - source\_path: quality\_score
#     enabled: true

# NOT APPLIED. scrolling\_text\_extractor@v1 declares expected\_input\_types {video: video}, and a collection-to-collection chain hands it video\_segment\_url, which the platform types as STRING. POST /v1/manifest/apply rejects the pair and rolls the whole manifest back. face\_identity\_extractor@v1 takes the same mapping and applies, because it declares no expected\_input\_types. Tracked with backend; remove this line when the chain accepts a URL string for a typed video input.
# The block below is correct and is emitted commented out so the rest of this
# manifest applies; an apply is all-or-nothing and would otherwise roll back.
#   - name: onscreen-text
#     namespace: video-moderation
#     description: "scrolling\_text\_extractor@v1 over collection video-segments. Feeds roll-up-by-segment."
#     source:
#       type: collection
#       collection: video-segments
#     feature\_extractor:
#       name: scrolling\_text\_extractor
#       version: v1
#       input\_mappings:
#         video: video\_segment\_url
#       field\_passthrough:
#         - source\_path: segment\_id
#     enabled: true

# NOT APPLIED. No age\_estimator extractor is published to install yet, and it reads the face crops that face recognition would produce, which is off on Mixpeek Cloud.
# The block below is correct and is emitted commented out so the rest of this
# manifest applies; an apply is all-or-nothing and would otherwise roll back.
#   - name: age-estimation
#     namespace: video-moderation
#     description: "age\_estimator@v1 over collection faces. Feeds person-rollup. age\_estimator is a template-provided extractor (a plugin that ships with this template, not a hosted one): install it, then apply this block."
#     source:
#       type: collection
#       collection: faces
#     feature\_extractor:
#       name: age\_estimator
#       version: v1
#       input\_mappings:
#         face: face\_crop\_url
#       field\_passthrough:
#         - source\_path: person\_id
#         - source\_path: age\_median
#         - source\_path: aged
#         - source\_path: n\_looks
#     enabled: true

# NOT APPLIED. No context\_scorer extractor is published to install yet, so this step has nothing to run.
# The block below is correct and is emitted commented out so the rest of this
# manifest applies; an apply is all-or-nothing and would otherwise roll back.
#   - name: violence-context
#     namespace: video-moderation
#     description: "context\_scorer@v1 over collection keyframes. Feeds roll-up-by-segment. context\_scorer is a template-provided extractor (a plugin that ships with this template, not a hosted one): install it, then apply this block."
#     source:
#       type: collection
#       collection: keyframes
#     feature\_extractor:
#       name: context\_scorer
#       version: v1
#       input\_mappings:
#         image: thumbnail\_url
#       field\_passthrough:
#         - source\_path: segment\_id
#         - source\_path: staged\_score
#         - source\_path: real\_score
#         - source\_path: margin
#     enabled: true
retrievers:
  - name: brand-mark-match
    namespace: video-moderation
    description: "Searches brand-mark-index across 1 feature index."
    collections:
      - brand-mark-index
    input\_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
    stages:
      - stage\_name: search
        stage\_id: feature\_search
        parameters:
          searches:
            - feature\_uri: "mixpeek://image\_extractor@v1/google\_siglip\_base\_v1"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 5
          fusion: rrf
          final\_top\_k: 5
    tags:
      - template:video-moderation
  # NOT APPLIED. Face recognition is turned off on Mixpeek Cloud, so this face step does not deploy. It runs on a dedicated or customer-hosted deployment, where face\_identity\_extractor is served.
  # - name: public-figure-match
  #   namespace: video-moderation
  #   description: "Searches person-ref-index across 1 feature index."
  #   collections:
  #     - person-ref-index
  #   input\_schema:
  #     query:
  #       type: text
  #       required: true
  #       description: "URL of the image or frame to match; encoded by the index below and compared against it"
  #   stages:
  #     - stage\_name: search
  #       stage\_id: feature\_search
  #       parameters:
  #         searches:
  #           - feature\_uri: "mixpeek://face\_identity\_extractor@v1/insightface\_\_arcface"
  #             query:
  #               input\_mode: content
  #               value: "{{INPUT.query}}"
  #             top\_k: 5
  #         fusion: rrf
  #         final\_top\_k: 5
  #   tags:
  #     - template:video-moderation
  - name: roll-up-by-segment
    namespace: video-moderation
    description: "Pipeline retriever over video-segments. Groups documents by segment\_id."
    collections:
      - video-segments
      # - person-verdicts  (add once its commented-out block above applies)
      # - violence-context  (add once context\_scorer is installed and its block above is applied)
      # - onscreen-text  (add once its commented-out block above applies)
    input\_schema:
      limit:
        type: text
        required: false
        description: "Optional cap on documents grouped per run"
    stages:
      - stage\_name: source
        stage\_id: attribute\_filter
        parameters:
          field: segment\_id
          operator: exists
          value: true
      - stage\_name: group
        stage\_id: group\_by
        parameters:
          group\_by\_field: segment\_id
    tags:
      - template:video-moderation
  - name: segment-search
    namespace: video-moderation
    description: "Plain-text search over every segment of your footage, the foundation's own entry point: describe what is on screen and get the segments back with their source."
    collections:
      - video-segments
    input\_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
    stages:
      - stage\_name: search
        stage\_id: feature\_search
        parameters:
          searches:
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/gemini-embedding-2"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 20
          fusion: rrf
          final\_top\_k: 20
    tags:
      - template:video-moderation
  - name: review-queue
    namespace: video-moderation
    description: "Searches segment-verdicts across 1 feature index."
    collections:
      - segment-verdicts
    input\_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
    stages:
      - stage\_name: search
        stage\_id: feature\_search
        parameters:
          searches:
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/gemini-embedding-2"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 100
          fusion: rrf
          final\_top\_k: 100
    tags:
      - template:video-moderation
  - name: moderation-search
    namespace: video-moderation
    description: "Searches segment-verdicts across 3 feature indexes with learned fusion."
    collections:
      - segment-verdicts
    input\_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
      session\_id:
        type: text
        required: false
        description: "Session identifier; the learned fusion uses it as personal context"
    stages:
      - stage\_name: search
        stage\_id: feature\_search
        parameters:
          searches:
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/gemini-embedding-2"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 25
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/multilingual\_e5\_large\_instruct\_v1"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 25
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/multilingual\_e5\_large\_instruct\_ocr\_v1"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 25
          fusion: learned
          final\_top\_k: 25
          # Shadow first: weights are learned and logged, static fusion is served, until the
          # signals justify a rollout. Flip rollout\_pct through the retriever update path.
          learning\_config:
            shadow\_mode: true
            rollout\_pct: 0.0
            context\_features:
              - INPUT.session\_id
    tags:
      - template:video-moderation
  - name: cleared-set-export
    namespace: video-moderation
    description: "Searches segment-verdicts across 1 feature index."
    collections:
      - segment-verdicts
    input\_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
    stages:
      - stage\_name: search
        stage\_id: feature\_search
        parameters:
          searches:
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/gemini-embedding-2"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 500
          fusion: rrf
          final\_top\_k: 500
    tags:
      - template:video-moderation
  - name: flagged-segment-monitor
    namespace: video-moderation
    description: "The alert's check: does the segment just written show nudity, violence or a weapon. The search is scoped to that one segment, so earlier footage is never re-reported, and an llm\_filter watches the segment and keeps it only when it does. Materialises into flagged-segment."
    collections:
      - video-segments
    input\_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
      document\_id:
        type: text
        required: true
        description: "The written document this run is scoped to, supplied by the alert attachment"
    stages:
      - stage\_name: search
        stage\_id: feature\_search
        pre\_filters:
          AND:
            - field: \_internal.document\_id
              operator: eq
              value: "{{INPUT.document\_id}}"
        parameters:
          searches:
            - feature\_uri: "mixpeek://multimodal\_extractor@v2/gemini-embedding-2"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 5
          fusion: rrf
          final\_top\_k: 5
      - stage\_name: judge
        stage\_id: llm\_filter
        parameters:
          criteria: "Keep this video segment only if it shows {{INPUT.query}}. Judge what is on screen and in the audio, not the file name or metadata. Discard it otherwise."
          include\_media: true
    tags:
      - template:video-moderation
# clusters:

# NOT APPLIED. A cluster trigger's output\_collections redirects a run into a collection this manifest also declares, and the reference graph validates. The destination never receives the cluster output vector index: that index is installed when a cluster is created, and a trigger dispatches the run straight to the queue without it, so the output points are dropped at upsert and the collection stays empty. Tracked with backend; remove this line when a redirected destination gets the index.
#   - name: person-rollup
#     namespace: video-moderation
#     description: "Groups the faces collection into one cluster per person, on the ArcFace embedding face\_identity\_extractor writes. Feeds person-verdicts."
#     # faces also feeds this cluster and is NOT named below: it is emitted
#     # commented out above, so naming it here would fail the whole apply. Add it
#     # to source\_collections once that block is applied.
#     # age-estimation also feeds this cluster and is NOT named below: it is emitted
#     # commented out above, so naming it here would fail the whole apply. Add it
#     # to source\_collections once that block is applied.
#     source\_collections:
#       \[\]  # a composite run reads centroids from the executions named below
#     cluster\_type: vector
#     vector\_config:
#       feature\_uris:
#         - mixpeek://face\_identity\_extractor@v1/insightface\_\_arcface
#       clustering\_method: hdbscan
#       face\_cluster\_merge:
#         enabled: true
#         centroid\_cosine\_threshold: 0.55
#         bbox\_field: bbox
#         frame\_field: frame\_number
#         scene\_field: segment\_id
#     llm\_labeling:
#       enabled: true
#       provider: google
#       model\_name: gemini-2.5-flash
#     enrich\_source\_collection: true
#     source\_enrichment\_config:
#       field\_mappings:
#         - source\_field: cluster\_id
#           target\_field: person\_id
#         - source\_field: cluster\_label
#           target\_field: person\_label

# NOT APPLIED. A cluster trigger's output\_collections redirects a run into a collection this manifest also declares, and the reference graph validates. The destination never receives the cluster output vector index: that index is installed when a cluster is created, and a trigger dispatches the run straight to the queue without it, so the output points are dropped at upsert and the collection stays empty. Tracked with backend; remove this line when a redirected destination gets the index.
#   - name: segment-rollup
#     namespace: video-moderation
#     description: "Groups faces and video-segments by segment\_id, one cluster per segment. Feeds segment-verdicts. Runs after person-rollup, which is what puts person\_id on a face."
#     # faces also feeds this cluster and is NOT named below: it is emitted
#     # commented out above, so naming it here would fail the whole apply. Add it
#     # to source\_collections once that block is applied.
#     source\_collections:
#       - video-segments
#     cluster\_type: attribute
#     attribute\_config:
#       attributes:
#         - segment\_id
#     llm\_labeling:
#       enabled: true
#       provider: google
#       model\_name: gemini-2.5-flash
alerts:
  - name: flagged-segment
    namespace: video-moderation
    description: "Emails the org notifications address (Settings -> Notifications; unset means opted out) when a newly written segment looks like nudity, violence or a weapon, so it reaches review without anyone searching for it."
    source: retriever
    retriever: flagged-segment-monitor
    trigger\_on: results
    notification\_config:
      channels:
        - channel\_type: email
      include\_matches: true
      include\_scores: true
    enabled: false
# triggers:

# NOT APPLIED. A cluster trigger's output\_collections redirects a run into a collection this manifest also declares, and the reference graph validates. The destination never receives the cluster output vector index: that index is installed when a cluster is created, and a trigger dispatches the run straight to the queue without it, so the output points are dropped at upsert and the collection stays empty. Tracked with backend; remove this line when a redirected destination gets the index.
#   - name: person-rollup-nightly
#     namespace: video-moderation
#     description: "Runs person-rollup nightly and lands the result in person-verdicts."
#     action\_type: cluster
#     trigger\_type: cron
#     schedule\_config:
#       cron\_expression: "0 2 \* \* \*"
#       timezone: UTC
#     action\_config:
#       cluster: person-rollup
#       output\_collections:
#         - person-verdicts
#     status: active

# NOT APPLIED. A cluster trigger's output\_collections redirects a run into a collection this manifest also declares, and the reference graph validates. The destination never receives the cluster output vector index: that index is installed when a cluster is created, and a trigger dispatches the run straight to the queue without it, so the output points are dropped at upsert and the collection stays empty. Tracked with backend; remove this line when a redirected destination gets the index.
#   - name: segment-rollup-nightly
#     namespace: video-moderation
#     description: "Runs segment-rollup nightly and lands the result in segment-verdicts. An hour after person-rollup, since it reads what that run writes."
#     action\_type: cluster
#     trigger\_type: cron
#     schedule\_config:
#       cron\_expression: "0 3 \* \* \*"
#       timezone: UTC
#     action\_config:
#       cluster: segment-rollup
#       output\_collections:
#         - segment-verdicts
#     status: active

# Plan 11.14: two public-domain films to moderate and two CC0 photographs as
# brand-mark references, ingested after apply, and the use case they must
# satisfy.
seed:
  - bucket: source-video
    max\_objects: 2
    objects:
      - blobs: {content: samples/starter/videos/norelco-speed.mp4}
      - blobs: {content: samples/starter/videos/mexican-hat-dance.mp4}
  - bucket: brand-mark-refs
    max\_objects: 2
    objects:
      - blobs: {content: samples/starter/images/mustang-san-francisco.jpg}
      - blobs: {content: samples/starter/images/thessaloniki-port-tankers.jpg}
acceptance:
  max\_cost\_usd: 0.5
  steps:
    - name: video-segmented
      kind: documents
      collection: video-segments
      expect: {min\_documents: 2}
    - name: brand-marks-indexed
      kind: documents
      collection: brand-mark-index
      expect: {min\_documents: 2}
    - name: segment-search-answers
      kind: query
      retriever: segment-search
      inputs: {query: people dancing}
      expect: {min\_results: 1}
    - name: brand-mark-match-answers
      kind: query
      retriever: brand-mark-match
      inputs: {query: a car on a city street}
      expect: {min\_results: 1}

Read from the manifest, so a part it ships commented out never shows as ready.

video-segmentsCollectionDeploys ready

brand-mark-indexCollectionDeploys ready

keyframesCollectionDeploys ready

brand-mark-matchRetrieverDeploys ready

segment-searchRetrieverDeploys ready

flagged-segment-monitorRetrieverDeploys ready

group\_by stageRetriever stageDeploys ready

roll-up-by-segmentRetrieverDeploys, not yet proven

source-videoData sourceNeeds your input

brand-marksData sourceNeeds your input

person-referencesData sourceNeeds your input

person-ref-indexCollectionNot available yet

facesCollectionNot available yet

onscreen-textCollectionNot available yet

age-estimationCollectionNot available yet

violence-contextCollectionNot available yet

public-figure-matchRetrieverNot available yet

person-rollupClusterNot available yet

segment-rollupClusterNot available yet

person-verdictsViewNot available yet

segment-verdictsViewNot available yet

review-queueRetrieverNot available yet

moderation-searchRetrieverNot available yet

cleared-set-exportRetrieverNot available yet

What each part needs

video-segments

Deploys and processes documents as they arrive.

brand-mark-index

Deploys and processes documents as they arrive.

keyframes

Deploys and processes documents as they arrive.

brand-mark-match

Deploys and answers queries once its collections hold documents.

segment-search

Deploys and answers queries once its collections hold documents.

flagged-segment-monitor

Deploys and answers queries once its collections hold documents.

group\_by stage

The one-click manifest includes this stage.

roll-up-by-segment

Deploys, and part of what feeds it is not ready: person-verdicts, violence-context and onscreen-text. Results cover only the parts that are.

source-video

Create the s3 credentials as manifest secrets, then uncomment the sync. It ships commented out because apply tests a connection as it creates it.

brand-marks

You upload these files yourself. There is no connection to sync.

person-references

You upload these files yourself. There is no connection to sync.

person-ref-index

Face recognition is turned off on Mixpeek Cloud, so this face step does not deploy. It runs on a dedicated or customer-hosted deployment, where face\_identity\_extractor is served.

faces

Face recognition is turned off on Mixpeek Cloud, so this face step does not deploy. It runs on a dedicated or customer-hosted deployment, where face\_identity\_extractor is served.

onscreen-text

scrolling\_text\_extractor@v1 declares expected\_input\_types {video: video}, and a collection-to-collection chain hands it video\_segment\_url, which the platform types as STRING. POST /v1/manifest/apply rejects the pair and rolls the whole manifest back. face\_identity\_extractor@v1 takes the same mapping and applies, because it declares no expected\_input\_types. Tracked with backend; remove this line when the chain accepts a URL string for a typed video input.

age-estimation

No age\_estimator extractor is published to install yet, and it reads the face crops that face recognition would produce, which is off on Mixpeek Cloud.

violence-context

No context\_scorer extractor is published to install yet, so this step has nothing to run.

public-figure-match

Face recognition is turned off on Mixpeek Cloud, so this face step does not deploy. It runs on a dedicated or customer-hosted deployment, where face\_identity\_extractor is served.

person-rollup

A cluster trigger's output\_collections redirects a run into a collection this manifest also declares, and the reference graph validates. The destination never receives the cluster output vector index: that index is installed when a cluster is created, and a trigger dispatches the run straight to the queue without it, so the output points are dropped at upsert and the collection stays empty. Tracked with backend; remove this line when a redirected destination gets the index.

segment-rollup

A cluster trigger's output\_collections redirects a run into a collection this manifest also declares, and the reference graph validates. The destination never receives the cluster output vector index: that index is installed when a cluster is created, and a trigger dispatches the run straight to the queue without it, so the output points are dropped at upsert and the collection stays empty. Tracked with backend; remove this line when a redirected destination gets the index.

person-verdicts

No retriever can write a collection yet, so this deploys as an empty placeholder that nothing fills.

segment-verdicts

No retriever can write a collection yet, so this deploys as an empty placeholder that nothing fills.

review-queue

Deploys, but everything it reads comes from segment-verdicts, which is not available yet, so it returns nothing.

moderation-search

Deploys, but everything it reads comes from segment-verdicts, which is not available yet, so it returns nothing.

cleared-set-export

Deploys, but everything it reads comes from segment-verdicts, which is not available yet, so it returns nothing.

Docs[Multimodal extractor](https://docs.mixpeek.com/processing/extractors/multimodal)[Face identity extractor](https://docs.mixpeek.com/processing/extractors/face-identity)[Image extractor](https://docs.mixpeek.com/processing/extractors/image)[Scrolling text extractor](https://docs.mixpeek.com/processing/extractors/scrolling-text)[Custom extractors](https://docs.mixpeek.com/processing/custom-extractors)[Retriever stages](https://docs.mixpeek.com/retrieval/stages)

Component

Role

Source

Today

[multimodal\_extractor v2](/extractors/multimodal)

Segments video and embeds each segmentTranscription, description and OCR are separate passes on this extractor and this template leaves them off: run\_transcription, run\_video\_description and run\_ocr all default to false, and nothing here reads their output. On-screen text is served by the dedicated onscreen-text collection instead, which is what the walkthrough describes.

Built in

Deploys ready

[face\_identity\_extractor v1](/extractors/face-identity)

Face detection, embedding and quality per lookNot deployed on Mixpeek Cloud, where face recognition is off. It runs on a dedicated or customer-hosted deployment.

Built in

Not available yet

[image\_extractor v1](/extractors/image)

Keyframe and brand-mark embeddings

Built in

Deploys ready

[scrolling\_text\_extractor v1](/extractors/scrolling-text)

Every word shown on screen, including tickers and crawls

Built in

Not available yet

age\_estimator v1

Per-face age, median across every look at the same personNot published yet, so there is nothing to install. It would read face crops, which Mixpeek Cloud does not produce while face recognition is off.

Ships with template

Not available yet

context\_scorer v1

Staged versus real violence from scene contextNot published yet, so there is nothing to install.

Ships with template

Not available yet

[Brand Logo Match](/marketplace/brand-logo-match?template=video-moderation&template_name=Video%20Moderation%20Extraction%20Foundation)

A ready-made brand-mark index if you would rather start from ours

Marketplace

brand-mark-refs, person-refs

The reference sets the matches are scored againstYours to supply and yours to own over time. A snapshot we hold decays quietly.

You supply

[group\_by stage](/retrievers/group_by)

Rolls per-face and per-frame results up to one verdict per segment

Built in

Deploys ready

Docs[Deployment](https://docs.mixpeek.com/operations/deployment)[Namespaces](https://docs.mixpeek.com/vector-store/namespaces)

Your Kubernetes

Installs into a namespace you grant. No ClusterRole, no CRDs. Uses the KubeRay operator you already run.

Your cloud account

Footage is read from your object storage in place. It does not cross the wire to us.

Mixpeek Cloud

For a proof of concept on a sample corpus before anything is deployed to you.

Permissions

Namespace-scoped. The only RBAC the chart creates is a Role for its own Redis service account.

Footprint

API, workers, vector store and Redis in the namespace; extraction runs on Ray in the same namespace.

Docs[Evaluations](https://docs.mixpeek.com/retrieval/evaluations)[Retrieval cookbook](https://docs.mixpeek.com/retrieval/cookbook)

Reference fixtures

A labelled reference set of 650 faces aged 10 to 26 (320 minors, 330 adults), plus self-labelling public clips where the subject's age is stated in the title. Adult controls in the 18 to 30 band are included so a false-positive rate can be measured, not only recall.

Category

Rule

Minors

Hard exclusion. Cutoff is configurable; default 18. Faces within 6 years of the cutoff are borderline and go to review.

Unaged faces

No usable face, under 24px, or detector confidence under 0.70. Routed to review, never passed as adult.

Violence

Contextual. staged\_score against real\_score with a margin; practice and play are retained.

Brand marks

Per mark, hard-fail or contextual. Your marks and a competitor's behave oppositely and the rule says which.

Public figures

Match against your reference set. A hit is a flag with the rights note attached, not an automatic exclusion.

Throughput

Segmenting, face and keyframe passes run in parallel per segment; on-screen text runs at roughly 2 to 5 times realtime depending on resolution and sampling rate.

Why does identity come before age?+

Because a video cuts. Box tracking followed a cut between an interviewer and a child and reported one person whose age was the median of three people. Every individual estimate was right and the identity was wrong, which is worse because it looks correct. The template groups by face across cuts first, then ages the person, and reports how many looks the estimate rests on.

What does zero missed minors cost?+

On single-frame evidence, a cutoff of 18 catches 82% of minors and sends 4.8% of adults to review. A cutoff of 22 catches 94% and sends 23%. A cutoff of 30 catches 100% and sends 94.5% of adult footage to review. The number is yours to choose, and the page shows the curve so you choose it with the price attached.

Does face size limit this?+

Less than expected. Shrinking labelled faces from 200px to 32px moved recall from 82.2% to 86.2%. Detection is the real limit: a face the detector never fires on is never aged, which is why anything undetected is routed to review rather than assumed adult.

How do I know the feedback loop is working and not just collecting?+

Because the loop ends in an evaluation, not in a collection. Annotations and interactions are turned into a held-out set and a threshold change is measured as precision and recall moving on it. Captured signals that do not move a number are not a working loop.

Can I use your reference sets instead of supplying my own?+

You can start from the marketplace Brand Logo Match dataset to see the shape of the results. For a production decision the reference set should be yours, because it decides which marks and which people count, and it is the thing that decays if nobody owns it.