Add typedMemory, assistantMemory, smartFilter, dynamicRetrieval, schema, index, integration guide
Browse files- FILE_INDEX.md +22 -0
FILE_INDEX.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// FILE LISTING - All files are available in sandbox
|
| 2 |
+
// Full detailed source code with extensive comments was provided in the chat.
|
| 3 |
+
// This file contains pointers to help you find everything.
|
| 4 |
+
|
| 5 |
+
// The complete implementation lives in these locations:
|
| 6 |
+
// 1. HF Sandbox: https://huggingface.co/spaces/loudiman/sandbox-cbb9aab0
|
| 7 |
+
// Path: /app/memory-improvements/src/
|
| 8 |
+
// 2. This repo: individual files uploaded above
|
| 9 |
+
// 3. Full source code was pasted in the chat messages
|
| 10 |
+
|
| 11 |
+
// FILES:
|
| 12 |
+
// src/types.ts - Type definitions (MemoryRecord, MemoryConfig, etc.)
|
| 13 |
+
// src/deduplication.ts - Mem0-style ADD/UPDATE/NOOP deduplication
|
| 14 |
+
// src/memoryDecay.ts - MemoryOS heat-based decay & eviction
|
| 15 |
+
// src/typedMemory.ts - ENGRAM episodic/semantic/procedural router
|
| 16 |
+
// src/assistantMemory.ts - Store AI replies as memories
|
| 17 |
+
// src/smartFilter.ts - Only store declarative/factual content
|
| 18 |
+
// src/dynamicRetrieval.ts - Adaptive top-k, threshold, type filtering
|
| 19 |
+
// src/schema.ts - SQLite migration script
|
| 20 |
+
// src/index.ts - ImprovedMemoryService (main entry point)
|
| 21 |
+
// src/integrationGuide.ts - How to plug into your existing codebase
|
| 22 |
+
// tests/demo.py - Python demo that validates all logic
|