← All case studies
Classical MLRetail & Media[RE]DESIGN · 2024

Bookstore.ai

Hybrid content + collaborative recommender over 10M+ normalised book records, served by FastAPI at 95% test coverage.

+60%click-through on recommendations

Context

A book commerce platform needed recommendations that worked both for well-known titles with rich interaction data and for the long tail with almost none.

Challenge

Catalogue data came from Amazon, Ingram and Goodreads with conflicting and duplicated metadata, and the service had to stay fast under production load.

My role

Led a team of 4 engineers. Designed the ingestion layer, the hybrid ranking approach and the service architecture.

Architecture

How the system fits together

Bookstore.ai architecture diagramPrivate cloud · DockerAmazonIngramGoodreadsETL & dedupeAlembic schemaPostgreSQL10M+ recordsQdranttitle embeddingsCollaborative filterinteractionsContent-basedvector similarityHybrid rankerFastAPI · 50 RPSStorefront+60% CTR
External sourceServiceData storeModel / AIUser / outputTelemetry / async

Simplified for public sharing; client-specific details are omitted.

Approach

Key engineering decisions

  1. 01

    Ingestion & entity resolution

    An Alembic-managed schema and ETL pipeline normalise 10M+ records and automatically resolve 50% of duplicate and conflicting metadata.

  2. 02

    Two signals, one ranker

    Collaborative filtering over interactions in PostgreSQL is blended with content-based similarity from title embeddings in Qdrant, so cold-start titles still get recommended.

  3. 03

    Production service

    FastAPI services at 95% test coverage, load-tested to 50 RPS with k6 and deployed via Docker to private cloud with consistently low latency.