A vector DB is not LLM memory: long thread maps write/read paths, failure modes and evals
techNmak · x · 2026-10-16
techNmak published a detailed thread debunking the idea that a vector database equals an LLM memory system — it's just one possible component. Persistent memory requires storage, retrieval, state management, context selection, and evaluation.
Key structure:
- Write path: Extract → Validate → Reconcile → Persist. Records need identity, scope, provenance, timestamps, and versioning; updates must preserve relevant history without keeping conflicting facts as equally current.
- Read path: Authorize → Lookup/Search → Select/Rank → Assemble Context → Generate. Retrieval can use SQL, keyword, vector similarity, hybrid, or graph traversal; similarity scores alone don't establish correctness, freshness, or authorization.
The thread distinguishes mechanisms often conflated as "LLM memory": model weights, active context, application-managed persistent memory, and KV cache (which reduces computation, not storage needs). RAG and fine-tuning don't automatically handle memory updates, conflict resolution, or retention policies.
The accompanying infographic covers memory lifecycles, semantic/episodic/procedural memory roles, context budgeting, stage-by-stage failure tracing (never saved, saved but not found, found but excluded, misused), and evaluation beyond retrieval accuracy — testing recall, updates, temporal ordering, cross-session consistency, access isolation, and abstention.
More from coding & agent
- Dev builds MCP server that lets AI agents outsource phone calls to real humans — Many_Benefit_3393 · 2026-10-16
- Mergelock: open-source MCP server catches semantic merge conflicts git misses across parallel AI agents — ksadayamuthu · 2026-10-16
- OpenUI 1.0 launches open source, turning agent text answers into live interactive UIs — heyshrutimishra · 2026-10-16
- 10 GitHub repos to see what your AI agent really did, from Langfuse to claude-code-log — victor_explore · 2026-10-16
- Mosaic: multi-session agentic RL with hierarchical advantage estimation — LARK-Lab · 2026-10-16
- Recursive Environment Scaling tanks six models' success rates by 57–77 points — Lingxiao Jing · 2026-10-16