---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Templates](/templates)
3.  Footage Intelligence at Archive Scale

Media

[Part of the Media & Entertainment solution →](/solutions/entertainment)v1.2 · updated 2026-09-15

# Footage Intelligence at Archive Scale

Millions of scenes you can move through instead of search. Footage, ads and editor assets land in three clean collections, and scenes are clustered one partition at a time so every run stays under the sample-size caps.

[Deploy this namespace](https://studio.mixpeek.com/manifests/apply?url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Ffootage-intelligence.namespace.yaml&manifest_url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Ffootage-intelligence.namespace.yaml&src=template-footage-intelligence&template=footage-intelligence&template_name=Footage+Intelligence+at+Archive+Scale&sync=1&utm_source=homepage&utm_medium=template_deploy&utm_campaign=mvs_onramp)[Book a workshop](/pilot?src=template-footage-intelligence)View manifest

What deploys today8 ready6 need your input

Footage Intelligence at Archive Scale

Watch the footage intelligence template

scenes in the reference corpus

1.27M

sources into clean collections

5 → 3

documents per HDBSCAN run

100k

documents per k-means run

1M

click to first answer

59.2 s

How these were measured

*   1.27M scenes in the reference corpus: The scale the partitioning recipe was written against, from the blessed clustering runbook.
*   5 → 3 sources into clean collections: Three footage sources merge into one collection; ads and editor assets keep their own.
*   100k documents per HDBSCAN run: The hard cap on the quadratic methods. The pairwise distance matrix costs sample\_size squared times 8 bytes, about 80 GB at that ceiling.
*   1M documents per k-means run: The hard cap on the linear methods. Above it, a partition is split again rather than the cap being raised.
*   59.2 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

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

Models

[Gemini 2.5 Flash](/models/gemini-2-5-flash)[Vertex AI multimodalembedding@001](/models/multimodalembedding)

Retrievers

scene-search·[feature\_search](/retrievers/feature_search)ad-search·[feature\_search](/retrievers/feature_search)logo-on-screen-monitor·[feature\_search](/retrievers/feature_search) → [llm\_filter](/retrievers/llm_filter)

Solution

[Media & Entertainment →](/solutions/entertainment)

## See it work

*   the take where the camera pushes in on the hands
    
    scene-search
    
    scene segments across an archive nobody has watched end to end
    
*   night exteriors with wet streets
    
    scene-search
    
    returns the moment, with production\_id carried through
    
*   which cut did we use this shot in
    
    ad-search
    
    the same footage matched against the delivered ads
    

### Try it on sample footage

This is a public sample library of stock clips from Pexels and NASA. Deploy the template and the same scene search runs over your own footage.

aerial view of a coastlinea dog running on a beachcrowd cheering at nightpolice car lights flashing at nightsomeone pouring coffeea goal celebrationproduct shown on a white backgrounda logo on screen

Search the sample library Search

Pick a search above, or type your own, to see matching moments from the sample library.

[Deploy starter pipeline](https://studio.mixpeek.com/manifests/apply?url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Ffootage-intelligence.namespace.yaml&manifest_url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Ffootage-intelligence.namespace.yaml&src=template-footage-intelligence&template=footage-intelligence&template_name=Footage+Intelligence+at+Archive+Scale&sync=1&utm_source=homepage&utm_medium=template_deploy&utm_campaign=mvs_onramp)Runs this search over the footage you connect.

Simulated walkthrough · illustrative frames, scripted decisions

Pause

footageadcuteditbay

![A camera operator silhouetted against a lit set](/templates/footage-intelligence/footage.webp)scenecleared

IngestStill: Pexels / Wolrider YURTSEVENframe 1 of 3

Detections on this frame

*   scene

Decision path

1.  Ingest
2.  scene
3.  route: cleared

Landed by a passthrough extractor with its source label intact.

Running tally

1

cleared

0

review

0

excluded

What a person's call does here

Labels stored with each cluster in the cluster's own collection, where a person can review and rename them. This version does not write labels back onto the scenes; the FAQ says why.

Try a search

“the take where the camera pushes in on the hands”“night exteriors with wet streets”“which cut did we use this shot in”

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

InFootageAdsEditor assetsOutClean collectionsPer-partition clustersA composite roll-upFiltered retrievers

## How it's wired

Applies 5 buckets, 4 collections and 3 retrievers today

## What it costs

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

Reset to defaults

Usage cost per month

$7,272

$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 2.5 Flash](/models/gemini-2-5-flash)Provider APIGeneration
*   [Vertex AI multimodalembedding@001](/models/multimodalembedding)Provider APIEmbedding

### Collections and their documents

raw-footagefrom bucket footage-active, by passthrough\_extractor@v1

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

source\_label

string

no

filename

string

no

production\_id

string

no

job\_id

string

no

footage-scenesfrom bucket footage-active, by multimodal\_extractor@v1

Reads video from content

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

production\_id

string

no

job\_id

string

no

source\_label

string

no

*   `mixpeek://multimodal_extractor@v1/vertex_multimodal_embedding` from [Vertex AI multimodalembedding@001](/models/multimodalembedding)

ad-creativesfrom bucket ads, by multimodal\_extractor@v1

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

ad\_id

string

yes

brand

string

yes

source\_label

string

no

*   `mixpeek://multimodal_extractor@v1/vertex_multimodal_embedding` from [Vertex AI multimodalembedding@001](/models/multimodalembedding)

editor-assetsfrom bucket editor-assets, by passthrough\_extractor@v1

Field

Type

Required

document\_id

string

set by Mixpeek

collection\_id

string

set by Mixpeek

asset\_type

string

yes

source\_label

string

no

## Retrievers

*   scene-search
    
    feature\_search over footage-scenes; input query
    
*   ad-search
    
    feature\_search over ad-creatives; input query
    
*   logo-on-screen-monitor
    
    feature\_search then llm\_filter over footage-scenes; 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 2 of 2 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

Clusters are re-cut as the corpus grows, one partition at a time.

How reviewer decisions move the thresholds

Docs[Interactions API](https://mixpeek.com/docs/retrieval/interactions)

Explicit signals

Labels stored with each cluster in the cluster's own collection, where a person can review and rename them. This version does not write labels back onto the scenes; the FAQ says why.

Implicit signals

Which clusters get opened and searched from, which is the signal for whether the grouping is useful.

Where they land

`footage-scenes`

How the loop closes

New footage joins its partition's clusters on the next run of that partition, which re-cuts them when the shape has drifted.

OverviewManifestWhat deploysComponentsDeploymentEvaluationQuestions

A corpus you navigate by structure rather than by query, with every partition clustered under the limit that makes clustering possible at all.

*   Five sources land in three clean collections, so the people building search never touch ingestion.
*   Clustering runs one partition at a time, which is what keeps a multi-million-scene corpus inside the sample-size caps.
*   A composite run groups the centroids of the partition runs you name into a layer above them, in the same collection and without disturbing what the partition runs wrote.
*   Scene search works across the whole archive the entire time, and a filter keeps it inside one partition.

For: Performance-video teams whose archive outgrew search. Once a corpus passes a million scenes, the question stops being 'find me this clip' and becomes 'show me what is in here', and a result list cannot answer that.

What goes in

Footage

Three sources: an active sync, a large static archive, and a frozen legacy load. One shared schema so the merge is homogeneous.

Ads

Approved creatives, carrying their own ad and brand identifiers.

Editor assets

Graphics, text capsules and generated assets from the edit bay.

What comes out

Clean collections

Raw footage, ads and editor assets, landed by a passthrough extractor so downstream teams build on stable inputs.

Per-partition clusters

One clustering execution per partition key, written to the cluster's own collection. Each run's cluster ids start again at cl\_0, so a cluster id identifies a group within its run rather than across the corpus.

A composite roll-up

The centroids of the partition runs you name, grouped into a layer that sits above them in the same collection.

Filtered retrievers

Scene and ad search that can be narrowed to one partition.

Docs[Manifest schema](https://mixpeek.com/docs/operations/manifests)

One file spins up the namespace. Studio draws the flow below from it, and the YAML follows. Also served at `/templates/footage-intelligence.namespace.yaml`.

\# footage-intelligence: 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: footage-intelligence
  description: "Namespace template footage-intelligence. Generated from the flow diagram on mixpeek.com/templates/footage-intelligence."
namespaces:
  - name: footage-intelligence
    description: "Everything below lives in this namespace."
    feature\_extractors:
      - name: passthrough\_extractor
        version: v1
      - name: multimodal\_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/connections) and synced into the bucket named here.
#   active-sync: s3, continuous -> bucket footage-active
#   static-archive: s3, one-time -> bucket footage-archive
#   legacy-load: s3, one-time -> bucket footage-legacy
#   ad-library: s3, continuous -> bucket ads
#   editor-output: manual, on upload -> bucket editor-assets
buckets:
  - name: footage-active
    namespace: footage-intelligence
    description: "Meant to be fed by active-sync (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
        source\_label:
          type: string
        filename:
          type: string
        production\_id:
          type: string
        job\_id:
          type: string
  - name: footage-archive
    namespace: footage-intelligence
    description: "Meant to be fed by static-archive (s3, one-time). 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
        source\_label:
          type: string
        filename:
          type: string
        production\_id:
          type: string
        job\_id:
          type: string
  - name: footage-legacy
    namespace: footage-intelligence
    description: "Meant to be fed by legacy-load (s3, one-time). 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
        source\_label:
          type: string
        filename:
          type: string
        production\_id:
          type: string
        job\_id:
          type: string
  - name: ads
    namespace: footage-intelligence
    description: "Meant to be fed by ad-library (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
        ad\_id:
          type: string
        brand:
          type: string
        source\_label:
          type: string
  - name: editor-assets
    namespace: footage-intelligence
    description: "Meant to be fed by editor-output (manual, on upload): upload files here or write them through the API. Nothing arrives until you do."
    schema:
      properties:
        content:
          type: video
        asset\_type:
          type: string
        source\_label:
          type: string
collections:
  - name: raw-footage
    namespace: footage-intelligence
    description: "passthrough\_extractor@v1 over bucket footage-active (the manifest wires one source bucket; footage-archive, footage-legacy are added after apply)."
    source:
      type: bucket
      bucket: footage-active
    feature\_extractor:
      name: passthrough\_extractor
      version: v1
      field\_passthrough:
        - source\_path: source\_label
        - source\_path: filename
        - source\_path: production\_id
        - source\_path: job\_id
    enabled: true
  - name: footage-scenes
    namespace: footage-intelligence
    description: "multimodal\_extractor@v1 over bucket footage-active (the manifest wires one source bucket; footage-archive, footage-legacy are added after apply). Feeds logo-on-screen-monitor, logo-on-screen, scene-search, scene-themes."
    source:
      type: bucket
      bucket: footage-active
    feature\_extractor:
      name: multimodal\_extractor
      version: v1
      input\_mappings:
        video: content
      field\_passthrough:
        - source\_path: production\_id
        - source\_path: job\_id
        - source\_path: source\_label
    alert\_applications:
      - alert: logo-on-screen
        input\_mappings:
          - input\_key: query
            source: {source\_type: constant, value: "a brand logo on screen"}
          - input\_key: document\_id
            source: {source\_type: document\_field, path: \_internal.document\_id}
    enabled: true
  - name: ad-creatives
    namespace: footage-intelligence
    description: "multimodal\_extractor@v1 over bucket ads. Feeds ad-search."
    source:
      type: bucket
      bucket: ads
    feature\_extractor:
      name: multimodal\_extractor
      version: v1
      field\_passthrough:
        - source\_path: ad\_id
          required: true
        - source\_path: brand
          required: true
        - source\_path: source\_label
    enabled: true
  - name: editor-assets
    namespace: footage-intelligence
    description: "passthrough\_extractor@v1 over bucket editor-assets."
    source:
      type: bucket
      bucket: editor-assets
    feature\_extractor:
      name: passthrough\_extractor
      version: v1
      field\_passthrough:
        - source\_path: asset\_type
          required: true
        - source\_path: source\_label
    enabled: true
retrievers:
  - name: scene-search
    namespace: footage-intelligence
    description: "Searches footage-scenes across 1 feature index."
    collections:
      - footage-scenes
    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@v1/vertex\_multimodal\_embedding"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 50
          fusion: rrf
          final\_top\_k: 50
    tags:
      - template:footage-intelligence
  - name: ad-search
    namespace: footage-intelligence
    description: "Searches ad-creatives across 1 feature index."
    collections:
      - ad-creatives
    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@v1/vertex\_multimodal\_embedding"
              query:
                input\_mode: text
                value: "{{INPUT.query}}"
              top\_k: 50
          fusion: rrf
          final\_top\_k: 50
    tags:
      - template:footage-intelligence
  - name: logo-on-screen-monitor
    namespace: footage-intelligence
    description: "The alert's check: does the scene just written show a brand logo on screen. The search is scoped to that one scene, and an llm\_filter watches it and keeps it only when a logo is visible. Materialises into logo-on-screen."
    collections:
      - footage-scenes
    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@v1/vertex\_multimodal\_embedding"
              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 footage scene only if it shows {{INPUT.query}}: a company logo or brand name mark clearly visible in the frame. Discard it otherwise."
          include\_media: true
    tags:
      - template:footage-intelligence
# Composite cluster run(s) are not emitted below, because the manifest schema cannot express them:
#   cross-partition-themes: rolls up the centroids of scene-themes
# The manifest cluster spec requires source\_collections to have at least one
# item, and a composite run has no source COLLECTION: it reads the centroids of prior
# EXECUTIONS. Naming it here fails validation for the entire manifest. Run it once the
# partitioned runs have completed: POST /v1/clusters/{id}/execute on the partitioned cluster
# with mode composite and source\_execution\_ids naming at least two of those runs.
clusters:
  - name: scene-themes
    namespace: footage-intelligence
    description: "Groups footage-scenes by embedding similarity, one run per production\_id."
    source\_collections:
      - footage-scenes
    cluster\_type: vector
    # Partitioned on production\_id: execute once per value, passing
    #   filters: {AND: \[{field: production\_id, operator: eq, value: <one production\_id>}\]}
    # with each execution. The manifest cannot hold that value.
    # kmeans needs at least 24 documents in a production\_id, since it has to
    # put each one in a group. Raise or lower n\_clusters to the number of groups you
    # want to browse per production\_id.
    vector\_config:
      feature\_uris:
        - mixpeek://multimodal\_extractor@v1/vertex\_multimodal\_embedding
      clustering\_method: kmeans
      algorithm\_params:
        n\_clusters: 24
    llm\_labeling:
      enabled: true
      provider: google
      model\_name: gemini-2.5-flash
alerts:
  - name: logo-on-screen
    namespace: footage-intelligence
    description: "Emails the org notifications address (Settings -> Notifications; unset means opted out) when a newly indexed footage scene shows a brand logo on screen."
    source: retriever
    retriever: logo-on-screen-monitor
    trigger\_on: results
    notification\_config:
      channels:
        - channel\_type: email
      include\_matches: true
      include\_scores: true
    enabled: false

# Plan 11.14: two public-domain films from the starter sample set, ingested by
# one bounded batch after apply, and the use case they must satisfy.
seed:
  - bucket: footage-active
    max\_objects: 2
    objects:
      - blobs: {content: samples/starter/videos/norelco-speed.mp4}
      - blobs: {content: samples/starter/videos/mexican-hat-dance.mp4}
acceptance:
  max\_cost\_usd: 0.5
  steps:
    - name: footage-listed
      kind: documents
      collection: raw-footage
      expect: {min\_documents: 2}
    - name: footage-scenes-indexed
      kind: documents
      collection: footage-scenes
      expect: {min\_documents: 2}
    - name: scene-search-answers
      kind: query
      retriever: scene-search
      inputs: {query: people dancing}
      expect: {min\_results: 1}

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

raw-footageCollectionDeploys ready

footage-scenesCollectionDeploys ready

ad-creativesCollectionDeploys ready

editor-assetsCollectionDeploys ready

scene-searchRetrieverDeploys ready

ad-searchRetrieverDeploys ready

scene-themesClusterDeploys ready

logo-on-screen-monitorRetrieverDeploys ready

active-syncData sourceNeeds your input

static-archiveData sourceNeeds your input

legacy-loadData sourceNeeds your input

ad-libraryData sourceNeeds your input

editor-outputData sourceNeeds your input

cross-partition-themesClusterNeeds your input

What each part needs

raw-footage

Deploys and processes documents as they arrive.

footage-scenes

Deploys and processes documents as they arrive.

ad-creatives

Deploys and processes documents as they arrive.

editor-assets

Deploys and processes documents as they arrive.

scene-search

Deploys and answers queries once its collections hold documents.

ad-search

Deploys and answers queries once its collections hold documents.

scene-themes

Deploys. Run it once per production\_id by passing that filter each time you execute it; the manifest cannot hold the value.

logo-on-screen-monitor

Deploys and answers queries once its collections hold documents.

active-sync

Connect this s3 source in Studio and sync it into its bucket. The manifest creates the bucket and leaves the connection to you.

static-archive

Connect this s3 source in Studio and sync it into its bucket. The manifest creates the bucket and leaves the connection to you.

legacy-load

Connect this s3 source in Studio and sync it into its bucket. The manifest creates the bucket and leaves the connection to you.

ad-library

Connect this s3 source in Studio and sync it into its bucket. The manifest creates the bucket and leaves the connection to you.

editor-output

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

cross-partition-themes

The manifest cannot describe a cluster of clusters. Once the partitioned runs have completed, run it with POST /v1/clusters/{id}/execute in composite mode, naming at least two of those runs in source\_execution\_ids.

Docs[Extractors](https://mixpeek.com/docs/processing/feature-extractors)[Clusters](https://mixpeek.com/docs/enrichment/clusters)

Component

Role

Source

Today

[passthrough\_extractor v1](https://mixpeek.com/docs/processing/feature-extractors)

Lands objects in a clean collection with their identifiers intact, so downstream teams build on stable inputs.

Built in

Deploys ready

[multimodal\_extractor v1](https://mixpeek.com/docs/processing/extractors/multimodal)

Embeds scenes and creatives so they can be searched and clustered by meaning.

Built in

Deploys ready

[Partitioned clustering](https://mixpeek.com/docs/enrichment/clusters)

One execution per partition key, with the algorithm chosen against the sample-size caps.

Built in

[Composite clustering](https://mixpeek.com/docs/enrichment/clusters)

Clusters the centroids of prior executions, read from each execution's run record.

Built in

Your footage

Three sources with one shared schema. The template creates the buckets; you supply the objects.

You supply

Docs[Customer-hosted overview](https://mixpeek.com/docs/customer-hosted/overview)

Mixpeek cloud

The managed path. Nothing to run.

Customer-hosted

For archives that cannot leave your account. The footage stays in your object storage either way.

Permissions

Read on the source buckets. The template creates buckets, collections, retrievers and clusters inside one namespace and touches nothing outside it.

Footprint

Storage is dominated by the footage you already hold. The clustering cost scales with the partition, not the corpus, which is the point of partitioning.

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

Reference fixtures

A partition small enough to cluster in one run, so a change in grouping is visible without waiting on the full corpus.

Category

Rule

Partition size

Every partition stays under the cap for its algorithm: 100,000 for HDBSCAN, 1,000,000 for k-means. Over that, split the partition rather than raising the cap.

Composite inputs

A composite run names only executions that completed with centroids. One missing execution makes the roll-up a different shape without failing.

Run completion

Every partition run completes with more than zero clusters. kmeans needs at least n\_clusters documents in the partition, and it groups whatever it is given, so a partition that is too small fails rather than returning nothing. Density methods behave the other way: a test production of 68 scenes at HDBSCAN min\_cluster\_size 50 completed with every scene classified as noise.

Counting

Read the cluster documents themselves rather than the output collection's document\_count, which trails one run behind on this path: 43 listed and 43 counted after the first run, 76 listed and 43 counted after the second.

Throughput

Clustering is a batch job per partition rather than a per-query cost, so search latency is unaffected by corpus size.

Why partition at all, instead of clustering everything at once?+

Because the methods have hard ceilings and they exist for memory reasons. HDBSCAN and the other quadratic methods cap at 100,000 documents, since the pairwise distance matrix costs sample\_size squared times 8 bytes, about 80 GB at that ceiling. K-means caps at a million. A multi-million-scene corpus is clustered one partition at a time or not at all.

What does a composite run actually do?+

It clusters the centroids of the partition runs you name, which it reads from each run's record, and writes its groups into the same collection alongside them. Measured on prod: two partition runs left 76 documents, 8 of them centroids, and the composite over both took it to 88 with 12 centroids. Name only runs that completed with clusters, since a run that found none has no centroids to contribute.

How does an agent use this?+

Through the same retrievers a person uses. scene-search finds moments across the archive and takes a production\_id filter to stay inside one partition, and each cluster run's results can be read back through the clusters API.

Do I have to re-cluster to add new footage?+

Yes, in this version. New scenes are searchable as soon as they are extracted, and they join a partition's clusters the next time that partition runs. Run it again when enough new footage has landed to change the grouping, which is a judgement rather than a schedule.

Why doesn't this template write cluster labels back onto the scenes?+

A cluster that enriches its source collection currently fails its first run on a collection that already holds documents, because a safety check reads the existing scene count as evidence of an earlier clustering run. Until that is fixed, scene-themes writes its clusters and labels to a collection of its own, and the scenes keep their production\_id, job\_id and search fields unchanged.

Can I filter search results by a cluster id?+

Within one run, yes. Cluster ids start again at cl\_0 for every execution, so after two partition runs the same four ids hold documents from both productions. Filter on production\_id to stay inside a partition, and treat a cluster id as a handle on a group within its run rather than a stable label across the corpus.

What is the partition key here?+

The template uses production\_id because it is a natural grouping in the reference pipeline. The right key is whatever splits your corpus into pieces that fit under the cap and mean something to the people reading the clusters. Check the field is indexed on your documents before relying on it; a filter path that matches nothing returns an empty result rather than an error.