Towards AIblog

Your AI Agent Doesn’t Need a Vector Database

Tuesday, August 25, 2026AnubhavView original
Last Updated on August 25, 2026 by Editorial Team Author(s): Anubhav Originally published on Towards AI. A folder of text files and grep outscored the funded memory tools on their own benchmark. When to skip the vector database for agent memory, and the narrow case where you actually need one. The moment an agent needs memory, the reflex is a vector database. You install a store, embed the conversation history, and retrieve the top matches on every turn. It is the default answer most engineering teams reach for, and for a conversational agent, it is usually the wrong one. After the lead-in, the article argues that using a vector database for “memory-as-retrieval” often fails because it can’t naturally handle time and state changes, leading to staleness and contradictions, while also adding cost and latency from embedding and repeated retrieval loops. It then highlights “dumb baselines” that outperform complex memory products on the LoCoMo benchmark—most notably a simple agent whose memory is just a folder of plain text files queried with tools like grep—explaining that pretrained language models are better at driving familiar filesystem/query operations than bespoke memory APIs or proprietary graph queries. The piece describes how memory is better thought of as a continuous write/manage/read loop where the model decides what to store and recall, and shows that the filesystem approach can be implemented with minimal code. Finally, it clarifies that vector databases aren’t dismissed outright; they are warranted only when the application truly requires out-of-context retrieval over massive corpora, relational multi-hop/temporal reasoning, or centralized structured storage with access control across many agents. The proposed builder rule is to benchmark against full-context and filesystem-plus-text-matching baselines first, and only adopt paid/vector solutions when they beat both by a meaningful margin. Read the full blog for free on Medium. Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor. Published via Towards AI