登录 注册

x-algorithm

去点 Star
教育与学习
34,197
Stars
5,512
Forks
322
Watchers
167
Open Issues
Apache-2.0
许可证
Rust
语言
2026-01-19
创建时间
2026-11-12
最近更新

项目能做什么

驱动 X 平台“为您推荐(For You)”信息流的推荐算法核心代码。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# X For You Feed Algorithm

This repository contains the core code that determines which posts a viewer sees in the **For You** feed on X. It combines in-network content (from accounts the viewer follows) with out-of-network content (discovered through ML-based retrieval and other mechanisms), filters content based on a variety of inputs, and ranks posts using a transformer model.

## Table of Contents

- [Notable Updates](#notable-updates)
  - [October 26th, 2026](#october-26th-2026)
  - [October 13th, 2026](#october-13th-2026)
  - [October 8th, 2026](#october-8th-2026)
  - [September 18th, 2026](#september-18th-2026)
  - [August 14th, 2026](#august-14th-2026)
  - [August 13th, 2026](#august-13th-2026)
- [Overview](#overview)
- [System Architecture](#system-architecture)
  - [Request Path](#request-path)
  - [Labeling Path](#labeling-path)
- [Components](#components)
- [How It Works](#how-it-works)
  - [Scoring and Ranking](#scoring-and-ranking)
  - [Filtering](#filtering)
- [Experiments and Configuration](#experiments-and-configuration)
- [What's not in this repo?](#whats-not-in-this-repo)
- [Under the Hood Label Transparency Tool](#under-the-hood-label-transparency-tool)
- [Key Design Decisions](#key-design-decisions)
- [License](#license)

---



## Notable Updates

### October 26th, 2026

- **Brazil 2026 Elections filter removed.** With the 2026 Brazilian elections over, we have removed `Brazil2026ElectionFilter` from For You. Posts from the accounts it covered are no longer filtered out because of it. See the [August 14th, 2026](#august-14th-2026) update for what the filter did.

### October 13th, 2026

- ***Retrieval trained to surface posts people read all the way through.*** [Phoenix retrieval](phoenix/xrex/models/recsys_two_tower_model.py) is now also trained to surface posts that people read all the way through.

### October 8th, 2026

- ***Ranking predicts time spent much better.*** The [Phoenix ranking model](phoenix/xrex/models/recsys_model.py) now does a better job of estimating how long you'll spend on each post: see the [code](phoenix/xrex/models/loss_recsys.py).

### September 18th, 2026

- **[Under the Hood](#under-the-hood-label-transparency-tool).** Reports now include information about whether one's account or posts have had their visibility limited because of required compliance with law(s). For example, you'll be able to see if any of your posts were withheld from showing in a country following a legal demand — and which country.

### August 14th, 2026

Notable updates:

- **How weights work.** There's a common misconception about how weights related to actions (e.g. Like, Share, Block, Report, etc) work in ranking. The weights scale the predicted probabilities of such actions (or predicted continuous values, e.g. dwell time) — they do *not* scale the raw engagement counts, so e.g. it'd be incorrect to see that a report has 468 times higher weight than a like and conclude that e.g. "1 report cancels out 468 likes". The wei
阅读完整原文

项目深度分析 规则生成(AI 未配置)

综合评分 42.0 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。

面向细分需求的二次开发产品

产品构想基于 x-algorithm 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2026-01-19,近 30 天仍在推送
社区活跃Star 34,197 / Fork 5,512 / Issue 167(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。