Building a Magic Mirror: AI retail experiences with Remix
An AI-powered "magic mirror" hides a webcam and display behind glass. It photographs a shopper and runs the image through a vision LLM to return a compliment and a product recommendation, first used for Rare Beauty blush shade matching. The system is a single Remix route: a server action builds a prompt from a persona, a plain-text product/inventory table and a JSON output schema, calls an OpenAI-compatible proxy in JSON mode with max_tokens 300, and resolves the returned product ID with graceful fallback. Server-sent events on per-booth channels let a remote device trigger or reset the mirror, and a five-state client machine handles capture delay, timed auto-reset and fade transitions. Prompt lessons: hard character limits beat "be concise", curated compliment lists improve brand consistency, explicit exclusion lists are needed for safety, and inventory can softly steer recommendations.
Related posts
- Leveraging multimodal LLMs for Shopify’s global catalogue: Recap of expo talk at ICLR 2025
Shopify Engineering mediumAdeptShopify's Global Catalogue uses fine-tuned open-source vision LLMs (LLaVA 1.5 7B, then LLaMA 3.2 11B, now Qwen2VL 7B) to classify, extract attributes from, standardize and match billions of merchant product listings. The system has four layers: streaming product data with change data capture, multi-task product understanding, graph-based product matching (LSH and embedding candidates, discriminator edge pruning, connected components) and canonical record reconciliation. Training each model to predict a randomly selected subset of fields kept it generalizable and cut median latency from 2s to 500ms and GPU usage by 40%. LLM-agent annotation with an LLM arbitrator, instruction-following eval metrics and active learning driven by low token probabilities support 40M inferences a day on Triton with FP8 quantization.
- Implementing MCP Servers in Python: An AI Shopping Assistant with Gradio
Hugging Face mediumAdeptGradio's MCP integration turns Python functions into LLM tools: launching an app with mcp_server=True exposes each endpoint as an MCP tool, with names, descriptions and input schemas generated from function docstrings, plus progress streaming and file upload handling. The walkthrough builds a virtual try-on shopping assistant by wrapping the IDM-VTON diffusion Space, called through the Gradio API client, in a Gradio Interface. That server is registered alongside the Playwright MCP server in VS Code's mcp.json, so the AI chat can browse a clothing store and render the user wearing selected garments.
- Content Creation Copilot - AI-assisted product onboarding
Zalando Engineering mediumAdeptZalando built a copilot that pre-fills product attributes during content onboarding by sending product image URLs and generated prompts to OpenAI GPT models. Copywriters still review and approve every suggestion. A prompt generator builds requests from article masterdata attribute sets. A translation layer maps Zalando's opaque attribute codes to English values and back, and a category mapping layer suppresses attributes that shouldn't apply. Moving from GPT-4 Turbo to GPT-4o improved accuracy, latency and cost, and product-only front images gave the best results. The system reaches about 75% accuracy and enriches around 50,000 attributes per week, though it is weaker on niche fashion terms, which motivated an aggregator service that combines multiple suggestion sources.
- Run Gemma 3 with Docker Model Runner: Fully Local GenAI Developer Experience
Docker mediumAdeptDocker Model Runner (in Docker Desktop for macOS 4.40.0+) exposes an OpenAI-compatible API on localhost, so Gemma 3 can be pulled with `docker model pull ai/gemma3` and called through the standard OpenAI SDK by pointing baseURL at http://localhost:12434/engines/v1. A sample Comment Processing System uses it to generate synthetic user feedback, categorize sentiment, cluster comments with mxbai-embed-large embeddings, extract feature ideas as JSON and draft support replies, all with no external API calls. Per-task temperature and token limits can be tuned freely because local inference carries no per-token cost or rate limit.
- From Activity to Intent: Generating User Journeys with LLMs
Pinterest Engineering mediumAdeptPinterest replaced a multi-stage keyword-clustering pipeline for inferring user "journeys" (long-horizon goals like a kitchen remodel) with a single fine-tuned 4B Qwen3 model. The model reads a compact chronological activity log and emits a ranked JSON list of localized journey names, with the prompt itself encoding ranking, dedup, noise and safety policy. The student was distilled via LoRA SFT from frontier-model teacher outputs; a few thousand diverse, hard examples were enough, and 4B beat 0.6B/1.7B/8B on the quality/throughput tradeoff. Serving uses NVIDIA Dynamo with vLLM on ~100 L40S GPUs at ~775 req/s (p50 1.2s, p95 3.0s), with KV-aware routing and prefix caching, and skips recently inferred users. Online tests showed 1.1% email CTR and 1.3% push open lifts over the clustering system.