Memory Presets
Single-Agent 50k Memories on 4 GB High-Frequency NVMe
Co-locate Qdrant int8, Redis, FastAPI Mem0 server, and a 2-worker Celery extractor cleanly inside a $24/mo 4 GB Vultr High Frequency node.
1.18 GB Peak RAM · 1.2 GB NVMe · <10 ms HNSW Recall · $24/mo
Packing Qdrant, Redis, and Mem0 Into 4 GB RAM
For solo assistants or internal DevOps copilots storing 50,000 facts, vector memory itself occupies under 120 MB when int8 scalar quantization is active. Most RAM is consumed by Python worker processes and Linux page cache, leaving over 2.6 GB of headroom on a 4 GB node.
Zero-Downtime Upgrade Path
Pin Qdrant storage to a named Docker volume on NVMe and route extraction calls to Xiaomi MiMo via OpenAI-compatible env vars so scaling to 500k memories requires only a vertical snapshot resize.
Measured Thresholds & Vector Stack Parameters
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| Qdrant Quantization | scalar int8 (always_ram: true) | 50k x 1536d vectors use ~95 MB RAM instead of 380 MB |
| HNSW Graph Degree | M=16, ef_construct=128 | Maintains >98% recall@10 with minimal pointer overhead |
| Celery Extractor Workers | 2 threads (Xiaomi MiMo) | Processes 200+ daily sessions without blocking FastAPI |
| Host Match | Vultr High Frequency 4 GB | 3.8 GHz vCPU + 128 GB NVMe keeps p95 search under 10 ms |