Hierarchical Classification
Assign content to multi-level category hierarchies using embedding-based classification. Define your taxonomy once, then classify new content automatically with confidence scores.
"Show all educational tutorial videos classified under safe content with high confidence"
Why This Matters
Taxonomies are organizational infrastructure. Once defined, they enable consistent classification, compliance tagging, and structured navigation across all content.
import requestsfrom mixpeek import Mixpeekclient = Mixpeek(api_key="YOUR_API_KEY", namespace="content-classification")API = "https://api.mixpeek.com/v1"HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "X-Namespace": "content-classification"}# 1. One exemplar collection per node of the hierarchysafe_bucket = client.buckets.create(bucket_name="safe-examples",bucket_schema={"properties": {"image": {"type": "image"}}},)safe = client.collections.create(collection_name="safe-examples",source={"type": "bucket", "bucket_ids": [safe_bucket["bucket_id"]]},feature_extractor={"feature_extractor_name": "multimodal_extractor","version": "v1",},)edu_bucket = client.buckets.create(bucket_name="educational-examples",bucket_schema={"properties": {"image": {"type": "image"}}},)edu = client.collections.create(collection_name="educational-examples",source={"type": "bucket", "bucket_ids": [edu_bucket["bucket_id"]]},feature_extractor={"feature_extractor_name": "multimodal_extractor","version": "v1",},)client.buckets.upload(safe_bucket["bucket_id"],blobs=[{"property": "image", "type": "image", "data": "s3://your-bucket/examples/safe/0001.jpg"}],)client.buckets.upload(edu_bucket["bucket_id"],blobs=[{"property": "image", "type": "image", "data": "s3://your-bucket/examples/educational/0001.jpg"}],)client.collections.trigger(safe["collection_id"])client.collections.trigger(edu["collection_id"])# 2. The retriever that matches a document against the exemplarsmatcher = client.retrievers.create(retriever_name="example-matcher",collection_identifiers=["safe-examples", "educational-examples"],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": 3,},],"final_top_k": 3,},},],)# 3. A hierarchical taxonomy: Educational sits under Safe. The SDK has no# taxonomies resource, so this part is REST.taxonomy = requests.post(API + "/taxonomies", headers=HEADERS, json={"taxonomy_name": "content-classification","config": {"taxonomy_type": "hierarchical","retriever_id": matcher["retriever_id"],"input_mappings": [{"input_key": "query", "source_type": "payload", "path": "description"}],"hierarchical_nodes": [{"collection_id": safe["collection_id"], "label": "Safe"},{"collection_id": edu["collection_id"], "parent_collection_id": safe["collection_id"], "label": "Educational"},],},}).json()# 4. The content collection writes one set of fields per tier onto every documentbucket = client.buckets.create(bucket_name="videos",bucket_schema={"properties": {"video": {"type": "video"}}},)videos = client.collections.create(collection_name="videos",source={"type": "bucket", "bucket_ids": [bucket["bucket_id"]]},feature_extractor={"feature_extractor_name": "multimodal_extractor","version": "v1","parameters": {"split_method": "scene","run_video_description": True,},},taxonomy_applications=[{"taxonomy_id": taxonomy["taxonomy_id"], "execution_mode": "materialize", "hierarchical_enrichment_style": "full_chain"}],)client.buckets.upload(bucket["bucket_id"],blobs=[{"property": "video", "type": "video", "data": "s3://your-bucket/videos/chemistry-lesson.mp4"}],)client.collections.trigger(videos["collection_id"])docs = client.documents.list(videos["collection_id"], page_size=20)for doc in docs["results"]:print(doc["document_id"], {k: v for k, v in doc.items() if "tier" in k})
Feature Extractors
Multimodal Extractor
Unified embeddings for video, audio, image, and text: scene/silence chunking, Whisper transcription, thumbnails, and Gemini vision.
Retriever Stages
Documentation
Use Cases Using This Recipe
Product Affordance Intelligence
Understand what products can do, not just what they look like
+35% improvement
Search relevance (NDCG)
E-commerce platforms, product catalog managers, and merchandising teams managing 100K+ SKU catalogs
AdTech Creative Intelligence
Understand what makes ad creatives perform before they run
99% faster
Creative approval speed
Ad networks, DSPs, creative agencies, and brand marketing teams managing 10K+ creative assets monthly
Government Intelligence
Multimodal search and analysis for government document repositories
100% unified index
Cross-department search coverage
Government agencies, policy researchers, compliance teams, and public affairs professionals managing multi-department document repositories
Asset Intelligence (DAM Auto-Labeling)
Auto-tag and organize digital assets with multimodal AI
95% reduction
Manual tagging effort
Creative teams, brand managers, and media companies managing 100K+ digital assets across DAM platforms
AI Content Moderation for User-Generated Content
Automatically detect and flag policy-violating content across text, images, and video
95%+ of violations flagged before going live
Pre-publication violation catch rate
UGC platforms, social media companies, marketplace operators, and community platforms processing 100K+ daily uploads requiring trust and safety review
AI-Powered Digital Asset Management
Search, organize, and enrich your media library with multimodal AI
80% faster search-to-find
Asset discovery time
Media companies, creative agencies, brand teams, and publishers managing libraries of 500K+ images, videos, and documents across production workflows
Automated Video Tagging for Streaming
Auto-generate rich metadata for every scene, shot, and moment in your catalog
10x more tags than manual editorial process
Metadata tags per title
Streaming platforms, content distributors, and VOD services managing catalogs of 10K+ titles that need rich metadata for discovery and recommendation
Visual Product Search for Ecommerce
Let shoppers search your catalog with images instead of keywords
2.3x increase for visual search users
Search-to-purchase conversion
Ecommerce platforms, online marketplaces, fashion retailers, home goods stores, and any product catalog with 10K+ SKUs where visual discovery drives conversion
Brand Safety Verification
AI-powered brand safety scoring for ad placements and content partnerships
95% reduction in unsafe ad adjacency
Brand safety violation rate
Brand safety teams at agencies, DSPs, SSPs, ad networks, and brand marketers who need to verify that ad placements and content partnerships meet safety standards before spend is allocated
AI Compliance Document Review
Automate regulatory document review with multimodal AI understanding
10x faster
Review cycle time
Compliance teams, regulatory affairs departments, and legal operations groups reviewing 1,000+ regulatory documents per quarter across banking, insurance, pharma, and financial services
Clinical NLP at Scale
Extract structured intelligence from clinical notes, pathology reports, and medical records
94% F1 on medical NER benchmarks
Entity extraction accuracy
Healthcare IT teams, clinical informatics departments, and health systems processing thousands of clinical documents daily
Brand Logo Detection in Video
Scan video assets for unauthorized brand logos and trademarks
Detect logos across 3K+ brands
Brand coverage
Brand safety teams, ad agencies, and content distributors managing video libraries with potential trademark exposure
Related Recipes & Resources
Explore these related resources to deepen your understanding and discover more powerful features
Multimodal Extractor
Unified embeddings for video, audio, image, and text: scene/silence chunking, Whisper transcription, thumbnails, and Gemini vision.
Brand Safety & Ad Verification Pipeline
GARM-compliant brand safety pipeline for ad networks. Analyze video and image creatives for brand safety violations before serving.
Video Content Analytics Pipeline
Analyze video content at scale to extract insights: scene composition, speaker time, topic distribution, and sentiment across your video library.
Automated Video Tagging
Automatically generate descriptive tags for video content using scene analysis, object detection, and taxonomy classification. Each video receives structured labels for scenes, objects, actions, and custom business categories without manual annotation.
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.
Semantic Join
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.