A retailer wants shoppers to search its catalog by uploading a photo and getting visually and textually similar products. Which embedding approach fits?
- Exam domain
- Data Preparation for ML and AI28% of the exam
- Difficulty
- Medium
- In this mock
- 24 questions on this domainPractise this domain
Why the exam asks this
Task 1.2: Perform data transformation, feature engineering, and pre-processing.
Objective in the exam guide: Skill 1.2.5: Configure and use embedding models to transform text and image data into numerical representations.
Search by photo and mixed media search are common product features. They depend on choosing embeddings that understand both modalities.
Why D is the answer
A multimodal embedding model, such as Amazon Titan Multimodal Embeddings, that places images and text in one vector space
Multimodal embeddings let an image query match both images and text descriptions.
Remember: Image and text in one search: multimodal embeddings.
How it works
An embedding model turns content into a vector, so similar content has nearby vectors.
A multimodal embedding model maps images and text into the same vector space.
An image query can then find similar images and matching text descriptions.
Clues in the question
The words that point to the answer, and what each one tells you.
- Uploading a photo
- Image input.
- Visually and textually similar
- Images and text in one space.
In detail
- Embeddings turn text and images into numeric vectors for similarity search.
- The same vector store can then serve image and text queries.
Side by side with look-alikes
| Approach | Matches image to text? |
|---|---|
| Multimodal embeddings | Yes |
| Text embeddings on file names | Poorly |
| One-hot IDs | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A text-only embedding model applied to image file namesWrongMost tempting
File names carry little visual meaning.
Why it tempts: It reuses a text model the team may already have. But file names say almost nothing about what the image shows.
B. One-hot encoding of product IDsWrong
IDs encode nothing about appearance or meaning.
C. A regression model on product pricesWrong
Price regression does not measure similarity.
D. A multimodal embedding model, such as Amazon Titan Multimodal Embeddings, that places images and text in one vector spaceRight
Image and text in one search: multimodal embeddings.
In practice
- Embed catalog images and descriptions with the same model.
- Test with real shopper photos, which are messier than catalog shots.
Use case
An illustrative scenario, not a real incident.
A shopper photographs a lamp, and the store returns similar lamps plus products described as "brass desk lamp".
See how it works
quadrantChart x-axis Modern --> Classic y-axis Small --> Large Shopper photo: [0.72, 0.3] Brass desk lamp text: [0.78, 0.28] Catalog lamp image: [0.7, 0.35] Sofa image: [0.25, 0.85]
How to read this chart
- Each point is an image or a text description, placed by its embedding.
- The shopper's photo lands next to a matching catalog image and a matching description.
- The sofa is far away, so it is not returned.