Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ๐ง Conversation Memory System
|
| 2 |
+
|
| 3 |
+
A self-contained, local-first conversation memory system that replaces the fraudulent [MemPalace](https://github.com/MemPalace/mempalace/issues/618) project with real working code.
|
| 4 |
+
|
| 5 |
+
## Why not MemPalace?
|
| 6 |
+
|
| 7 |
+
MemPalace is a **scam repository** โ no actual source code, fake 22K+ stars, empty PyPI package. This system is the real deal: SQLite + sentence-transformers, zero external API dependencies.
|
| 8 |
+
|
| 9 |
+
## Features
|
| 10 |
+
|
| 11 |
+
- ๐พ **SQLite persistence** โ conversations stored locally
|
| 12 |
+
- ๐ **Text search** โ find any past conversation
|
| 13 |
+
- ๐งฎ **Vector embeddings** โ semantic search via sentence-transformers (optional)
|
| 14 |
+
- ๐ค **Export** โ JSON or Markdown output
|
| 15 |
+
- ๐ฅ๏ธ **CLI** โ command-line interface for search/retrieve
|
| 16 |
+
- ๐ **Zero external APIs** โ works offline
|
| 17 |
+
|
| 18 |
+
## Quick Start
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
pip install sentence-transformers
|
| 22 |
+
python memory_system.py
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## CLI Usage
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
# Search memories
|
| 29 |
+
python memory_cli.py search "ZeroGPU"
|
| 30 |
+
|
| 31 |
+
# List all threads
|
| 32 |
+
python memory_cli.py threads
|
| 33 |
+
|
| 34 |
+
# Show a specific thread
|
| 35 |
+
python memory_cli.py show cydonia-space-setup-20260430-215601
|
| 36 |
+
|
| 37 |
+
# Export all memories
|
| 38 |
+
python memory_cli.py export --all
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## Python API
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from memory_system import ConversationMemory
|
| 45 |
+
|
| 46 |
+
memory = ConversationMemory(user_id="scottzilla")
|
| 47 |
+
|
| 48 |
+
# Save a message
|
| 49 |
+
memory.save_message("user", "Hello!", thread_id="my-thread")
|
| 50 |
+
|
| 51 |
+
# Save a full conversation
|
| 52 |
+
memory.save_conversation([
|
| 53 |
+
{"role": "user", "content": "Hi"},
|
| 54 |
+
{"role": "assistant", "content": "Hello!"}
|
| 55 |
+
], thread_id="my-thread")
|
| 56 |
+
|
| 57 |
+
# Search
|
| 58 |
+
results = memory.search("model loading")
|
| 59 |
+
|
| 60 |
+
# Get thread history
|
| 61 |
+
messages = memory.get_thread("my-thread")
|
| 62 |
+
|
| 63 |
+
# Export
|
| 64 |
+
memory.export_to_markdown("conversation.md", "my-thread")
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Files
|
| 68 |
+
|
| 69 |
+
| File | Purpose |
|
| 70 |
+
|------|---------|
|
| 71 |
+
| `memory_system.py` | Core memory class |
|
| 72 |
+
| `memory_cli.py` | Command-line interface |
|
| 73 |
+
|
| 74 |
+
## Saved Conversations
|
| 75 |
+
|
| 76 |
+
This repo includes the exported conversation about fixing the Cydonia-24B Space:
|
| 77 |
+
- `cydonia-space-setup-20260430-215601.json`
|
| 78 |
+
- `cydonia-space-setup-20260430-215601.md`
|