Image classification
Though searching by image may be your end goal, you should enrich your Algolia data based on the images you already have. In other words, you need to add textual classifications to your records based on your images. You can retrieve classifications from AI-powered image recognition platforms and add them to your Algolia records. Then when a user searches using an image (at query time), those same classifications can help retrieve the correct record. For example, if you run a fashion ecommerce site, you can automatically extract features like the type of neckline, sleeve length, colors, and patterns from your product images. Without enriching your Algolia records, when a user provides an image as a search query, it won’t be able to match relevant records with the same or similar image. Even if you don’t plan on implementing search by image, image classification and tagging can offer a more relevant and discovery experience in and of itself.You can’t store images directly in Algolia.
Instead, store the image on a content delivery network (CDN) or web server and add the image URL to a field in your records.
When you retrieve a record from Algolia, use this URL to display the image in your app.