Problem
Agoda serves over 700 million images and millions of reviews in 40+ languages. Photos were ranked by visual quality and reviews by recency or helpfulness, in separate page sections. A traveler checking breakfast had to find breakfast photos, then scroll or search the reviews for "breakfast", then compare the two by hand. The team wanted the matching photos, review snippets and a sentiment score in one view, using only content that already existed.
Example from the article: the gallery shows a buffet, the highlights show a "Great Breakfast" icon, the room grid says breakfast is included, and a review praises the "daily different type of sumptuous breakfast". These are four places that do not link to each other.
Solution in brief
A shared list of topics (Breakfast, Pool, Location, Room Quality, Service) links the 69 image tags and the 45 review tags. Three daily batch jobs pick the best images, the top review snippets and the sentiment percentages for each property and topic. A key-value store serves the combined package.
Questions this case answers
- How to join content of different modalities that is tagged by separate pipelines with different label sets, so each decision factor shows its best evidence together
- How to precompute top-N items and an aggregate sentiment per entity and topic daily across hundreds of millions of items and serve them with low latency
- How to show a user the photos and the guest reviews about the same hotel feature side by side?
- How to link image classifier tags and review tags that come from two separate pipelines?
Tools and methods
- Topic table — maps each image tag and each review tag to one topic ID
- Image quality score — ML aesthetic score with a penalty for low resolution
- Apache Spark (PySpark) — runs the three daily jobs
- Kubeflow — schedules the jobs
- Couchbase — serves the precomputed package at low latency
- A/B tests — compare the multimodal view with the old presentation
Google or a one-time email code. No password.