惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园_首页
WordPress大学
WordPress大学
罗磊的独立博客
小众软件
小众软件
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
The Cloudflare Blog
GbyAI
GbyAI
C
Check Point Blog
腾讯CDC
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
博客园 - 聂微东
IT之家
IT之家
雷峰网
雷峰网
H
Help Net Security
博客园 - 叶小钗
美团技术团队
D
DataBreaches.Net

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace
GitHub - dbyter/sphere-embed: Visualize embeddings and LL...
ahmedhawas12 · 2026-05-10 · via Hacker News - Newest: "LLM"

Disclaimer: This project and documentation were mostly vibe coded with Claude. Proceed accordingly.

Interactive 3D visualization of OpenAI text embeddings. 1002 words across 15 domains are embedded with text-embedding-3-small, reduced to 3D via PCA + UMAP, and projected onto a sphere using UMAP's native spherical output metric.

Live at nofone.io/experiment/3dembed

Quick start

Option A — just run the frontend (data included)

data.json is committed to the repo, so you can visualize immediately without an API key or running any Python.

cd frontend
npm install
npm run dev
# → http://localhost:5173

Option B — generate your own embeddings

Use this if you want to change the word list, tweak UMAP parameters, or regenerate from scratch. Requires Python 3.11 and an OpenAI API key.

cd backend

# Add your OpenAI API key
echo "OPENAI_API_KEY=sk-..." > .env

# Embed 1002 words (~30s, costs <$0.001)
uv run python embed.py

# Reduce to sphere coordinates (~90s) and overwrite data.json
uv run python reduce.py
# → writes ../frontend/public/data.json

embed.py is idempotent — it skips words already in the database, so you can safely re-run it after adding new words. Re-run reduce.py anytime to regenerate coordinates without re-embedding.

Verify embeddings were stored:

sqlite3 embeddings.db "SELECT count(*) FROM embeddings"   # → 1002

How it works

1002 words × 15 categories
        ↓
OpenAI text-embedding-3-small  →  1536-dim vectors  (stored in SQLite)
        ↓
PCA  →  50 dims
        ↓
UMAP (output_metric="haversine")  →  (lat, lon) on S²
        ↓
Spherical → Cartesian  →  (x, y, z) on unit sphere
        ↓
React Three Fiber  →  interactive 3D visualization

Why haversine output? UMAP with output_metric="haversine" treats the output space as a 2-sphere (S²), embedding directly onto the sphere surface rather than flat 3D space. This avoids the clustering artifacts that come from L2-normalizing flat UMAP output (which maps all points to one hemisphere when UMAP output is all-positive).

Project structure

sphere-embed/
├── backend/                  # Python pipeline (uv)
│   ├── words.py              # 1002 words × 15 categories
│   ├── embed.py              # OpenAI → SQLite (multithreaded, idempotent)
│   ├── reduce.py             # PCA + UMAP → data.json
│   └── embeddings.db         # generated, gitignored
└── frontend/                 # Vite + React + TypeScript
    ├── src/
    │   ├── App.tsx
    │   ├── components/
    │   │   ├── Scene.tsx         # R3F Canvas + OrbitControls
    │   │   ├── SpherePoints.tsx  # InstancedMesh per category
    │   │   ├── WireframeSphere.tsx
    │   │   ├── Controls.tsx      # category toggles + search
    │   │   └── Tooltip.tsx
    │   └── hooks/
    │       └── useEmbeddingData.ts
    └── public/
        └── data.json             # pre-computed, committed to repo

Categories

Category Count
Animals 67
Biology 67
Chemistry 67
Physics 67
Mathematics 67
Philosophy 67
History 67
Politics 67
Business 67
Technology 67
Geography 67
Fashion 67
Food 66
Sports 66
Psychology 66

Tech stack

Layer Stack
Embedding OpenAI text-embedding-3-small
Dim reduction scikit-learn PCA + umap-learn
Storage SQLite
Visualization React + Vite + TypeScript
3D rendering React Three Fiber + Three.js
Python tooling uv