🚨Introducing xai‑org/x‑algorithm, the algorithm powering X’s “For You” feed 🤓💡
New Open-Source Project:
The xai‑org/x-algorithm GitHub repo is an open-source implementation of the algorithm behind X’s (formerly Twitter) “For You” feed. Explore it here:
github.com/xai-org/x-algorit…
What is it?
It’s a collection of components and logic for retrieving, scoring, and ranking posts that appear in each user’s personalized timeline.
🧠 Core Architecture
The system integrates two main content sources:
🔸 Thunder: posts from followed accounts.
🔸 Phoenix: discovered content via ML models.
These are combined and ranked using a Grok based transformer model.
🔍 Content Processing Pipeline
The algorithm follows a structured multi step workflow:
🔸 User context hydration.
🔸 Candidate filtering & enrichment.
🔸 Predictive scoring.
🔸 Best result selection.
🔸 Post selection filtering.
This ensures a highly relevant, personalized feed.
Leveraging Grok Models
The scoring engine uses a transformer adapted from Grok‑1 (xAI’s AI model) to estimate engagement probabilities like likes, replies, or clicks.
Key Components
Highlights from the repo include:
🔸 home mixer: orchestration layer.
🔸 candidate pipeline: filtering & ranking stages.
🔸 phoenix: out-of-network content retrieval.
These modules form the full recommendation workflow.
📜 Open Licensing
Published under Apache‑2.0, making it accessible for exploration, contribution, and reuse in research or engineering projects.
This open-source effort allows the community to:
🔸 Study a production-scale recommendation algorithm.
🔸 Contribute improvements externally.
🔸 Reuse components in personalized content projects.
xai‑org/x-algorithm is a major step toward transparency and collaboration in social media recommendation systems, helping the community understand and enhance feed personalization at scale.
#xAI #OpenSource #AI #MachineLearning #RecommendationSystems #FeedAlgorithm #GrokAI #Personalization #SocialMediaTech #DataScience #TechTransparency #AIResearch #MLEngineering #ForYouFeed #XPlatform
We have open-sourced our new 𝕏 algorithm, powered by the same transformer architecture as xAI's Grok model.
Check it out here:
github.com/xai-org/x-algorit…