Home / Insights / AI and Machine Learning

AI and Machine Learning

Visual Search for Online Stores: Building Image-Based Product Discovery That Customers Use

Customers often know what they want when they see it but cannot name it. Visual search lets them start from a photo, a screenshot or a product they like. This guide explains when it is worth building, how it works and how to ship it without disappointing shoppers.

TopicsAI and Machine LearningWeb and SaaS Development

Key takeaways

  • Visual search pays off in visually driven categories such as fashion, furniture, home decor and spare parts, where shoppers struggle to describe what they want in words.
  • Modern systems turn images and text into embeddings in a shared space and use approximate nearest-neighbour search. Off-the-shelf multimodal models are a strong starting point; fine-tuning comes later, if at all.
  • Catalogue quality decides results: clean product photos, consistent attributes, variant grouping and stock data matter more than model choice.
  • Combine visual similarity with business rules and filters (stock, size, price, region) and with text search, rather than shipping a pure similarity ranking.
  • Measure relevance with a labelled test set before launch and with search-to-cart behaviour after launch. Start with ‘similar items’ on product pages, then add camera search.

Text search works when customers know the right words. Many do not. A shopper with a screenshot of a lamp from a magazine, a photo of a worn car part, or a picture of a dress a friend wore has the clearest possible description of what they want, but not one a keyword box can use. Visual search closes that gap by letting the image itself be the query.

This article is for ecommerce founders, heads of digital and CTOs at retailers and marketplaces. It explains which forms of visual discovery are worth building, how the technology works in plain terms, how to prepare a catalogue, how to choose between platform features, APIs and a custom build, and how to test, launch and run it. It ends with a checklist for your planning or vendor conversations.

Where does visual search help shoppers and sales?

“Visual search” covers several features with different costs and payoffs. Be specific about which one you mean.

FeatureWhat the shopper doesBest fitEffort
Visually similar itemsTaps “see similar” on a product page or out-of-stock itemAny catalogue with strong imageryLow to medium; no camera UX needed
Search by photo or screenshotUploads an image or uses the camera in the appFashion, furniture, decor, partsMedium; needs cropping, mobile UX and moderation
Shop the lookSelects items detected in a lifestyle or editorial imageFashion and interiors with styled photographyMedium to high; needs object detection
Text-to-image searchTypes a descriptive phrase (“green velvet armchair with wooden legs”)Catalogues with weak text attributesMedium; reuses the same embeddings

Signals that visual search will pay off

  • Products are chosen mainly on appearance, and attributes such as pattern, silhouette or style are hard to express in words.
  • Search logs show many vague or failed queries (“that blue thing”, long descriptive phrases, zero-result searches).
  • Out-of-stock pages are common and you need a good way to suggest alternatives.
  • You have a large catalogue where manual merchandising of “related items” does not scale.

Where it adds little

Commodity products bought by specification, such as cables, groceries or books, gain little from image similarity. Strong text search, filters and recommendations will do more. Our guide to recommendation engines covers those alternatives.

Action: pull a sample of zero-result and low-click searches from your logs. If many describe appearance, visual discovery deserves a pilot.

How does modern visual search work?

Most current systems follow the same pattern, regardless of vendor.

  1. Embed the catalogue: a model converts each product image, and optionally its title and description, into a vector of numbers (an embedding) that captures visual and semantic features.
  2. Index the vectors: embeddings are stored in a vector index that supports fast nearest-neighbour search.
  3. Embed the query: the shopper’s photo or text is converted with the same model.
  4. Retrieve and re-rank: the index returns the closest products, then business rules and filters reorder and trim the list.

Why image and text can share one search

The key idea comes from contrastive image-text models. OpenAI’s CLIP paper showed that training a model to match images with their captions, using about 400 million image-text pairs from the internet, produced representations that transfer to many visual tasks without task-specific training (Radford et al., Learning Transferable Visual Models From Natural Language Supervision). Because images and text land in the same space, one index can answer both “find items like this photo” and “find a green velvet armchair”.

Cloud providers now offer this as a managed service. Amazon’s documentation for Titan Multimodal Embeddings G1, for example, describes a model that accepts text, images or both, produces embeddings in a shared semantic space with 1,024, 384 or 256 dimensions, and lists image search, recommendation and personalisation as intended uses (AWS: Amazon Titan Multimodal Embeddings G1). The same documentation notes the trade-off that larger vectors carry more detail while smaller ones respond faster, a choice that affects index size and cost.

Approximate search and filters

For catalogues beyond a few thousand items, systems use approximate nearest-neighbour search. Elastic’s documentation describes approximate kNN as the right choice for most production workloads where low latency and scale matter more than perfect recall, while exact kNN scores every document and scales poorly (Elastic: kNN search). It also shows filters applied alongside vector queries, which is how you exclude out-of-stock items or restrict results to a shopper’s size and region. For choosing the index itself, see our vector database comparison.

Should you use a platform feature, an API or a custom build?

There are three realistic routes. The right one depends on catalogue size, how differentiated search is for your brand, and how much control you need.

RouteWhat it involvesStrengthsLimits
Ecommerce platform app or search vendorInstall a visual search or “similar items” add-on for your platformFast to launch, little engineeringLimited control over ranking and rules; per-search or subscription fees; data leaves your stack
Managed embeddings plus your search stackUse a cloud multimodal embedding API and index vectors in your existing search engine or vector databaseGood balance of control and effort; reuses your filters and merchandisingYou own pipelines, relevance tuning and monitoring
Self-hosted open models, optionally fine-tunedRun an open image-text model on your own infrastructure and fine-tune on your catalogueMaximum control, data stays in-house, can specialise to niche productsHighest effort; needs ML skills, GPUs and an evaluation process

How to decide

  • Small catalogue, standard platform, limited team: start with a platform add-on and measure usage.
  • Mid-size or growing catalogue with existing search infrastructure: managed embeddings plus your search engine is usually the sweet spot.
  • Niche products where general models struggle (industrial parts, specialist fashion details) or strict data rules: consider self-hosting and fine-tuning, but only after a baseline shows where the general model fails.

Model choice also depends on languages and product domains. Our article Choosing an Embedding Model for Enterprise Search sets out how to compare candidates on your own data.

For example, an illustrative home-furnishings retailer with 30,000 products on a custom storefront might embed every primary product image and title with a managed multimodal model, store the vectors in its existing search cluster, and expose “similar items” on product pages before building camera search into its app.

Action: list your current search stack and catalogue size, then pick the least complex route that lets you apply your own stock and merchandising rules.

How do you prepare your catalogue and data?

Visual search exposes catalogue problems that text search hides. If the photos are inconsistent, the results will be too.

Image preparation

  • Choose the right image per product: a clean packshot usually embeds better than a busy lifestyle shot. Store which image type each embedding came from.
  • Handle variants: group colour and size variants so results show one product with options, not ten near-identical tiles.
  • Remove noise: watermarks, size charts and promotional overlays pull results toward other images with the same overlay.
  • Crop for multi-item images: lifestyle photos with several products need object detection or manual crops before embedding.

Structured data still matters

Embeddings capture appearance, but customers filter by size, price, brand and availability. Keep attributes complete and consistent, and keep stock and price fresh in the index so similarity results never lead to unavailable items.

Accessibility and SEO

Good images help more than visual search. The W3C’s Web Accessibility Initiative states that images must have text alternatives that describe the information or function they represent, and notes that good alternatives also make images indexable by search engines (W3C WAI: Images tutorial). If you use AI to draft alt text at scale, review a sample for accuracy.

Keeping the index up to date

  1. Embed new and changed products in an event-driven job when the product is published or its main image changes.
  2. Update stock, price and visibility fields in the index more frequently than embeddings.
  3. Re-embed the full catalogue when you change models, and keep the old index until the new one passes evaluation.

Action: audit 200 random products for image quality, variant grouping and attribute completeness before you embed anything.

How do you test relevance and measure success?

“It looks good in the demo” is not a test. Build a small, honest evaluation before launch, and track behaviour after it.

Before launch: an offline test set

  1. Collect a few hundred realistic query images: customer-style phone photos, screenshots from social media and catalogue images with backgrounds changed.
  2. For each query, have merchandisers mark which products are good, acceptable or wrong matches.
  3. Measure how often a good match appears in the top results, and compare models, image choices and re-ranking rules against the same set.
  4. Review failures by category. Patterns such as “patterns confused with colours” or “accessories returned for furniture” point to fixes.

After launch: behaviour metrics

MetricWhat it tells you
Feature usage rateWhether shoppers find and use visual search at all
Click-through from visual resultsWhether results look relevant
Add-to-cart and conversion from visual sessionsWhether it leads to purchases, compared with text search sessions
Zero-result or abandoned visual searchesGaps in catalogue coverage or poor query images
LatencyWhether results arrive fast enough on mobile networks

Run launches as controlled experiments where possible, comparing shoppers with and without the feature. At PoliteTech we built the AI Shopper Simulation Shopify app, which tests product changes on simulated shoppers built from a store’s customer data; that kind of pre-launch testing complements, but does not replace, live measurement.

Action: agree the test set and the target metrics with merchandising before development starts, so success is defined by the business rather than the engineers.

What are the risks and running costs?

Risks

  • Irrelevant or embarrassing results: similarity can surface items that look alike but are wrong (a child’s costume for an adult query). Use category constraints and re-ranking rules.
  • User-uploaded images: photos may contain faces, homes or personal details. Process them only for the search, avoid storing them by default, state this in your privacy notice, and add moderation for inappropriate uploads.
  • Brand and counterfeit issues: on marketplaces, visual similarity can help shoppers find knock-offs of branded items. Agree policy with legal and trust and safety teams.
  • Bias in coverage: general models may perform unevenly across product types, skin tones in fashion imagery or regional styles. Include diverse queries in your test set.
  • Vendor lock-in: embeddings from one model cannot be compared with another’s, so switching models means re-embedding the catalogue. Keep the pipeline able to do that.

Running costs to budget for

  • Embedding calls for the catalogue (one-off and on changes) and for every query.
  • Vector index storage and compute, which grow with catalogue size and vector dimensions.
  • Image processing: resizing, cropping and object detection for multi-item images.
  • Evaluation and tuning time from merchandisers and engineers.
  • Monitoring, plus periodic re-embedding when models improve.

Choosing a smaller vector size, caching popular queries and embedding only primary images are the main levers for keeping costs proportionate to the value the feature delivers.

Rollout plan and checklist

A staged rollout reduces risk and produces evidence for each next investment.

  1. Stage 1, similar items: add “visually similar” to product and out-of-stock pages. No camera UX, low risk, quick learning about catalogue quality.
  2. Stage 2, text-to-image search: blend embedding results into site search for descriptive queries, alongside keyword results.
  3. Stage 3, camera and screenshot search: add upload and cropping in the mobile app and on mobile web, with moderation and privacy handling.
  4. Stage 4, shop the look: detect products in editorial and user-generated images, if earlier stages show strong engagement.

Checklist

  1. Use case chosen and justified from search logs or customer research.
  2. Route chosen: platform add-on, managed embeddings or self-hosted model.
  3. Catalogue audited: images, variants, attributes, stock data.
  4. Index design includes filters for stock, size, price and region.
  5. Labelled test set created with merchandisers; baseline measured.
  6. Re-ranking rules and category constraints defined.
  7. Privacy, moderation and retention rules for uploaded images agreed.
  8. Event-driven embedding updates and a re-embedding plan in place.
  9. Experiment design and success metrics agreed before launch.
  10. Cost per query and per catalogue update estimated and monitored.

Our Retail and Ecommerce team builds storefronts, marketplaces and shopping apps on Shopify, WooCommerce, Magento, Next.js, React Native and Flutter, with search built on tools such as Elasticsearch, and AI features such as product recommendations and content generation.

Frequently asked questions

Is visual search worth it for a small online store?

Often not as a custom build. If your catalogue is small, a platform add-on for ‘similar items’ is a low-risk way to test demand. Invest in custom work when the catalogue is large, visually driven and search is a meaningful part of how customers buy.

Do we need to train our own model?

Usually not at first. Managed multimodal embedding models handle most consumer categories well. Fine-tuning becomes worthwhile when an evaluation on your own products shows systematic failures, for example with niche industrial parts.

Can visual search work with our existing search engine?

In many cases, yes. Several search engines and databases support vector fields and approximate nearest-neighbour queries alongside filters and keyword search, so you can add embeddings without replacing your stack.

What happens to photos customers upload?

That is your design decision and should be stated in your privacy notice. A sensible default is to process the image only to run the search, not to store it, and to apply moderation to block inappropriate uploads.

How long does it take to launch?

A ‘similar items’ feature using managed embeddings can be a modest project if the catalogue data is in good shape. Camera search in a mobile app, moderation and shop-the-look add significant scope. Catalogue clean-up is often the longest task.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Radford et al. (OpenAI): Learning Transferable Visual Models From Natural Language Supervision (CLIP), arXiv — accessed 9 November 2026. Contrastive image-text training on about 400 million pairs and zero-shot transfer, the basis of shared image-text search.
  2. AWS Documentation: Amazon Titan Multimodal Embeddings G1 — accessed 9 November 2026. Managed multimodal embeddings in a shared space, available vector sizes and intended search and recommendation uses.
  3. Elastic Docs: kNN search — accessed 9 November 2026. Approximate versus exact kNN trade-offs and applying filters alongside vector queries.
  4. W3C Web Accessibility Initiative: Images tutorial — accessed 9 November 2026. Text alternatives for product images and their benefit for accessibility and search indexing.

Would visual search help your shoppers find products faster?

Share your catalogue size, platform and search data. We will help you pick the right first feature and build route, and define how to measure it.