@@ -111,49 +111,75 @@ LOCAL_MODEL_PATH=/path/to/your/local/model
111111# --------------------------------------------
112112
113113# ============================================
114- # PERFORMANCE TIER (Auto-detected or Manual )
114+ # PERFORMANCE TIER (Manual Configuration Required )
115115# ============================================
116- # OpenMemory automatically detects your hardware and selects the optimal tier.
117- # You can override this by setting OM_TIER manually.
116+ # OpenMemory requires you to manually set the performance tier.
117+ # Set OM_TIER to one of: hybrid, fast, smart, or deep
118118#
119119# Available Tiers:
120120#
121+ # HYBRID - Keyword + Synthetic embeddings (256-dim) with BM25 ranking
122+ # • Recall: ~100% (exact keyword matching) • QPS: 800-1000 • RAM: 0.5GB/10k memories
123+ # • Best for: Exact searches, documentation, code search, personal knowledge
124+ # • Features: Exact phrase matching, BM25 scoring, n-gram matching, 100% accuracy
125+ # • Use when: You need guaranteed exact matches and keyword-based retrieval
126+ #
121127# FAST - Synthetic embeddings only (256-dim)
122128# • Recall: ~70-75% • QPS: 700-850 • RAM: 0.6GB/10k memories
123129# • Best for: Local apps, VS Code extensions, low-end hardware
124- # • Auto-selected : < 4 CPU cores or < 8GB RAM
130+ # • Use when : < 4 CPU cores or < 8GB RAM
125131#
126132# SMART - Hybrid embeddings (256-dim synthetic + 128-dim compressed semantic = 384-dim)
127133# • Recall: ~85% • QPS: 500-600 • RAM: 0.9GB/10k memories
128134# • Best for: Production servers, AI copilots, mid-range hardware
129- # • Auto-selected : 4-7 CPU cores and 8-15GB RAM
135+ # • Use when : 4-7 CPU cores and 8-15GB RAM
130136#
131137# DEEP - Full AI embeddings (1536-dim OpenAI/Gemini)
132138# • Recall: ~95-100% • QPS: 350-400 • RAM: 1.6GB/10k memories
133- # • Best for: Cloud deployments, high-accuracy systems, research
134- # • Auto-selected : 8+ CPU cores and 16+ GB RAM
139+ # • Best for: Cloud deployments, high-accuracy systems, semantic research
140+ # • Use when : 8+ CPU cores and 16+ GB RAM
135141#
136- # Leave commented to auto-detect, or set manually:
137- # OM_TIER=fast
138- # OM_TIER=smart
139- # OM_TIER=deep
140-
141- OM_MIN_SCORE = 0.3
142- OM_DECAY_LAMBDA = 0.02
142+ # REQUIRED: Set your tier (no auto-detection):
143+ OM_TIER = hybrid
143144
144- # Decay interval in minutes
145- # Testing: 0.5 (30s) for rapid benchmarks
146- # Development: 5 (5min) for realistic decay testing
147- # Production: 10 (10min) for optimal throughput (3% batch = less disk pressure)
148- # Recommended: 5-10 minutes to balance decay accuracy vs overhead
149- OM_DECAY_INTERVAL_MINUTES = 10
145+ # Keyword Matching Settings (HYBRID tier only)
146+ # Boost multiplier for keyword matches (default: 2.5)
147+ OM_KEYWORD_BOOST = 2.5
148+ # Minimum keyword length for matching (default: 3)
149+ OM_KEYWORD_MIN_LENGTH = 3
150150
151- # Decay ratio (percentage of memories to decay per run, 0.01-0.1)
152- # Lower = more stable variance, higher = faster decay propagation
153- OM_DECAY_RATIO = 0.03
151+ OM_MIN_SCORE = 0.3
154152
155- # Sleep between segment processing (ms) to avoid lock contention
156- OM_DECAY_SLEEP_MS = 200
153+ # ============================================
154+ # Smart Decay Settings (Time-Based Algorithm)
155+ # ============================================
156+ # Decay interval in minutes - how often the decay cycle runs
157+ # The new algorithm uses time-based decay with daily lambda rates (hot=0.005/day, warm=0.02/day, cold=0.05/day)
158+ # Unlike batch-based systems, running more frequently doesn't increase decay speed
159+ # Decay is calculated from: decay_factor = exp(-lambda * days_since_access / (salience + 0.1))
160+ #
161+ # Recommended intervals:
162+ # • Testing: 30 minutes (for rapid validation)
163+ # • Development: 60-120 minutes (balanced testing)
164+ # • Production: 120-180 minutes (optimal - captures meaningful decay deltas while minimizing overhead)
165+ #
166+ # At 2-3 hours: hot tier decays ~0.04-0.06%, warm ~0.16-0.24%, cold ~0.4-0.6% per cycle
167+ OM_DECAY_INTERVAL_MINUTES = 120
168+
169+ # Number of parallel decay worker threads (default: 3)
170+ OM_DECAY_THREADS = 3
171+ # Cold tier threshold - memories below this salience get fingerprinted (default: 0.25)
172+ OM_DECAY_COLD_THRESHOLD = 0.25
173+ # Reinforce memory salience when queried (default: true)
174+ OM_DECAY_REINFORCE_ON_QUERY = true
175+ # Enable regeneration of cold memories on query hits (default: true)
176+ OM_REGENERATION_ENABLED = true
177+ # Maximum vector dimensions (default: 1536)
178+ OM_MAX_VECTOR_DIM = 1536
179+ # Minimum vector dimensions for compression (default: 64)
180+ OM_MIN_VECTOR_DIM = 64
181+ # Number of summary compression layers 1-3 (default: 3)
182+ OM_SUMMARY_LAYERS = 3
157183
158184# Full Semantic Graph MVP Settings
159185# Use summary-only storage (≤300 chars, intelligent extraction)
0 commit comments