AGENT SKILL

recommender-architect

Architect-level recommendation systems — candidate generation and ranking architecture, collaborative versus content signals, cold start, evaluation with offline metrics versus online experiments, and the feedback loops that quietly narrow what users see. Use when a product must choose what to show.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
recommender-architect
license
MIT
metadata
{ "crusor-path": "ai-ml-architect/training-architect/recommender-architect", "crusor-domain": "ai-ml-architect", "crusor-origin": "original", "crusor-sources": "developers.google.com/machine-learning/recommendation; arxiv.org/abs/1906.00091; eugeneyan.com/writing/system-design-for-discovery", "crusor-triggers": "recommendation system, recommender, collaborative filtering, cold start, candidate generation, ranking model, personalized feed, two tower, recommend, recommendations, what to show", "crusor-verified-on": "2026-10-30" }
description
Architect-level recommendation systems — candidate generation and ranking architecture, collaborative versus content signals, cold start, evaluation with offline metrics versus online experiments, and the feedback loops that quietly narrow what users see. Use when a product must choose what to show.
compatibility
Two-tower retrieval, matrix factorisation, LightFM, vector search

03 SKILL.md 正文

Recommender Architect

A recommender is a retrieval problem plus a ranking problem plus a feedback problem. Treat the feedback problem last and you ship a filter bubble.

When to use

  • Feeds, search suggestions, "related items", personalised ranking.
  • Catalogue too large to show everything.
  • Engagement or conversion depends on ordering.

When NOT to use

  • The catalogue is small and a human-defined order already works.
  • You have no interaction data and no content metadata — start with rules.

Decision 1 — Pipeline

candidate generation (retrieve 100s)  → ranking (score 10s) → re-ranking/business rules → UI
  • Never rank the full corpus; two-stage is mandatory at scale.
  • Candidates from several sources: popularity, collaborative, content-similar, trending, recently viewed.
  • Ranking model sees user, item, context features; business rules (diversity, dedupe, policy, freshness) apply after scoring.

Decision 2 — Signals

Signal Note
implicit (clicks, dwell, purchases) abundant, noisy, position-biased
explicit (ratings, saves) sparse, biased to extremes
content metadata works for cold start
context (device, time, query) big lift, often ignored
  • Impression data is required to correct position bias — without it, the model learns to recommend what it already showed.
  • Weight actions by intent (purchase ≫ click ≫ view).

Decision 3 — Cold start

  • New items: content similarity plus exploration slot.
  • New users: popularity and contextual rules until enough signal.
  • Deliberate exploration for both; a deterministic top-1 for everyone is not a recommender.

Decision 4 — Evaluation

  • Offline: recall@k for candidates, nDCG/MAP for ranking, against held-out future interactions (time-based split).
  • Offline metrics are a filter; online A/B is the decision.
  • Track business metrics alongside engagement: conversion, retention, diversity, long-term satisfaction.
  • Guard against offline-online divergence caused by position bias in labels.

Decision 5 — Feedback loops and health

  • Popularity amplification: popular items get shown, get clicked, become more popular. Add diversity constraints and exploration.
  • Monitor catalogue coverage — what fraction of items ever get impressions.
  • Monitor for undesirable self-reinforcement (narrowing topical range).
  • Freshness and decay: recency-weighted interactions prevent stale models.

Decision 6 — Serving

  • Precompute candidates for heavy users, compute on demand for the tail.
  • Keep p95 latency budget for the whole pipeline; ranking models are usually the biggest cost.
  • Fallback path: popularity-based list if the model service fails.
  • Log features and scores for the served item — needed for debugging and retraining.

Failure modes at scale

  • Offline nDCG improved 5%, online revenue flat, shipped anyway.
  • No impression logging; the model learns position, not preference.
  • Cold-start items never recommended; new inventory invisible.
  • Same five items for every user; "personalisation" that is a global top-5.
  • Latency spikes to 900 ms and the UI silently falls back to recency.

Verification receipts

  1. Pipeline diagram with candidate sources and counts.
  2. Offline metrics on a time-based split, plus position-bias correction.
  3. A/B design with primary and guardrail metrics.
  4. Coverage and diversity report for the catalogue.
  5. Fallback path tested by failing the ranking service.

04 同仓库更多 Skills

SriAkhilSJ
SriAkhilSJ/PulseAIRepo

interaction-patterns-architect

Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

design-system-ops-architect

Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

design-handoff-architect

Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

content-microcopy-architect

Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

ui-ux-implementation-architect

Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

test-strategy-architect

Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.

★ 0