Image Similarity Search Pipeline
Deploy a visual search engine that finds similar images using state-of-the-art embedding models. Perfect for product catalogs, stock photo libraries, and visual discovery.
from mixpeek import Mixpeekclient = Mixpeek(api_key="YOUR_API_KEY", namespace="image-search")# 1. A bucket for the images, and a collection that embeds each one with SigLIPbucket = client.buckets.create(bucket_name="product-images",bucket_schema={"properties": {"image": {"type": "image",},},},)collection = client.collections.create(collection_name="products",source={"type": "bucket", "bucket_ids": [bucket["bucket_id"]]},feature_extractor={"feature_extractor_name": "image_extractor","version": "v1",},)# 2. Upload and processclient.buckets.upload(bucket["bucket_id"],blobs=[{"property": "image", "type": "image", "data": "s3://your-bucket/product-images/handbag-0142.jpg"}],)client.collections.trigger(collection["collection_id"])# 3. A text query searched against the image embeddingsretriever = client.retrievers.create(retriever_name="image-search",collection_identifiers=["products"],input_schema={"query": {"type": "text","required": True,},},stages=[{"stage_name": "search","stage_id": "feature_search","parameters": {"searches": [{"feature_uri": "mixpeek://image_extractor@v1/google_siglip_base_v1","query": {"input_mode": "text","value": "{{INPUT.query}}",},"top_k": 20,},],"final_top_k": 20,},},],)# 4. Searchresults = client.retrievers.execute(retriever["retriever_id"],inputs={"query": "red leather handbag with gold hardware",},)for doc in results["documents"]:print(doc["document_id"], doc["score"])
Feature Extractors
Image Embedding
Generate visual embeddings for similarity search and clustering
Retriever Stages
feature search
Search and filter documents by vector similarity using feature embeddings
Frequently asked questions
What image formats are supported?
JPEG, PNG, WebP, GIF, BMP, TIFF, and SVG are all supported.
Can I search using an image instead of text?
Yes. Mixpeek supports both text-to-image and image-to-image search using the same pipeline.
How many images can this handle?
Mixpeek scales to millions of images. The vector index is optimized for sub-100ms queries at scale.
Use Cases Using This Recipe
Visual Product Search for E-commerce
Let shoppers find products by uploading a photo instead of typing keywords
+30% for visual search queries
Search-to-cart conversion rate
E-commerce platforms, online retailers, and marketplace operators managing catalogs of 50K+ SKUs who want to offer camera-based product discovery
Visual Search for Retail
Bridge the gap between in-store inspiration and online purchase
+35% higher than text search
In-app visual search conversion
Omnichannel retailers, retail apps, and brands with physical and digital presence looking to connect in-store browsing with online purchasing
Fashion Visual Product Discovery
Search for fashion by style, not just by name or brand
3x more products viewed per session
Product discovery engagement
Fashion e-commerce platforms, apparel retailers, and personal styling services managing catalogs of 100K+ products where visual style drives purchase decisions
Related Recipes & Resources
Pages on the same stages, extractors and patterns.
Image Embedding
Generate visual embeddings for similarity search and clustering
Face Identity Extractor
Detect, align, and embed faces to 512-D ArcFace vectors across image, video and PDF, using SCRFD for detection.
Automatic Image Tagging Pipeline
Automatically tag images with objects, scenes, colors, and custom labels using computer vision models. Perfect for DAM systems and media libraries.
E-commerce Product Image Analytics
Analyze product images across your catalog to extract visual attributes, identify trends, detect quality issues, and benchmark against competitors.
Reverse Image Search
Build a reverse image search engine that accepts an image as input and returns visually similar results from your indexed collection. Uses multimodal embeddings to match visual features like color, shape, composition, and semantic content.
Image Deduplication Pipeline
Identify near-duplicate and visually similar images in your collection using embedding-based clustering. Groups images by visual similarity, flags duplicates, and provides confidence scores to help clean up redundant content in media libraries and product catalogs.