Final fixes: first-person gems, threshold 0.5, hidden context injection
- Changed gem format from third-person to first-person for better query matching - Lowered minRecallScore from 0.7 to 0.5 - Fixed context injection to use HTML comments (hidden from UI) - Updated all documentation with today's fixes
This commit is contained in:
14
README.md
14
README.md
@@ -2,7 +2,7 @@
|
||||
|
||||
**Project:** Gem extraction and memory recall system
|
||||
**Status:** ✅ Active & Verified
|
||||
**Location:** `~/.openclaw/workspace/.projects/true-recall-v2/`
|
||||
**Location:** `~/.openclaw/workspace/.local_projects/true-recall-v2/`
|
||||
**Last Updated:** 2026-02-25 12:04 CST
|
||||
|
||||
---
|
||||
@@ -44,6 +44,10 @@ curl -s http://<QDRANT_IP>:6333/collections | jq '.result.collections[].name'
|
||||
|-------|------------|-------------|
|
||||
| **Watcher stuck on old session** | Watcher only switched sessions when file deleted, old sessions persisted | ✅ Restarted service, now follows current session |
|
||||
| **Plugin capture 0 exchanges** | OpenClaw uses OpenAI content format (array of items), plugin expected string | ✅ Added `extractMessageText()` to extract text from `type: "text"` items |
|
||||
| **Gem ID collision** | Hash used non-existent fields (`conversation_id`, `turn_range`, `gem`) | ✅ Hash now uses `embedding_text_for_hash[:100]` |
|
||||
| **Meta-gems extracted** | Curator extracted from debug/tool output | ✅ Added SKIP_PATTERNS filter ("gems extracted", "✅", "🔍", etc.) + skip `role: "assistant"` |
|
||||
| **gems_tr pollution** | 5 meta-gems + 1 real gem | ✅ Cleaned, now 1 real gem only |
|
||||
| **First-person format** | Third person "User decided..." | ✅ Changed to "I decided..." for better query matching (score 0.746 vs 0.39) |
|
||||
|
||||
### Validation Results
|
||||
|
||||
@@ -55,8 +59,8 @@ After: parsed 17 user, 116 assistant messages, 9 exchanges ✅
|
||||
|
||||
**Watcher:**
|
||||
```
|
||||
Before: Watching old session (old session ID from Feb 24)
|
||||
After: Watching current session (current session ID from Feb 25) ✅
|
||||
Before: Watching old session (1737142a... from Feb 24)
|
||||
After: Watching current session (93dc32bf... from Feb 25) ✅
|
||||
```
|
||||
|
||||
---
|
||||
@@ -366,7 +370,7 @@ python3 clean_memories_tr.py --execute --limit 100
|
||||
### Core Project
|
||||
|
||||
```
|
||||
~/.openclaw/workspace/.projects/true-recall-v2/
|
||||
~/.openclaw/workspace/.local_projects/true-recall-v2/
|
||||
├── README.md # This file
|
||||
├── session.md # Detailed notes
|
||||
├── curator-prompt.md # Extraction prompt
|
||||
@@ -398,7 +402,7 @@ python3 clean_memories_tr.py --execute --limit 100
|
||||
|------|---------|
|
||||
| `/root/.openclaw/extensions/memory-qdrant/` | Plugin code |
|
||||
| `/root/.openclaw/openclaw.json` | Configuration |
|
||||
| `<SYSTEMD_PATH>/mem-qdrant-watcher.service` | Service file |
|
||||
| `/etc/systemd/system/mem-qdrant-watcher.service` | Service file |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user