Attemory: A Retrieval Engine Replacing Embeddings with Attention
langsfang · reddit · 2026-07-06
Developer langsfang released Attemory, an open-source retrieval engine that replaces traditional embedding-based nearest neighbor search by indexing raw text into reusable KV states. During retrieval, a local Qwen3.5 model performs attention computation over the indexed memory and the query, returning compact evidence like memory IDs, snippets, or file line ranges. The author argues that attention-based retrieval preserves token-level details lost in embeddings, achieves SOTA on long-memory and code benchmarks, and eliminates the need for stacking tricks like chunk tuning and re-ranking.
More from coding & agent
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- How Do You Catch Behavioral Regressions in LLM Agents Between Releases? — Beautiful_Belt_601 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11
- Run Firefox MCP on Android: Termux + ngrok tunnel tutorial — Nervous-Strain7544 · 2026-09-11