How the AI recommends similar clothing
Every product image becomes a vector with CLIP, then FAISS / KNN search finds the closest visual matches.
Read moreHow we scaled an image-based clothing recommendation engine from a small on-premise proof-of-concept to a cost-efficient, production-ready platform on Azure.
Short answer: the biggest gains came from architecture, not more compute. By precomputing embeddings, pre-building the vector index, splitting batch from real-time work, and serving behind a production web server, we cut cold-start times and cloud cost instead of simply renting bigger machines.
The Collectives, a fashion retailer, wanted visually intelligent recommendations: upload or describe an item, get similar pieces filtered by size, price, stock and delivery time. The proof-of-concept ran fine on a small on-premise server. As the catalog grew, the index swelled, startup slowed, health checks failed — and the bill rose with every batch of images.
Every product image becomes a vector with CLIP, then FAISS / KNN search finds the closest visual matches.
Read morePre-built indexes, production serving with health checks, and batch work split from live serving.
Read moreOptimise the architecture before adding compute, pick the right hosting tier, and add real cost controls.
Read moreA Jenkins pipeline, a SonarQube quality gate that blocks bad code, and Selenium tests on key journeys.
Read moreThe cheapest performance improvement is usually architectural, before adding compute. AI success is roughly 20% model and 80% data foundation, integration, architecture and operations. Once the architecture is efficient, scaling resources is easy to justify.
Databrain moves AI from proof-of-concept to a production platform: a reliable data foundation, a cost-aware cloud architecture, governance, and human approval in the loop. The same approach applies to document OCR, anomaly detection or finance reporting.
Optimise the architecture before adding compute: precompute embeddings, pre-build the vector index, split batch from real-time, cache popular results, keep startup light. Only then scale what is genuinely the bottleneck.
A small or steady catalog with strict residency needs runs well on-premise or at the edge. Variable or growing workloads benefit from cloud elasticity. Many platforms are hybrid: heavy batch close to the data, elastic serving in the cloud.
Separate batch from real-time, pre-build heavy assets, serve behind Gunicorn with health and readiness checks, and gate every release with automated tests and a CI/CD quality gate.