All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

X's For You Feed Algorithm: Open-Source Recommendation System Using Grok-Based Transformer

By

grainier

4mo ago· 10 min readenCode

Summary

This article describes the open-source algorithm powering X's "For You" feed recommendation system. The algorithm combines in-network content from followed accounts with out-of-network content discovered through machine learning retrieval, then ranks everything using a Grok-based transformer model adapted from xAI's Grok-1 release. The system retrieves posts from two sources: "Thunder" for in-network content and "Phoenix" for out-of-network content, with the goal of providing personalized content recommendations.

Key quotes

· 4 pulled
This repository contains the core recommendation system powering the 'For You' feed on X.
It combines in-network content (from accounts you follow) with out-of-network content (discovered through ML-based retrieval) and ranks everything using a Grok-based transformer model.
The transformer implementation is ported from the Grok-1 open source release by xAI, adapted for recommendation system use cases.
The For You feed algorithm retrieves, ranks, and filters posts from two sources: In-Network (Thunder): Posts from accounts you follow, Out-of-Network (Phoenix): Posts discovered through ML-based retrieval.
Snippet from the RSS feed
Algorithm powering the For You feed on X. Contribute to xai-org/x-algorithm development by creating an account on GitHub.

You might also wanna read