Memory Presets
Zep Graphiti & Mem0g + Neo4j Bi-Temporal Entity Graph
Pair vector similarity search with Neo4j bi-temporal entity-relationship graphs to track changing user preferences, org charts, and project states.
3.6 GB Neo4j Heap+Cache · Bi-Temporal Edges · Multi-Hop Recall
When Vector Search Alone Fails Temporal Contradictions
Pure vector similarity returns both "user works at Acme" and "user joined Globex" with high cosine scores. Bi-temporal graph edges in Zep Graphiti and Mem0g invalidate superseded facts with explicit timestamps so agents recall current ground truth.
Sizing Neo4j Memory Beside Qdrant
Always bound NEO4J_server_memory_heap_max__size and pagecache_size explicitly in Docker Compose; unbound Neo4j defaults starve Qdrant during graph batch ingestion.
Measured Thresholds & Vector Stack Parameters
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| Neo4j JVM Heap | 2 GB - 4 GB (-Xmx = -Xms) | Prevents stop-the-world GC pauses during Cypher traversals |
| Neo4j Page Cache | 45% of Graph RAM budget | Keeps entity relationship chains resident off-heap |
| Temporal Edge Properties | valid_from, invalid_at, expired_at | Preserves contradiction history without deleting audit trail |
| Host Match | Vultr High Frequency 16 GB or 32 GB | Co-locates Qdrant vector index and Neo4j Bolt port 7687 |