Add OpenClaw MEMORY.md
Browse files- openclaw/MEMORY.md +36 -0
openclaw/MEMORY.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MEMORY.md — GraphRAG Agent Knowledge Base
|
| 2 |
+
|
| 3 |
+
## Learned Facts
|
| 4 |
+
|
| 5 |
+
### GraphRAG Performance Characteristics
|
| 6 |
+
- GraphRAG achieves +21% F1 improvement over baseline RAG on bridge-type questions (HotpotQA)
|
| 7 |
+
- GraphRAG uses ~2.5x more tokens per query than baseline RAG
|
| 8 |
+
- Adaptive routing eliminates token overhead for simple queries (complexity < 0.6)
|
| 9 |
+
- Schema-bounded extraction reduces entity extraction cost by ~90% vs unconstrained
|
| 10 |
+
- Multi-hop traversal (2 hops) is the sweet spot — 3+ hops adds noise without proportional accuracy gain
|
| 11 |
+
|
| 12 |
+
### Provider Performance Notes
|
| 13 |
+
- Claude Sonnet 4: Best at structured entity extraction (JSON mode via tool_use)
|
| 14 |
+
- GPT-4o-mini: Best cost/quality ratio for answer generation
|
| 15 |
+
- Gemini 2.0 Flash: Fastest response times, good for keyword extraction
|
| 16 |
+
- Ollama llama3.2: Acceptable quality for entity extraction, zero cost
|
| 17 |
+
- Groq llama-3.3-70b: Near-cloud quality at very low latency (LPU hardware)
|
| 18 |
+
- DeepSeek R1: Excellent reasoning quality but slower
|
| 19 |
+
|
| 20 |
+
### TigerGraph Best Practices
|
| 21 |
+
- Batch upsert limit: 10,000 vertices per call on free tier
|
| 22 |
+
- GSQL query compilation: 30-120 seconds (install once, run many times)
|
| 23 |
+
- Vector search is brute-force cosine similarity on free tier (no HNSW index)
|
| 24 |
+
- Entity deduplication via hash(name.lower() + type.lower()) is essential
|
| 25 |
+
|
| 26 |
+
### HotpotQA Dataset Notes
|
| 27 |
+
- Bridge questions: require connecting information across 2 documents
|
| 28 |
+
- Comparison questions: require comparing attributes of 2 entities
|
| 29 |
+
- Supporting facts: gold standard for context evaluation
|
| 30 |
+
- Distractor setting: 8 distractor passages + 2 relevant passages per question
|
| 31 |
+
|
| 32 |
+
## User Preferences
|
| 33 |
+
- Prefer concise answers with explicit evidence
|
| 34 |
+
- Show graph reasoning paths for complex queries
|
| 35 |
+
- Always display token counts and costs
|
| 36 |
+
- Default to adaptive routing enabled
|