AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證An interactive 2D map of the top 10,000 most-starred GitHub repositories, positioned by semantic similarity of their READMEs.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
An interactive 2D map of the top 10,000 most-starred GitHub repositories, positioned by semantic similarity of their READMEs.
The pipeline enumerates candidates via BigQuery, fetches repo metadata via GraphQL, embeds READMEs with Cohere, reduces to 2D with UMAP, generates topic labels with Claude, and renders an interactive HTML visualization with DataMapPlot.
Each stage is a standalone script. Run them in order:檢視完整 README ↗An interactive 2D map of the top 10,000 most-starred GitHub repositories, positioned by semantic similarity of their READMEs.
The pipeline enumerates candidates via BigQuery, fetches repo metadata via GraphQL, embeds READMEs with Cohere, reduces to 2D with UMAP, generates topic labels with Claude, and renders an interactive HTML visualization with DataMapPlot.
Each stage is a standalone script. Run them in order:
uv sync # Install from lockfile
uv sync --extra bigquery # (optional) for pipeline/00_enumerate_repos.py
# Or without uv: pip install -e . / pip install -e '.[bigquery]'
python pipeline/00_enumerate_repos.py # BigQuery → data/candidates.csv (optional, see below)
python pipeline/01_fetch_repos.py # GraphQL direct lookups → repos.parquet
python pipeline/02_select_top_repos.py # Trim repos.parquet to top N by stars
python pipeline/03_summarize_readmes.py # Summarize READMEs via Claude Haiku → repos.parquet
python pipeline/04_embed_readmes.py # Embed READMEs via Cohere → embeddings.npz
python pipeline/05_reduce_umap.py # UMAP 512D → 2D → umap_coords.npz
python pipeline/06_label_topics.py # Hierarchical topic labels via Toponymy + Claude → labels.parquet
python pipeline/07_visualize.py # Interactive HTML map → github_map.html
Two-phase fetch approach: Step 00 queries GH Archive on BigQuery for repos with significant recent star activity, producing a generous candidate list (~25K). Step 01 then looks up each candidate via repository(owner:, name:) GraphQL queries (batched 50 per request), sorts by stars, and keeps the top 10K. This avoids the Search API's 1,000-result cap and non-deterministic ordering.
Fallback for users without GCP: A candidates.csv is committed to the repo root. If data/candidates.csv doesn't exist, pipeline/01_fetch_repos.py copies from the committed file automatically. Most contributors can skip step 00 entirely.
Data flows through data/ (gitignored):
candidates.csv ──> repos.parquet ──┬──> embeddings.npz ──> umap_coords.npz ──> labels.parquet
│ │
└────────────────────────────────────────────────┴──> github_map.html
Set in .env:
| Variable | Used by | Purpose |
|---|---|---|
GITHUB_TOKEN | pipeline/01_fetch_repos.py | GitHub API authentication |
CO_API_KEY | pipeline/04_embed_readmes.py, pipeline/06_label_topics.py | Cohere embeddings |
ANTHROPIC_API_KEY | pipeline/03_summarize_readmes.py, pipeline/06_label_topics.py | Claude summarization & topic naming |
GCP_PROJECT | pipeline/00_enumerate_repos.py | (optional) Google Cloud project ID for BigQuery |
The output github_map.html includes:
methodology.html) linked from the nav bar| Component | Choice |
|---|---|
| Repo enumeration | BigQuery (GH Archive) |
| Repo metadata | GitHub GraphQL API (repository() direct lookups, batched 50/request) |
| Embeddings | Cohere embed-v4.0 (512-dim) |
| Dimensionality reduction | UMAP (n_neighbors=15, min_dist=0.05, cosine) 512D → 2D |
| Topic clustering | Toponymy (hierarchical density-based) |
| Topic naming | Claude Sonnet |
| README summarization | Claude Haiku |
| Visualization | DataMapPlot |
make install # Install all deps including dev extras
make lint # Run ruff check + format check
make format # Auto-format with ruff
make test # Run pytest suite
Pre-commit hooks run ruff on every commit. Set up with pre-commit install.
CI (GitHub Actions) runs lint and tests on every push and PR.
Python ≥ 3.10. Key dependencies: cohere, umap-learn, toponymy, datamapplot, anthropic, pandas, numpy.
See pyproject.toml for the full list.