---
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"
---

![](/catalog-art/code-examples-header.webp)

1.  [](/)
2.  [Catalog](/catalog)
3.  [Code examples](/recipes)

# Code examples

Working code that pairs extractors with retrievers for common jobs. To deploy a whole use case in one step, start from a template.

For agents`Each code example pairs an extractor with a retriever. Create them with create_collection and create_retriever on the Mixpeek MCP server (https://mcp.mixpeek.com/mcp), then query with execute_retriever. Every MCP tool needs an API key; an agent can get one with POST https://api.mixpeek.com/v1/signup/agent.`Copy

Search code examples...⌘K

[Browse templates](/templates) [API reference](/docs/api-reference)

All code examplesFind Similar ContentEnhanced SearchBuild Training DataConnect Across MediaConcept CoverageQuality Control & OutliersContent ComplianceDiscover Content ThemesMonitor Content Drift

## Filters

Reset

ML pattern

*   Find Similar Content9
*   Quality Control & Outliers2
*   Discover Content Themes1
*   Build Training Data6
*   Connect Across Media3
*   Monitor Content Drift1
*   Show all 9

Modality

*   Video32
*   Image39
*   Audio16
*   Text41

Complexity

Filters

50 code examples

Sort:FeaturedName

*   ### [Feature Extraction](/recipes/feature-extraction)
    
    Turn raw media into structured intelligence
    
    Enhanced Search
    
    Multi-tier feature extraction that decomposes content into searchable components: embeddings, transcripts, detected objects, OCR text, scene boundaries, and more. The foundation for all downstream retrieval and analysis.
    
    Modalities Video, Image, Audio, TextComplexity Multi tierView recipe
    
*   ### [Semantic Multimodal Search](/recipes/semantic-multimodal-search)
    
    Find anything across video, image, audio, and documents
    
    Find Similar Content
    
    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.
    
    Modalities Video, Image, Audio, TextComplexity Multi tierView recipe
    
*   ### [Hierarchical Classification](/recipes/hierarchical-classification)
    
    Auto-label content into structured taxonomies
    
    Concept Coverage
    
    Assign content to multi-level category hierarchies using embedding-based classification. Define your taxonomy once, then classify new content automatically with confidence scores.
    
    Modalities Video, Image, TextComplexity Multi tierView recipe
    
*   ### [Multimodal RAG](/recipes/multimodal-rag)
    
    LLMs that cite real clips, frames, and documents
    
    Connect Across Media
    
    Retrieval-augmented generation across video, images, and text. Retrieve relevant multimodal context, then pass to your LLM with citations back to source timestamps and frames.
    
    Modalities Video, Image, Text, AudioComplexity Multi stageView recipe
    
*   ### [Clustering & Theme Discovery](/recipes/clustering-theme-discovery)
    
    Reveal structure you didn't know existed
    
    Discover Content Themes
    
    Unsupervised clustering that groups content into semantic themes using HDBSCAN. Surfaces hidden patterns, content variants, and outliers without requiring predefined labels.
    
    Modalities Video, Image, Text, AudioComplexity Multi stageView recipe
    
*   ### [Semantic Join](/recipes/semantic-join)
    
    Link extracted content to business context
    
    Connect Across Media
    
    Bridge extracted content features with business reference data. Join video clips to product catalogs, detected faces to employee directories, or documents to compliance frameworks-all via embedding similarity.
    
    Modalities Video, Image, Text, AudioComplexity Multi stageView recipe
    
*   ### [Anomaly Detection](/recipes/anomaly-detection)
    
    Spot unusual content automatically
    
    Quality Control & Outliers
    
    Identify outliers and anomalous content using embedding distance from cluster centroids. Flag quality issues, novel content, or items that don't match expected patterns.
    
    Modalities Video, Image, Audio, TextComplexity Multi stageView recipe
    
*   ### [Dataset Versioning](/recipes/dataset-versioning)
    
    Rebuild any dataset state deterministically
    
    Build Training Data
    
    Treat versioned object storage as your dataset's source of truth. Capture complete snapshots-raw assets, embeddings, and cluster assignments-for deterministic reconstruction at any point in time.
    
    Modalities Video, Image, Audio, TextComplexity Production gradeView recipe
    
*   ### [Semantic Drift Detection](/recipes/semantic-drift)
    
    Track how your data changes over time
    
    Monitor Content Drift
    
    Monitor distribution shifts between baseline and current data using cluster comparison. Detect when new content diverges from training data or when content mix changes unexpectedly.
    
    Modalities Video, Image, TextComplexity Production gradeView recipe
    
*   ### [Sports Highlights Pipeline](/recipes/sports-highlights)
    
    Auto-detect and assemble highlight moments from sports footage
    
    Quality Control & Outliers
    
    Automatically identify highlight-worthy moments in sports broadcasts using multimodal analysis, visual action detection, audio spike recognition (crowd noise, commentator excitement), and on-screen graphic parsing. Returns timestamped event manifests ready for clip assembly.
    
    Modalities Video, Audio, TextComplexity Production gradeView recipe
    
*   ### [BYO Embeddings Vector Search](/recipes/mvs-byo-embeddings-search)
    
    Bring your own embeddings and search in 60 seconds
    
    Find Similar Content
    
    Bring pre-computed embeddings from any provider (OpenAI, Cohere, Together, etc.) and upsert them directly into MVS for instant vector search. No feature extractors, no pipelines -- just embeddings in, results out.
    
    Modalities Text, ImageComplexity Single tierView recipe
    
*   ### [Dense Search Over Your Own Embeddings, and What Hybrid Needs](/recipes/mvs-hybrid-bm25-dense)
    
    Bring your own vectors to MVS, search them by vector, and know the one setup step BM25 needs
    
    Find Similar Content
    
    Upsert documents you embedded elsewhere into an MVS namespace and search them by raw vector through the features search endpoint. Hybrid BM25 plus dense is not part of a plain BYO upsert: the documents carry dense vectors only and no text index is created. If you want a lexical leg later, declare a TEXT payload index on the field when you create the namespace; this recipe shows that declaration and the dense search that works today.
    
    Modalities TextComplexity Single tierView recipe
    

Page 1 of 5

## What are Mixpeek Recipes?

Mixpeek recipes are practical blueprints for multimodal retrieval pipelines. They demonstrate how to combine feature extractors, retriever stages, and enrichment resources to solve real ML problems.

### Composable Patterns

Each recipe shows how to combine extractors, stages, and enrichment resources. Copy the pattern and customize for your use case.

### ML-Native Workflows

Semantic search, anomaly detection, dataset engineering-recipes are organized by the ML patterns you're trying to implement.

### Production Ready

Clone templates directly into Mixpeek Studio. Each recipe includes Python snippets, retriever stages, and enrichment configurations.

## Recent updates

[Full changelog](/changelog)

*   [Sep 16, 2026A recipe for running a large library without paying twice for the same fileFour of the questions on the solution finder were about volume, cost, continuous ingest and search latency, and all four pointed at a recipe about what to extract rather than how to do it at scale. There is now one that answers them. It covers the pre-flight that prices a draft batch before you submit it, including how many of its objects were already extracted and what a force or replace re-run would re-spend on GPU work; the deduplication default, which is keyed on the bucket and the collection together so re-triggering after a bucket grows only pays for what is new; a continuous bucket sync that polls the storage connection and submits what lands; and moving a collection nobody queries to cold, which takes its vectors out of the vector store while leaving them searchable. It also says plainly which of those the Python client can do and which are HTTP calls today.](/changelog)
*   [Sep 16, 2026The solution finder points at the right page, and every answer is now clickableThree questions on the finder linked to a page that did not answer them. Asking how to filter NSFW, violent or policy-violating content offered a classification recipe under a description of a moderation recipe, and the moderation recipe existed the whole time. Asking how to remove duplicates offered the same search page twice, once as the primary answer and once as the alternative. Asking how to jump to a moment in a video offered outlier detection. All three now go where the page's own description says they go. Separately, twelve of the recommended answers were University modules and the finder had no link for that kind of answer at all, so they rendered as text with nothing to click, including the top answer for four questions. They link now, and the page finally publishes its nineteen questions and answers as structured data an answer engine can read.](/changelog)
*   [Sep 15, 2026Every recipe page shows Python and curl that run, and retrieval steps that existAll 49 recipes now carry a Python snippet built on calls the SDK and API accept: a bucket with a schema, a collection on a real extractor, an upload with a blobs list, a trigger, and a retriever made of stages that exist, executed with inputs. Clustering, anomaly detection and drift recipes create clusters and read their groups, run metrics or CSV export. The taxonomy recipes build flat and hierarchical taxonomies, the bring-your-own-vector recipes search a standalone namespace by vector name, and the RAG recipes rerank passages and write the cited answer inside the retriever. Every request body in the snippets was checked against the API's request models, including extractor and stage parameters. Each retrieval step names a stage from the retriever catalog and links to it, extractor chips point at extractor pages, and the hand-typed run counts that read like usage numbers are gone from recipe and extractor cards. The problem finder at mixpeek.com/find-solution now links only to recipes that exist.](/changelog)