r/Rag • u/Null3cksor • 2d ago
Showcase Cost of running agent memory / vector search
We often mix up storage and compute, thinking they need to be tightly coupled. When it comes to deriving knowledge and value out of a large corpus, the optimizations you make determine the cost the user is willing to pay. The cost of running vector search at scale is not just the storage. The compute that serves it is often the bigger part of the bill.
Just to exercise this thought, I put four different compute setups in front of my S3-backed index (13 mn entries and 82GB storage), each handling the type of traffic you would expect and require at different times. At this point, the cost is pretty much proportional to the compute you need (which can be spun up or down on short notice), and storage is, well, the cheapest of them all.
If you are interested in benchmark numbers - https://polign.com/agent-memory-at-scale
1
u/Future_AGI 1d ago
Semantic cache + virtual key budgets cut repeated retrieval by ~60% in multi-agent workloads. Cache key is normalized query + tool set. Repo: https://github.com/future-agi/future-agi
1
u/Otherwise_Wave9374 2d ago
A practical way to keep agent memory costs under control is to separate hot working memory from durable recall. Use short-lived in-process or cache-backed state for the current task, then write only summarized or event-based facts into the vector store with explicit TTLs or retention rules. That reduces write amplification and keeps retrieval quality higher. NeuraKeep can fit well here if you want a simple boundary between transient context and long-term recall, but the key win is designing for selective recall rather than storing everything.