Multimodal Content Moderation
Automated content moderation pipeline that analyzes text, images, and video for policy violations. Uses hierarchical taxonomy classification to label content as safe, sensitive, or prohibited across multiple categories simultaneously.
from mixpeek import Mixpeekclient = Mixpeek(api_key="YOUR_API_KEY")# Create a taxonomy with moderation categoriestaxonomy = client.taxonomies.create(namespace_id="ns_your_namespace",name="content_moderation",taxonomy_type="hierarchical",hierarchy=[{"node_id": "safe", "collection_id": "col_safe_examples"},{"node_id": "sensitive", "collection_id": "col_sensitive_examples"},{"node_id": "prohibited", "collection_id": "col_prohibited_examples"},])# Apply taxonomy to your UGC collectionclient.collections.apply_taxonomy(collection_id="col_user_content",taxonomy_id=taxonomy["taxonomy_id"])# Check moderation status on new uploadsresults = client.retrievers.execute(retriever_id="ret_moderation",query={"image_url": "https://example.com/user-upload.jpg"})verdict = results["documents"][0]["taxonomy_enrichment"]print(f"Category: {verdict['category']}, Confidence: {verdict['confidence']:.2f}")
Feature Extractors
Retriever Stages
aggregate
Compute aggregations (COUNT, SUM, AVG, etc.) on pipeline results
Related Recipes & Resources
Explore these related resources to deepen your understanding and discover more powerful features
Document Classification Pipeline
Classify documents into custom business categories using layout-aware extraction and taxonomy enrichment. Handles invoices, contracts, reports, forms, and correspondence by analyzing both textual content and visual document structure.
Multimodal Hybrid Search Pipeline
Combine vector search with keyword search (BM25) across text, images, and video for the most comprehensive multimodal retrieval system.
Multimodal RAG Pipeline
Build a retrieval-augmented generation system that works with text, images, and video. Feed relevant multimodal context to LLMs for grounded responses.
Taxonomy Enrichment Pipeline
Automatically classify and tag content using custom taxonomies. Map your content to IAB categories, custom hierarchies, or industry-specific classifications.
Content Clustering Pipeline
Automatically group similar content together using embedding-based clustering. Discover themes, identify duplicates, and organize large content libraries.
Metadata Enrichment Pipeline
Automatically enrich your data with extracted metadata: entities, topics, sentiment, language, and custom attributes. Transform raw content into structured, queryable data.