ContextGraph Lab: HNSW Formulas, Token Model & Tariffs
Mem0VectorTCO is published by ContextGraph Lab, an independent engineering desk modeling long-term AI agent memory RAM, vector quantization, and LLM token economics.
1. HNSW Byte-Level RAM & Quantization Model
Vector RAM calculates (dim * bytes_per_scalar + M * 8 + payload_overhead) * vectors * merge_headroom. Scalar int8 reduces 1536d vectors from 6,144 bytes to 1,536 bytes in RAM while keeping fp32 originals on NVMe for two-stage candidate rescoring.
2. Multi-Turn Prompt-Token & Extraction Budget Equations
Full sliding-window chat replay grows quadratically at N*(N+1)/2 * 185 tokens per session, whereas Mem0 Top-8 recall plus a 3-turn tail remains flat at ~1,355 tokens/turn. Async extraction workers route ADD/UPDATE/DELETE prompts to Xiaomi MiMo at $0.10/1M input and $0.30/1M output.
3. Verified Public Infrastructure & API Tariffs (2026-10-19)
Vultr High Frequency Compute tiers ($24/mo 4 GB through $192/mo 32 GB) and Xiaomi MiMo OpenAI-compatible extraction rates were verified against public pricing pages on 2026-10-19.
Public Vector Compute & Extraction Tariff Ledger (2026-10-19) — Lab Baseline Ledger
| Provider & Tier | Hardware / API Spec | Input / Entry | Output / Renewal | Billing Model | Memory Workload Fit | Link |
|---|---|---|---|---|---|---|
| Vultr High Frequency 4 GB — HF 4 GB (2 vCPU 3.8 GHz / 4 GB RAM / 128 GB NVMe) | 2 vCPU (High Freq) · 4 GB RAM · 128 GB NVMe | $24.00/mo | $24.00/mo | Hourly / Monthly Flat NVMe | 50k-250k facts · Qdrant int8 or pgvector · Single-agent MCP memory | Open Vultr HF |
| Vultr High Frequency 8 GB — HF 8 GB (3 vCPU 3.8 GHz / 8 GB RAM / 256 GB NVMe) | 3 vCPU (High Freq) · 8 GB RAM · 256 GB NVMe | $48.00/mo | $48.00/mo | Hourly / Monthly Flat NVMe | 1M-2.5M vectors (1536d int8) · Production SaaS Mem0 + Celery worker | Open Vultr HF |
| Vultr High Frequency 16 GB — HF 16 GB (4 vCPU 3.8 GHz / 16 GB RAM / 512 GB NVMe) | 4 vCPU (High Freq) · 16 GB RAM · 512 GB NVMe | $96.00/mo | $96.00/mo | Hourly / Monthly Flat NVMe | 5M+ vectors (Qdrant int8/mmap) or 2M pgvector HNSW + Neo4j graph | Open Vultr HF |
| Vultr High Frequency 32 GB — HF 32 GB (8 vCPU 3.8 GHz / 32 GB RAM / 1 TB NVMe) | 8 vCPU (High Freq) · 32 GB RAM · 1 TB NVMe | $192.00/mo | $192.00/mo | Hourly / Monthly Flat NVMe | 10M+ multi-tenant sharded vectors · Zep Graphiti + Neo4j heap | Open Vultr HF |
| Xiaomi MiMo Fact Extractor API — OpenAI-Compatible Async Fact Extraction & Deduplication Tier | Low-Latency JSON Mode · Fact Extract + Update/Delete Ops | $0.10/1M | $0.30/1M | Per 1M Input / Output Tokens | Async Celery extraction worker · Cuts Mem0 add() cost 85%+ vs frontier | Open Xiaomi MiMo |
Tariffs verified 2026-10-19 by ContextGraph Lab. Vultr High Frequency nodes provide 3.8 GHz+ vCPUs and local NVMe for sub-18ms HNSW traversal and fp32 rescoring; Xiaomi MiMo offloads background fact extraction at $0.10/1M input tokens.
- Vultr High Frequency Compute NVMe — High Frequency NVMe instances ($24/mo 4 GB, $48/mo 8 GB, $96/mo 16 GB, $192/mo 32 GB) verified 2026-10-19.
- Xiaomi MiMo API Platform — OpenAI-compatible endpoint pricing for async memory fact extraction and deduplication workers verified 2026-10-19.
- Mem0 Open-Source & Cloud Reference — Mem0 vector_store (Qdrant/pgvector), graph_store (Neo4j), and Mem0 Cloud tier thresholds verified 2026-10-19.