// Project

Taste-cluster anime recommender

Rate what you have watched. It finds the separate tastes in your list and recommends for each one, instead of averaging you into a single blur.

29,311anime in the catalogue
5tastes at most per person
0.90cluster purity, vs 0.65 embeddings alone
+43%catalogue coverage over one vector
250 MBmemory, from 1,240 MB in Python

Try the idea

Tap a few titles you loved. The toy finds the separate tastes in your picks, recommends for each one, and then shows what a single averaged taste would have given you instead. Slide the threshold to make tastes stricter or looser.

Why not one vector

The first version averaged your seed titles into a single vector and returned its neighbours. Average Steins;Gate, K-On! and Frieren and the result sits in none of those three neighbourhoods. The product now is a different shape: find the separate tastes first, then rank for each on its own.

How it works

  • Representation. Every anime is a fine-tuned 768-dimension embedding plus an IDF-weighted tag vector. There are 2,953 tags, 17.8 per anime, and a script sorts each into a facet (genre, tone, story, characters, setting, themes) so that "based on a manga" does not count as a similarity.
  • Reactions. Loved counts 1.0, liked 0.6, dropped -0.5, disliked -0.8; okay counts as seen and nothing else. An imported list maps by rating.
  • Clustering. Complete-linkage agglomeration over 0.2 x semantic distance + 0.8 x tag distance, up to five tastes. On three hand-built test users this recovers the intended clusters with 0.90 purity, against 0.65 for embeddings alone. Average linkage lost about 0.15 purity because one generic anime bridged two tastes.
  • Ranking. Each candidate is scored against every taste and against the person's top favourites. The final score is 0.60 x best taste + 0.20 x best favourite + 0.10 x tag match + 0.10 x mood, minus a penalty for anything close to a dislike.
  • Selection. Slots go to tastes in proportion to the square root of their importance, filled by maximal marginal relevance, with one entry per franchise, at most three per airing year, and a reserved exploration slot for something outside every taste.
  • Explanations. Every recommendation says why, read from the same terms that ranked it: the two liked titles it is closest to, the tags it shares with the taste, and any tags it shares with what you disliked.

Measured, including where it loses

Evaluated on 2,000 held-out MyAnimeList users, ten recommendations each, over 21,555 titles:

methodNDCG@10hit ratecatalogue coverage
taste clusters0.1770.6590.068
one blended vector0.1670.6260.048
most popular0.0270.2260.002

With a full history clustering wins on every column and covers 43% more of the catalogue. With only 10 to 20 ratings the single vector recalls 3 to 4% more, because a taste built from one liked title gets slots an average would have spent on the mainstream. I kept the clustering for the coverage and the per-taste rows, and I say so. The harness also rewards co-watching: a good recommendation of a 2024 title is a guaranteed miss.

Around the engine

  • Go backend. Plain net/http, no framework. It replaced a Python FastAPI server that held about 1,240 MB in memory; the Go one sits at about 250 MB.
  • Data pipeline. When Jikan stopped serving anything but its cache, AniList replaced it: a full enrichment takes about 20 minutes instead of 8 to 10 hours, and a per-season query finally gives the catalogue a freshness feed.
  • React 19 front end. A recommendation home page: rate what you know, get one row per taste, a "because you loved X" row, and a reach outside your tastes. No account is needed.