26 lines
874 B
Python
26 lines
874 B
Python
"""
|
|
Aetheel Memory System
|
|
=====================
|
|
Hybrid search memory with SQLite + markdown + local embeddings.
|
|
|
|
Inspired by OpenClaw's memory architecture (src/memory/):
|
|
• Identity files: SOUL.md, USER.md, MEMORY.md
|
|
• SQLite storage: chunks, FTS5, vector similarity
|
|
• Hybrid search: vector (0.7) + BM25 keyword (0.3)
|
|
• Local embeddings: fastembed ONNX (384-dim, zero API calls)
|
|
• File watching: auto re-index on workspace changes
|
|
• Session logs: daily/ conversation transcripts
|
|
|
|
Usage:
|
|
from memory import MemoryManager
|
|
|
|
manager = MemoryManager(workspace_dir="~/.aetheel/workspace")
|
|
await manager.sync()
|
|
results = await manager.search("what are my preferences?")
|
|
"""
|
|
|
|
from memory.manager import MemoryManager
|
|
from memory.types import MemorySearchResult, MemorySource
|
|
|
|
__all__ = ["MemoryManager", "MemorySearchResult", "MemorySource"]
|