awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
twitter avatar

twitter/the-algorithm

0
View on GitHub↗
73,422 stars·13,278 forks·Scala·AGPL-3.0·12 viewsblog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm↗

The Algorithm

The algorithm is a distributed recommendation engine pipeline designed to construct and serve personalized content timelines. It functions as a multi-stage orchestration layer that aggregates candidate content from diverse social graphs and high-dimensional embedding spaces, processing user interaction data to deliver a unified, ranked experience.

The system utilizes a high-performance machine learning serving infrastructure to execute deep learning models that predict engagement probabilities in real-time. It distinguishes itself through a hybrid retrieval strategy that combines graph-traversal techniques for discovering content outside of a user's immediate network with vector-based similarity searches to identify relevant interests.

Beyond core ranking, the platform incorporates a post-ranking processing layer that applies heuristic filters to ensure content diversity, visibility preferences, and social quality safeguards. This architecture also supports multi-task learning to optimize relevance across various platform surfaces, including the integration of non-content items and personalized notifications.

Features

  • Candidate Sourcing Pipelines - Orchestrates multi-stage retrieval to aggregate potential content items from diverse social graphs and embedding spaces.
  • Content Ranking Models - Scores and orders content items using neural network models trained on interaction data to predict relevance.
  • Recommendation Engine Pipelines - Coordinates distributed pipelines for candidate generation, neural network ranking, and heuristic filtering to deliver personalized content.
  • Social Feed Ranking Algorithms - Ranks social media content using logistic regression models based on predicted engagement likelihood and network relevance.
  • Feed Composition Engines - Merges ranked primary content with secondary items like advertisements and recommendations to construct a final display timeline.
  • Personalized Feed Orchestrators - Blends diverse media types and social signals into a unified, ranked feed experience for end users.
  • Similarity Search Engines - Calculates geometric proximity between user and item representations in high-dimensional vector space to identify relevant content.
  • Model Inference and Serving - Deploys predictive models to score content relevance and user engagement probabilities in real-time.
  • Multi-Task Learning Models - Shares model architectures to predict multiple engagement signals simultaneously for optimized content relevance.
  • Embedding-Based Retrieval - Determines similarity between user and content vectors to identify relevant items outside of a user's immediate social network.
  • Graph-Based Content Discovery - Traverses social and interest-based network connections to surface content beyond a user's immediate circle.
  • Content Filtering Heuristics - Applies post-ranking constraints to filter content based on safety, diversity, and visibility requirements before final delivery.
  • Feed Filtering Heuristics - Enforces diversity, visibility preferences, and social quality safeguards through heuristics applied to ranked feeds.
  • Graph Traversal Strategies - Implements graph traversal logic to discover relevant content by navigating social and interaction relationships.
  • ML Serving - Powers high-performance infrastructure for deploying and serving machine learning models within a recommendation pipeline.
  • Personalized Notification Engines - Delivers personalized content recommendations via push notifications using multi-task learning models to predict user engagement.

Star history

Star history chart for twitter/the-algorithmStar history chart for twitter/the-algorithm

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to The Algorithm

Similar open-source projects, ranked by how many features they share with The Algorithm.
  • xai-org/x-algorithmxai-org avatar

    xai-org/x-algorithm

    15,579View on GitHub↗

    X-algorithm is a modular recommendation engine framework designed to orchestrate personalized content feeds. It functions as a machine learning ranking system that manages the end-to-end lifecycle of content delivery, from initial candidate retrieval to final display ordering. The system distinguishes itself through a multi-stage pipeline that integrates vector-based similarity search with transformer-based engagement prediction. By mapping user history and content features into high-dimensional embeddings, it performs rapid approximate nearest neighbor searches to identify relevant items. Th

    Rust
    View on GitHub↗15,579
  • twitter/the-algorithm-mltwitter avatar

    twitter/the-algorithm-ml

    10,545View on GitHub↗

    The algorithm-ml is a machine learning ranking engine designed to personalize content feeds by calculating relevance scores for items based on user interests and historical interaction data. It functions as a recommendation system that processes user behavior and item metadata to determine the optimal order of content for individual users. The system utilizes a multi-stage ranking architecture that filters large pools of candidate items into smaller sets before applying computationally expensive scoring models. It employs gradient-boosted decision tree ensembles to capture non-linear relation

    Python
    View on GitHub↗10,545
  • gorse-io/gorsegorse-io avatar

    gorse-io/gorse

    9,717View on GitHub↗

    Gorse is a personalized recommendation engine server and machine learning pipeline designed to suggest items to users based on their behavior and preferences. It operates as a distributed system that separates training, candidate generation, and serving nodes to support high-throughput workloads. The system utilizes a multi-stage recommendation pipeline to refine results through retrieval, scoring, and reranking. It generates personalized suggestions using collaborative filtering, matrix factorization, and item-to-item similarity models, while also providing non-personalized and fallback reco

    Gocollaborative-filteringgoknn
    View on GitHub↗9,717
  • datawhalechina/fun-recdatawhalechina avatar

    datawhalechina/fun-rec

    7,177View on GitHub↗

    fun-rec is a learning guide and framework for building personalized recommendation systems, covering everything from deep learning ranking to generative recommendation paradigms. It provides instructional content on constructing industrial-grade architectures that span offline data processing and real-time online serving. The project distinguishes itself by focusing on generative recommendation, treating the suggestion process as a sequence-to-sequence task using large language models and transformer models to generate item identifiers rather than traditional ranking lists. It also emphasizes

    Pythonalgorithm-engineeringdeep-learninginterview-questions
    View on GitHub↗7,177
See all 30 alternatives to The Algorithm→

Frequently asked questions

What does twitter/the-algorithm do?

The algorithm is a distributed recommendation engine pipeline designed to construct and serve personalized content timelines. It functions as a multi-stage orchestration layer that aggregates candidate content from diverse social graphs and high-dimensional embedding spaces, processing user interaction data to deliver a unified, ranked experience.

What are the main features of twitter/the-algorithm?

The main features of twitter/the-algorithm are: Candidate Sourcing Pipelines, Content Ranking Models, Recommendation Engine Pipelines, Social Feed Ranking Algorithms, Feed Composition Engines, Personalized Feed Orchestrators, Similarity Search Engines, Model Inference and Serving.

What are some open-source alternatives to twitter/the-algorithm?

Open-source alternatives to twitter/the-algorithm include: xai-org/x-algorithm — X-algorithm is a modular recommendation engine framework designed to orchestrate personalized content feeds. It… twitter/the-algorithm-ml — The algorithm-ml is a machine learning ranking engine designed to personalize content feeds by calculating relevance… gorse-io/gorse — Gorse is a personalized recommendation engine server and machine learning pipeline designed to suggest items to users… datawhalechina/fun-rec — fun-rec is a learning guide and framework for building personalized recommendation systems, covering everything from… skyzh/tiny-llm — tiny-llm is a large language model inference engine and transformer model implementation. It serves as a quantized… tensorflow/serving — TensorFlow Serving is a high-performance machine learning inference server designed to deploy TensorFlow models to…