Interactive Knowledge Graph for ClawMemory with natural language queries
ClawGraph solves the classic memory system pain point: "I remember it but can't find it"
It transforms ClawMemory into an interactive Knowledge Graph showing relationships between data (project ↔ deadline ↔ client ↔ task ↔ expense from ClawReceipt etc.) + natural language queries (e.g. "Which projects have deadlines this month with Thai clients?")
Automatically builds on ClawSelfImprove (the graph gets smarter with every feedback)
- Local Graph Database: Built on ClawMemory (SQLite + vector embeddings)
- Interactive Visualization: Node-edge graph with zoom, drag, click functionality
- Natural Language Queries: Automatic translation of Thai/English queries to graph queries
- Self-Improving: Learns from user feedback patterns via ClawSelfImprove integration
- Privacy First: 100% local execution, zero cost, no data leaves your machine
Type Thai query → Instant interactive graph with highlighted relationship paths
- Every event (task, receipt, reminder) → Automatically create nodes + edges
- Example: "Project X" → "deadline March 15" → "client ABC" → "expense 4,200 THB"
- Uses NetworkX + optional local Neo4j (or SQLite with recursive CTE)
- Vector embeddings from ClawMemory connect semantic edges (e.g. "similar to previous project")
- Type: "Summarize projects nearing deadline related to Thai clients"
- LLM translates → Graph query → Retrieve nodes/edges → Display + visual graph
- Interactive graph (zoom, drag, click nodes)
- Highlight paths (e.g. "client → project → expense")
- Export to PNG or Mermaid code
- Tell it "This is important" or "This is irrelevant" → ClawSelfImprove adjusts edge weights
- Next time prioritizes relevant nodes automatically
- Core Graph: NetworkX (Python) + PyVis (interactive HTML generation)
- Query Engine: Llama3/Ollama (natural language → graph query translation)
- Storage: Direct integration with ClawMemory (SQLite + Chroma vector DB)
- Dashboard: Extends ClawMemory UI (Next.js) or standalone web view
- Integration: ClawFlow (install), ClawSelfImprove (feedback learning), ClawReceipt (expense edge pull)
- Install ClawFlow
- Run
clawflow install openkrab/claw-graph - Configure in ClawMemory dashboard
- Build Graph:
python scripts/build_graph.py - Query: Enter natural language in the UI
- Visualize: View the interactive graph
See examples/queries-thai.md for sample Thai queries.
Contributions welcome! Please see our issues for current tasks.
MIT
