---
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.  [Code examples](/recipes)
3.  Searchable Video Library

Back to code examples

# Searchable Video Library

Turn an unstructured video archive into a fully searchable library. Each video is decomposed into scenes with transcriptions, visual embeddings, and metadata. Users search by natural language and jump directly to the relevant moment in any video.

video

text

audio

Multi-Tier

[Run in Builder](/build?recipe=searchable-video-library)

Python

cURL

from mixpeek import Mixpeek

client \= Mixpeek(api\_key\="YOUR\_API\_KEY", namespace\="video-library")

\# 1. A bucket for the archive, and a collection that splits each video into scenes with transcripts and embeddings

bucket \= client.buckets.create(

    bucket\_name\="video-archive",

    bucket\_schema\={

        "properties": {

            "video": {

                "type": "video",

            },

        },

    },

)

collection \= client.collections.create(

    collection\_name\="video\_library",

    source\={"type": "bucket", "bucket\_ids": \[bucket\["bucket\_id"\]\]},

    feature\_extractor\={

        "feature\_extractor\_name": "multimodal\_extractor",

        "version": "v1",

        "parameters": {

            "split\_method": "scene",

            "run\_transcription": True,

            "run\_transcription\_embedding": True,

        },

    },

)

\# 2. Upload and process

client.buckets.upload(

    bucket\["bucket\_id"\],

    blobs\=\[{"property": "video", "type": "video", "data": "s3://your-bucket/video-archive/all-hands-2026-06.mp4"}\],

)

client.collections.trigger(collection\["collection\_id"\])

\# 3. Visual and transcript search fused with RRF, then a rerank against each scene transcript

retriever \= client.retrievers.create(

    retriever\_name\="video-library-search",

    collection\_identifiers\=\["video\_library"\],

    input\_schema\={

        "query": {

            "type": "text",

            "required": True,

        },

    },

    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,

                    },

                    {

                        "feature\_uri": "mixpeek://multimodal\_extractor@v1/multilingual\_e5\_large\_instruct\_v1",

                        "query": {

                            "input\_mode": "text",

                            "value": "{{INPUT.query}}",

                        },

                        "top\_k": 50,

                    },

                \],

                "fusion": "rrf",

                "final\_top\_k": 50,

            },

        },

        {

            "stage\_name": "rerank",

            "stage\_id": "rerank",

            "parameters": {

                "inference\_name": "BAAI\_\_bge\_reranker\_v2\_m3",

                "query": "{{INPUT.query}}",

                "document\_field": "transcription",

                "top\_k": 10,

            },

        },

    \],

)

\# 4. Search

results \= client.retrievers.execute(

    retriever\["retriever\_id"\],

    inputs\={

    "query": "product roadmap presentation Q3 goals",

},

)

for doc in results\["documents"\]:

    print(doc\["source\_object\_id"\], doc\["start\_time"\], doc\["end\_time"\], doc\["score"\])

### Feature Extractors

Multimodal Extractor

Unified embeddings for video, audio, image, and text: scene/silence chunking, Whisper transcription, thumbnails, and Gemini vision.

### Retriever Stages

feature search

Search and filter documents by vector similarity using feature embeddings

filter

rerank

Rerank documents using cross-encoder models for accurate relevance

sort

## Frequently asked questions

### How many videos can the library handle?

Mixpeek scales to hundreds of thousands of videos. Each video produces multiple scene-level documents, all indexed for sub-second search latency.

### Can users search by both visual content and spoken words?

Yes. The pipeline indexes both visual scene embeddings and transcribed audio text, so searches match against what is shown and what is said.

### How precise are the timestamp results?

Results are aligned to scene boundaries detected by shot detection, typically accurate to within 1-2 seconds. Transcript segments provide word-level timestamps.

## Related code examples and resources

Pages on the same stages, extractors and patterns.

[

Extractor

### Multimodal Extractor

Unified embeddings for video, audio, image, and text: scene/silence chunking, Whisper transcription, thumbnails, and Gemini vision.

Learn more





](/extractors/multimodal)[

Recipe

### Video Transcription & Indexing Pipeline

Automatically transcribe video content with speaker identification, timestamps, and full-text indexing for downstream search and analytics.

Learn more





](/recipes/video-transcription-pipeline)[

Recipe

### Video Content Analytics Pipeline

Analyze video content at scale to extract insights: scene composition, speaker time, topic distribution, and sentiment across your video library.

Learn more





](/recipes/video-analytics-pipeline)[

Recipe

### Video RAG Pipeline

Retrieval-augmented generation specifically designed for video content. Decomposes videos into scenes and transcripts, retrieves relevant segments for a given question, and passes them as context to an LLM with precise timestamp citations.

Learn more





](/recipes/video-rag-pipeline)[

Recipe

### Video Scene Search

Find specific scenes within videos using natural language descriptions. The pipeline detects scene boundaries, generates embeddings for each scene, and enables precise timestamp-level search across an entire video library. Query for visual content, actions, or spoken dialogue.

Learn more





](/recipes/video-scene-search)[

Recipe

### Semantic Multimodal Search

Unified semantic search across all content types. Query by natural language and retrieve relevant video clips, images, audio segments, and documents based on meaning-not keywords or manual tags.

Learn more





](/recipes/semantic-multimodal-search)