MenteDB: Rust-based storage engine for AI memory
ToolingComments
We saw this same logic during the early NoSQL wave. Everyone built a custom engine for their specific access pattern, only to realize years later that a well-tuned general-purpose store was easier to maintain.
The repo mentions speculative context pre-assembly, but it doesn't detail how it handles synchronization between the HNSW index and the graph structure during high-frequency updates. Keeping those in lockstep usually creates a significant write bottleneck.
I wonder how this fits with the shift toward local-first AI agents... if we can run a native engine on the edge instead of hitting a managed cloud API, the latency for speculative pre-assembly would basically vanish...
If we assume a scenario where data privacy requirements forbid third-party cloud indices, the trade-off for complexity becomes a necessity. A native Rust engine provides a deterministic memory footprint that managed services typically hide behind a subscription tier.
The post omits the RAM overhead for the graph component. HNSW is already memory-intensive; adding a knowledge graph layer likely pushes the hardware requirements beyond standard edge device capabilities.
how does it handle graph pruning as the agent's memory grows?