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

# Group millions of video scenes by theme

> Sort a video archive of millions of scenes into themes you can browse, so you can see what is in it without knowing what to search for.

![Group millions of video scenes by theme](https://mixpeek.com/templates/footage-intelligence/adcut.webp)

Sort a video archive of millions of scenes into themes you can browse, so you can see what is in it without knowing what to search for.

> [card] [Deploy in Studio](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=Group+millions+of+video+scenes+by+theme\&sync=1\&utm_source=docs\&utm_medium=template_deploy\&utm_campaign=mvs_onramp)
>
> Creates every resource below in your organization, with sample data.

> [card] [Download the manifest](https://mixpeek.com/templates/footage-intelligence.namespace.yaml)
>
> `footage-intelligence.namespace.yaml`, the file Studio and the API apply.

> [card] [Template page](https://mixpeek.com/templates/footage-intelligence)
>
> The demo and the use case on mixpeek.com.

## At a glance

| | |
| - | - |
| **Creates** | 1 namespace, 5 buckets, 4 collections, 3 retrievers, 1 cluster, 1 alert |
| **Extractors** | [`passthrough_extractor`](https://docs.mixpeek.com/docs/extract/extractors#passthrough) v1, [`multimodal_extractor`](https://docs.mixpeek.com/docs/extract/extractors#multimodal) v1 |
| **Models** | [Gemini 2.5 Flash](https://mixpeek.com/models/gemini-2-5-flash), [Vertex AI multimodalembedding@001](https://mixpeek.com/models/multimodalembedding) |
| **Daily spend budget** | 1 USD, set on the namespace. Queries are not capped. |
| **Sample data** | 2 objects, uploaded to `footage-active` when you apply |
| **Version** | 1.2, updated 2026-09-15 |

## How the pieces connect

Buckets hold what you upload, collections turn it into searchable documents, and retrievers answer queries over the collections.

```mermaid theme={null}
flowchart LR
  b0[("footage-active")]
  b1[("footage-archive")]
  b2[("footage-legacy")]
  b3[("ads")]
  b4[("editor-assets")]
  c5["raw-footage<br/>passthrough_extractor v1"]
  c6["footage-scenes<br/>multimodal_extractor v1"]
  c7["ad-creatives<br/>multimodal_extractor v1"]
  c8["editor-assets<br/>passthrough_extractor v1"]
  r9{{"scene-search"}}
  r10{{"ad-search"}}
  r11{{"logo-on-screen-monitor"}}
  b0 --> c5
  b0 --> c6
  b3 --> c7
  b4 --> c8
  c6 --> r9
  c7 --> r10
  c6 --> r11
```

## Deploy it

> [tab] API
>
> **1. Get the manifest**
>
> ```bash theme={null}
> curl -sO https://mixpeek.com/templates/footage-intelligence.namespace.yaml
> ```
>
> **2. Validate it**
>
> Validate runs every check apply runs and creates nothing. Fix each entry in `errors`, then run it again.
>
> ```bash theme={null}
> curl -X POST https://api.mixpeek.com/v1/manifest/validate \
>   -H "Authorization: Bearer $MIXPEEK_API_KEY" \
>   -F "manifest_file=@footage-intelligence.namespace.yaml"
> ```
>
> **3. Apply it**
>
> Apply creates every resource in one call. `wait_for_seed=true` also waits until the sample objects are processed, so the first query below has documents to return.
>
> ```bash theme={null}
> curl -X POST "https://api.mixpeek.com/v1/manifest/apply?wait_for_seed=true" \
>   -H "Authorization: Bearer $MIXPEEK_API_KEY" \
>   -F "manifest_file=@footage-intelligence.namespace.yaml"
> ```
>
> The response lists each resource with its outcome in `resources`. Apply refuses a resource that already exists and rolls the whole apply back, so to apply the file again over this namespace add `?mode=create_missing`, which creates only what is missing.

> [tab] Studio
>
> Open [Deploy in Studio](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=Group+millions+of+video+scenes+by+theme\&sync=1\&utm_source=docs\&utm_medium=template_deploy\&utm_campaign=mvs_onramp), sign in, choose where to deploy, and select **Apply to my workspace**. Studio shows each resource as it is created.

## Run the first query

Look up the namespace id by name, then run `scene-search`. Check `status` and `warnings` along with `documents`: a run that times out still answers 200, with `status` `degraded`.

```bash cURL theme={null}
NAMESPACE_ID=$(curl -s https://api.mixpeek.com/v1/namespaces/footage-intelligence \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" | jq -r .namespace_id)

curl -X POST https://api.mixpeek.com/v1/retrievers/scene-search/execute \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" \
  -H "X-Namespace: $NAMESPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"query": "the take where the camera pushes in on the hands"}}' \
  | jq '{status, warnings, documents: [.documents[] | {document_id, score}]}'
```

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

AUTH = {"Authorization": f"Bearer {os.environ['MIXPEEK_API_KEY']}"}
ns = requests.get("https://api.mixpeek.com/v1/namespaces/footage-intelligence", headers=AUTH).json()

run = requests.post(
    "https://api.mixpeek.com/v1/retrievers/scene-search/execute",
    headers={**AUTH, "X-Namespace": ns["namespace_id"]},
    json={"inputs": {"query": "the take where the camera pushes in on the hands"}},
).json()

print(run["status"], run["warnings"])  # "completed" on a clean run
for doc in run["documents"]:
    print(doc["document_id"], doc["score"])
```

```javascript JavaScript theme={null}
const auth = { Authorization: `Bearer ${process.env.MIXPEEK_API_KEY}` };
const ns = await fetch("https://api.mixpeek.com/v1/namespaces/footage-intelligence", { headers: auth }).then((r) => r.json());

const run = await fetch("https://api.mixpeek.com/v1/retrievers/scene-search/execute", {
  method: "POST",
  headers: { ...auth, "X-Namespace": ns.namespace_id, "Content-Type": "application/json" },
  body: JSON.stringify({"inputs": {"query": "the take where the camera pushes in on the hands"}}),
}).then((r) => r.json());

console.log(run.status, run.warnings); // "completed" on a clean run
for (const doc of run.documents) console.log(doc.document_id, doc.score);
```

## Add your own data

Each object you add to a bucket is processed by every collection that reads it. This adds one object to `footage-active`. `NAMESPACE_ID` is the id from the namespace lookup above.

```bash cURL theme={null}
curl -X POST "https://api.mixpeek.com/v1/buckets/footage-active/objects?auto_process=true" \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" \
  -H "X-Namespace: $NAMESPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{"source_label": "example", "filename": "example", "production_id": "example", "job_id": "example", "blobs": [{"property": "content", "type": "video", "data": "https://example.com/clip.mp4"}]}'
```

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

HEADERS = {"Authorization": f"Bearer {os.environ['MIXPEEK_API_KEY']}", "X-Namespace": os.environ["NAMESPACE_ID"]}

obj = requests.post(
    "https://api.mixpeek.com/v1/buckets/footage-active/objects",
    params={"auto_process": "true"},
    headers=HEADERS,
    json={
        "source_label": "example",
        "filename": "example",
        "production_id": "example",
        "job_id": "example",
        "blobs": [
            {
                "property": "content",
                "type": "video",
                "data": "https://example.com/clip.mp4"
            }
        ]
    },
).json()
print(obj["object_id"], obj["status"])  # PENDING until processing finishes
```

```javascript JavaScript theme={null}
const headers = {
  Authorization: `Bearer ${process.env.MIXPEEK_API_KEY}`,
  "X-Namespace": process.env.NAMESPACE_ID,
  "Content-Type": "application/json",
};

const obj = await fetch("https://api.mixpeek.com/v1/buckets/footage-active/objects?auto_process=true", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "source_label": "example",
    "filename": "example",
    "production_id": "example",
    "job_id": "example",
    "blobs": [
      {
        "property": "content",
        "type": "video",
        "data": "https://example.com/clip.mp4"
      }
    ]
  }),
}).then((r) => r.json());
console.log(obj.object_id, obj.status); // PENDING until processing finishes
```

The object is `PENDING` until processing finishes, then `COMPLETED` or `FAILED`. [Buckets and objects](https://docs.mixpeek.com/docs/ingest/buckets.md) covers object states, retries and duplicates.

## Retrievers

### `scene-search`

Searches footage-scenes across 1 feature index.

**Stages:** [`feature_search`](https://docs.mixpeek.com/docs/retrieve/stages#feature-search)

**Searches:** `footage-scenes`

| Input | Type | Required | Description |
| - | - | - | - |
| `query` | text | yes | What to look for; searched across every index below |

### `ad-search`

Searches ad-creatives across 1 feature index.

**Stages:** [`feature_search`](https://docs.mixpeek.com/docs/retrieve/stages#feature-search)

**Searches:** `ad-creatives`

| Input | Type | Required | Description |
| - | - | - | - |
| `query` | text | yes | What to look for; searched across every index below |

### `logo-on-screen-monitor`

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.

**Stages:** [`feature_search`](https://docs.mixpeek.com/docs/retrieve/stages#feature-search) → [`llm_filter`](https://docs.mixpeek.com/docs/retrieve/stages#llm-filter)

**Searches:** `footage-scenes`

| Input | Type | Required | Description |
| - | - | - | - |
| `query` | text | yes | What to look for; searched across every index below |
| `document_id` | text | yes | The written document this run is scoped to, supplied by the alert attachment |

## Collections

Each collection runs one extractor over a bucket, or over another collection's documents.

> [accordion] raw-footage
>
> passthrough\_extractor\@v1 over bucket footage-active (the manifest wires one source bucket; footage-archive, footage-legacy are added after apply).
>
> **Reads** bucket `footage-active` with [`passthrough_extractor`](https://docs.mixpeek.com/docs/extract/extractors#passthrough) v1.
>
> **Copied onto each document:** `source_label`, `filename`, `production_id`, `job_id`
>
> | Document field | Type |
> | - | - |
> | `source_label` | string |
> | `filename` | string |
> | `production_id` | string |
> | `job_id` | string |
> | `content_url` | string |
> | `content_type` | string |
> | `size_bytes` | integer |
> | `metadata` | object |

> [accordion] footage-scenes
>
> 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.
>
> **Reads** bucket `footage-active` with [`multimodal_extractor`](https://docs.mixpeek.com/docs/extract/extractors#multimodal) v1.
>
> **Inputs:** `video` ← `content`
>
> **Copied onto each document:** `production_id`, `job_id`, `source_label`
>
> | Document field | Type |
> | - | - |
> | `production_id` | string |
> | `job_id` | string |
> | `source_label` | string |
> | `start_time` | number |
> | `end_time` | number |
> | `start_frame` | integer |
> | `end_frame` | integer |
> | `fps` | number |
> | `source_fps` | number |
> | `analysis_fps` | number |
> | `width` | integer |
> | `height` | integer |
> | `aspect_ratio` | number |
> | `duration` | number |
> | `transcription` | string |
> | `description` | string |
> | `ocr_text` | string |
> | `json_output` | object |
> | `thumbnail_url` | string |
> | `source_video_url` | string |
> | `video_segment_url` | string |
> | `multimodal_extractor_v1_multimodal_embedding` | array\<number> |
> | `multimodal_extractor_v1_transcription_embedding` | array\<number> |
> | `internal_metadata` | object |

> [accordion] ad-creatives
>
> multimodal\_extractor\@v1 over bucket ads. Feeds ad-search.
>
> **Reads** bucket `ads` with [`multimodal_extractor`](https://docs.mixpeek.com/docs/extract/extractors#multimodal) v1.
>
> **Copied onto each document:** `ad_id`, `brand`, `source_label`
>
> | Document field | Type |
> | - | - |
> | `ad_id` | string |
> | `brand` | string |
> | `source_label` | string |
> | `start_time` | number |
> | `end_time` | number |
> | `start_frame` | integer |
> | `end_frame` | integer |
> | `fps` | number |
> | `source_fps` | number |
> | `analysis_fps` | number |
> | `width` | integer |
> | `height` | integer |
> | `aspect_ratio` | number |
> | `duration` | number |
> | `transcription` | string |
> | `description` | string |
> | `ocr_text` | string |
> | `json_output` | object |
> | `thumbnail_url` | string |
> | `source_video_url` | string |
> | `video_segment_url` | string |
> | `multimodal_extractor_v1_multimodal_embedding` | array\<number> |
> | `multimodal_extractor_v1_transcription_embedding` | array\<number> |
> | `internal_metadata` | object |

> [accordion] editor-assets
>
> passthrough\_extractor\@v1 over bucket editor-assets.
>
> **Reads** bucket `editor-assets` with [`passthrough_extractor`](https://docs.mixpeek.com/docs/extract/extractors#passthrough) v1.
>
> **Copied onto each document:** `asset_type`, `source_label`
>
> | Document field | Type |
> | - | - |
> | `asset_type` | string |
> | `source_label` | string |
> | `content_url` | string |
> | `content_type` | string |
> | `size_bytes` | integer |
> | `metadata` | object |

## Also created

**[Clusters](https://docs.mixpeek.com/docs/enrich/clusters.md)**

* `scene-themes`: Groups footage-scenes by embedding similarity, one run per production\_id.

**[Alerts](https://docs.mixpeek.com/docs/enrich/alerts-and-triggers.md)**

* `logo-on-screen`: Emails the org notifications address (Settings -> Notifications; unset means opted out) when a newly indexed footage scene shows a brand logo on screen.

> [accordion] Cost estimate at list price
>
> At 10,000 items a month (2 minutes or 10 pages each) and 100,000 queries, this template costs about **7,272.40 USD a month** (727.22 USD per 1,000 items). The namespace's daily spend budget pauses new batches before you pass it.
>
> | Part | USD a month |
> | - | - |
> | Processing | 7,272.00 |
> | Storage | 0.20 |
> | Queries | 0.20 |
> | Processing in `raw-footage` | 900.00 |
> | Processing in `footage-scenes` | 6,372.00 |

## The manifest

Every resource above comes from this file. Change it and apply it again with `?mode=upsert` to update what exists. [Manifests](https://docs.mixpeek.com/docs/manage/manifests.md) documents each field.

```yaml footage-intelligence.namespace.yaml expandable theme={null}
# 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}
```

## Hand it to an agent

Paste this prompt into Claude Code, Cursor or another coding agent. To give the agent this whole page instead, use **Copy page** in the menu at the top of the page, or point it at the page's Markdown at `https://mixpeek.com/docs/templates/footage-intelligence.md`.

```text Prompt theme={null}
Set up the Mixpeek "Group millions of video scenes by theme" template in my organization. My API key is in MIXPEEK_API_KEY.
1. Download https://mixpeek.com/templates/footage-intelligence.namespace.yaml to footage-intelligence.namespace.yaml.
2. POST it to https://api.mixpeek.com/v1/manifest/validate as the multipart field manifest_file, with the header Authorization: Bearer $MIXPEEK_API_KEY. Fix every entry in errors and validate again.
3. POST the same file to https://api.mixpeek.com/v1/manifest/apply?wait_for_seed=true. Every entry in resources should be created.
4. GET https://api.mixpeek.com/v1/namespaces/footage-intelligence and keep namespace_id. Send it as the X-Namespace header on every call below.
5. POST {"inputs": {"query": "the take where the camera pushes in on the hands"}} to https://api.mixpeek.com/v1/retrievers/scene-search/execute. Read documents, check that status is completed, and print warnings.
Reference for this template: https://mixpeek.com/docs/templates/footage-intelligence.md
```


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