SEO + GEO
Workspace Wiki

AnswerWell

Let’s connect

Scan a code or click a card.Click a card to open the app.Tap a card to open the app.

Data & machine learning · Custom build

Recommendation Engine

A recommendation engine is a system that shows each visitor the products, articles or offers they are most likely to want, based on behavior. We build our own deep-learning recommenders and personalization, using the retrieval-and-ranking designs behind large consumer platforms, and fine-tune them on your real interaction data instead of renting a generic widget.

model stages: retrieve, rank
2
models tuned on your data
Own
tested against a holdout
A/B

Service profile

Delivery model
Custom build
Cadence
Continuous
First result
~60 days
Team involvement
Hands-on
Target markets
Worldwide
Platforms
PyTorch,TorchRec,FAISS,Kafka,Shopify,GA4
Target market for your project
First result in ~60 days Scope agreed before work starts
Request a proposal →

Scope, timing and fees are agreed for your project before work starts. Service documentation (Wiki)

01 / The problem

When you need it

“Every visitor sees the same offers, so related and alternative items go unseen and good content stays buried.”

What we need from you

~60 days to first result Continuous Hands-on team involvement

02 / Deliverables

Recommendation Engine: what you get

  • 01Event schema and feature pipeline for views, clicks, searches and purchases
  • 02Two-stage model: candidate retrieval plus a ranking model fine-tuned on your data
  • 03Recommendation API and widgets for related, alternative and personalized item blocks
  • 04Offline metrics, A/B test design and a retraining and monitoring plan

03 / Process

How it works

How engagements work →
  1. 01

    Build the baseline

    We audit your event data, build a popularity and co-visitation baseline, and set offline metrics such as recall@k and nDCG.

  2. 02

    Train and compare

    We train retrieval and ranking models, compare them with the baseline offline, and size compute with the math in the deep dive.

  3. 03

    Serve and test live

    We deploy behind an API, run an A/B test against a holdout, and schedule retraining as behavior shifts.

04 / Deep dive

How production recommenders work and what they cost

Large platforms use two stages. In YouTube's design (Covington et al., 2016), candidate generation reduces millions of videos to hundreds: a network maps a user's watch and search history to an embedding that is matched against video embeddings by nearest-neighbor search. A ranking network then scores each candidate with richer features and predicts expected watch time. This retrieve-then-rank split, with two-tower models for retrieval, is the standard pattern because scoring every item with a heavy model is too slow.

Ranking models learn from behavior sequences. Alibaba's Deep Interest Network (DIN) weights a user's past items by relevance to the candidate using attention, and DIEN adds a recurrent layer that models how interest evolves. The Behavior Sequence Transformer (BST) applies a transformer encoder to the sequence at Taobao. ESMM estimates conversion rate by training on all impressions with pCTCVR = pCTR × pCVR, which avoids the selection bias of learning only from clicks. Meta's DLRM combines embedding tables for categorical features, an MLP for dense features and pairwise dot-product interactions.

Embeddings dominate memory and freshness. In DLRM-class systems most parameters sit in embedding tables, reported in the trillions at the largest scale. ByteDance's Monolith (2022) tackles two problems: hash collisions, solved with a collisionless embedding table built on cuckoo hashing, and staleness, solved by real-time training with parameters synchronized from training to serving within minutes. It keeps tables bounded by filtering low-frequency IDs and expiring IDs not seen for a set time.

The arithmetic is simple, and we state it as an estimate. Embedding parameters = (users + items) × dimension. Memory = parameters × 4 bytes in fp32, and about three times that with Adam optimizer states. Training FLOPs ≈ 6 × dense parameters × examples, because embedding lookups add little arithmetic. A shop with 1M users and 200k items at dimension 64 has 1.2M × 64 ≈ 77M parameters, which is 0.3 GB. With 2M examples a day over 30 days, 1M dense parameters and an effective 10 TFLOP/s per GPU, one full pass is 6 × 1M × 60M = 0.36 PFLOP, under one GPU-minute.

The table applies the same method to three scales, assuming 2M, 40M and 800M examples per day and 1M, 10M and 100M dense parameters. Real projects also pay for data pipelines, negative sampling, evaluation reruns, serving and A/B tests, and utilization on embedding-heavy models is often below peak, so treat these figures as planning estimates that we replace with benchmarks on your data. Sites in the first two rows can train on a single server, so effort goes into data quality rather than hardware.

Compute estimates by scale (30-day window, one pass, 10 TFLOP/s effective per GPU)
ScaleUsers × itemsEmbedding memoryTraining computeHardware
Small shop1M × 200k, dim 6477M params, 0.3 GB0.36 PFLOP, under 1 GPU-minute1 GPU or CPU server
Marketplace20M × 2M, dim 641.4B params, 5.6 GB72 PFLOP, about 2 GPU-hours1 server, 1-4 GPUs
Large platform200M × 20M, dim 12828B params, 113 GB14 EFLOP, about 400 GPU-hours2 × 8-GPU nodes, sharded

05 / FAQ

Questions about Recommendation Engine

Ask about this service →

What is a recommendation engine?

A recommendation engine predicts which items a specific visitor is most likely to want and ranks them. Production systems work in two stages: a fast retrieval model narrows millions of items to a few hundred candidates, then a ranking model sorts them using richer features such as recent behavior, context and item attributes. The output appears as related, alternative or personalized blocks.

How much data do we need for a recommender?

As a rule of thumb, a learned model starts to beat a popularity or co-visitation baseline once you have thousands of active users and hundreds of thousands of logged interactions. Below that, we start with simple methods and content-based features, and move to deep models as events accumulate. We test this on your data with offline metrics before building anything heavy.

Do we need TikTok-scale infrastructure?

No. Systems such as ByteDance's Monolith exist because of hundreds of millions of users. A shop with a million users and 200,000 items has an embedding table of about 0.3 GB and trains in minutes on one GPU. We size hardware to your numbers and share the estimates, and the deep dive on this page shows the math.

Recommended stack

Works well with Recommendation Engine

Services from other practices that serve the same business goals. Combine them in one project brief.

  • AI agents & automation · Custom build

    RAG & GraphRAG Assistants

    Shared goal: Convert more visitors · Automate with AI

    3hosting modes for residency
  • Analytics & CRO · Implementation

    Product & End-to-End Analytics

    Shared goal: Convert more visitors

    10core metrics defined
  • Technical SEO · Implementation

    Automated Internal Linking

    Shared goal: Convert more visitors

    4link module types deployed

More in Data & machine learning

All Data & machine learning services →
Practice:

Suggested starting points

Service comparison

Full matrix →