Case study
CD Science runs ecommerce analytics, and analytics are only as good as the product data underneath them. We worked on CD Science's ecommerce data platform, which crawls hundreds of retail sites and maintains a product index of more than 40 million items.
The challenge
Every retailer publishes its catalog differently. Product names, prices, sizes and categories sit in different places on every site, and the layouts change without warning. To compare products across retailers, all of that has to become one consistent dataset.
At this scale, the hard problems are about quality rather than speed. Is this listing the same product as one already in the index? Is the price still current? Did a crawl finish, or did it stop halfway and leave gaps? With tens of millions of items, small errors multiply quickly, and analysts downstream have no way to see them.
What we built
We worked on the data platform that collects retail product pages and turns them into a single searchable index. CD Science was also one of the customers for whom we built large-scale retail crawling infrastructure.
Crawling hundreds of retailers
The platform gathers product data from hundreds of retail websites, each with its own structure and its own pace of change.
One index for every product
Extracted products land in a single index, where identity, duplicates, freshness and completeness all have to be managed for the data to be useful.
The stack
The platform was built with Ruby on Rails, PostgreSQL and AngularJS.
From retailer page to analysis
Retailer pages are crawled, products are extracted and checked for identity and duplicates, and clean records join the index that CD Science's analysis runs on.
Conceptual workflow
- Retailer sources
- Product extraction
- Schema/identity checks
- Large searchable product index
- Downstream analysis
How we'd build this today
How we'd build it today
We didn't have Cortex on this project; it came later. Rebuilding a retail data platform today, we would:
- Save a set of real pages for every retailer format and test each extractor against them on every change.
- Record where every field came from and when it was collected, down to the individual price.
- Use AI only for genuinely ambiguous pages, and hold its output back until identity and confidence checks pass.
- Benchmark duplicate matching against a hand-checked sample, so we know how often two listings are wrongly merged or split.
- Build freshness and completeness dashboards from what the crawler actually observed.
Uncertain prices pulled out by a model go to a person before they reach the index, and crawling stays within each retailer's terms.
Frequently asked questions
What did CognitiveClouds work on for CD Science?
The data platform behind its ecommerce analytics, along with large-scale retail crawling infrastructure.
Which technologies were used?
Ruby on Rails, PostgreSQL and AngularJS.
Was Cortex used on the original project?
No. The approach above is how we would tackle the same platform with Cortex now.
More data engineering in our work, or see how we deliver.