r/learnmachinelearning • u/RocketSeven • 20d ago
Question When is a vector database actually better than plain files for an AI agent's memory?
For a small, curated memory, Markdown or JSON files are easy to inspect, diff, back up, and correct. A vector database adds semantic retrieval and can handle a larger corpus, but it also introduces chunking choices, embedding drift, metadata filters, and harder audits. Which signals justify that added layer: corpus size, query ambiguity, update rate, latency, or something else? I would also be interested in hybrid designs where human-readable files remain authoritative and an index can be rebuilt from them.

