Personalised Recommendations With a Closed Feedback Loop

Client work · Founding engineer (contract) — engine, integration and audit · in development

A recommender for a consumer shopping app, built across the AI service, the backend and the iOS app so that what a shopper does actually changes what they see.

The detail

The engine is stateless and returns product IDs only: a time-decayed taste vector built from likes and passes, up to three taste centres instead of one blurred average, explore slots kept apart so they can be measured, weighted negatives that fade, and diversity limits by brand and category. Cold start uses the text side of the same image model. The backend hydrates results through the existing audience guards and falls back to the previous ranking on any timeout or failure.

Before claiming anything I audited the code as it would ship, across all three services, and found 39 issues. The worst: the app re-sorted the server's answer, so a swipe could never visibly change the feed. The fixes closed the loop with a batched product-events endpoint, impressions joined to the response that produced them, and items shown repeatedly without engagement treated as soft negatives.

Live testing found what review could not: a release filter that matched nothing, and a cold vector search slower than its budget, now warmed at app launch. It runs on a test environment; no engagement uplift is claimed until it is measured.

Python, CLIP embeddings, MongoDB vector search, Node.js, TypeScript, Swift.

What I did

  • Built a stateless content-based engine with multi-interest taste, explore slots, decaying negatives and diversity limits
  • Integrated it through the backend with audience guards and a fallback to the previous ranking
  • Audited the shipped code across three services (39 findings) and fixed the loop end to end
  • Added a batched product-events endpoint with impression attribution
  • Found and fixed two failures only live traffic showed, and stated that no uplift is measured yet

Stack

Python, Recommender Systems, Vector Search, CLIP, MongoDB, Node.js, TypeScript, Swift, Machine Learning

Case study: https://www.siddhvasudev.com/projects/personalised-recommendations-with-a-closed-feedback