Visual Product Search
Enable camera-based product discovery for e-commerce. Customers snap a photo of a product they like, and the pipeline returns visually similar items from your catalog along with pricing, availability, and product metadata.
from mixpeek import Mixpeekclient = Mixpeek(api_key="YOUR_API_KEY")# Create product catalog collectioncollection = client.collections.create(namespace_id="ns_your_namespace",name="product_catalog",extractors=["multimodal-extractor", "text-extractor"])# Upload product images with metadataclient.buckets.upload(bucket_id="bkt_products",url="s3://your-bucket/product-images/",metadata={"category": "shoes", "in_stock": True})# Customer searches by photoresults = client.retrievers.execute(retriever_id="ret_product_search",query={"image_url": "https://example.com/customer-photo.jpg"},filters={"in_stock": True})for doc in results["results"]:print(f"Product: {doc['metadata']['name']} - ${doc['metadata']['price']}")
Feature Extractors
Retriever Stages
rerank
Rerank documents using cross-encoder models for accurate relevance
