Memory Presets
Xiaomi MiMo Async Fact Extraction & Deduplication Worker
Replace expensive frontier LLM extraction calls on every chat turn with Xiaomi MiMo OpenAI-compatible JSON workers for 85%+ lower extraction cost.
$0.10/1M Input · $9.40/mo at 2.5k Sessions/d · Structured JSON
Why Frontier Models Are Overkill for Fact Extraction
Every mem0.add() call triggers two LLM operations: extracting atomic facts from the conversation pair, then deciding whether to ADD, UPDATE, or DELETE overlapping memories. Using your primary reasoning model for this background bookkeeping doubles your monthly token bill.
Two-Model Split Architecture
Keep frontier reasoning exclusively on the user-facing response path while routing all asynchronous Celery extraction workers to Xiaomi MiMo at $0.10/1M input tokens.
Measured Thresholds & Vector Stack Parameters
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| LLM Base URL | https://api.xiaomimimo.com/v1 | Drop-in OpenAI SDK compatibility inside mem0-config.yaml |
| Temperature & Max Tokens | temperature: 0.0, max_tokens: 1200 | Deterministic ADD/UPDATE/DELETE JSON classification |
| Batch Queue Window | Flush every 2 turns or 15s idle | Cuts extraction API calls by 45% on rapid back-and-forth turns |
| Frontier Savings | ~$9.40/mo vs ~$240+/mo frontier | Eliminates hidden LLM tax on memory write paths |