Settings

Theme

Show HN: Interactive demo of the X "For You" algorithm (runs in browser)

prabal.ca

4 points by prabal97 2 months ago · 1 comment · 1 min read

Reader

X-AI recently open sourced their new recommendation algorithm.

I wanted to see exactly how the X "For You" algorithm decides whether to recommend your tweet or not, so I built this 'playable' CRT-styled simulator that runs a simpler version of X's recommendation pipeline right in your browser.

It's a "playable documentary" that allows you to type raw text and watch it physically travel through tokenization, embedding, safety filtering, and final ranking, all based on the X-AI reference docs.

Under the hood it's running real local ML inference (a tiny embedding model using Transformers.js) to generate embeddings and score content on the fly - all locally on your machine.

Would love some feedback!

rabbitlord 2 months ago

Perhaps need a little bit performance improvement? I am using Firefox and the loading is pretty slow.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection