Shubham SinhaResume (PDF, opens in a new tab)
All work

Numerator

Catalog search platform

Keyword search kept missing different spellings of brands and categories, and new products were often filed in the wrong place. I added hybrid search on Elasticsearch, and a model that tags every product correctly as soon as it is added.

Role
Backend and ML engineer
Context
Product catalogs in several countries
Stack
FastAPI, Elasticsearch, Hugging Face

The problem

Good products were hard to find because they were tagged wrong and matched wrong.

Product search used plain keyword matching, which doesn't handle how people really type. Different brand spellings, short forms and category synonyms meant a search could miss products that were clearly relevant. It got worse when new products arrived: many were tagged with the wrong brand or category, so even a perfect search couldn't find them.

Two different problems, one result: people never saw relevant products.

The approach

I fixed the search side and the data-loading side together, because fixing only one still leaves bad results.

  • Hybrid search. Keyword scoring (BM25) combined with vector similarity, so related brand and category names show up even when the exact words don't match.
  • Tagging on arrival. A fine-tuned Hugging Face model, with spaCy for text cleanup, sets the brand and category as each product is added to the index.
  • Tested across countries. The model was tuned on US, Canadian and German catalogs, so it works across markets instead of fitting just one.

Architecture

IngestNew productraw recordspaCypreprocessHF classifierbrand · categoryQueryUser queryfree textHybrid retrievalBM25 + dense vectorsElasticsearchfaceted indexResultsrankedindex + facetssearch
One index, two paths: products are tagged before they are indexed, and searches combine keyword and vector matching.

Key decisions

Fix search and tagging together

Better search only helps if products are tagged correctly, and correct tags only help if search can reach them. Treating both as one problem is what improved the results.

Tag products when they arrive, not when people search

Setting tags when a product is added keeps searches fast. And every time the model improves, the whole catalog gets better on the next reindex, without running the model on every search.

Test across countries

Checking results on US, Canadian and German catalogs kept the model honest. The gains were real improvements, not quirks of one market.

Outcome

  • +23%more accurate brand and category tagging
  • Hybridkeyword plus vector search finds variants that keyword search missed
  • Autonew products get the right brand and category as they arrive

Stack

FastAPIElasticsearchHugging FacespaCyTransformersPython