Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,46 @@
|
|
| 1 |
---
|
| 2 |
-
title: Conversation Memory
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 6.14.0
|
| 8 |
-
python_version: '3.13'
|
| 9 |
-
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Conversation Memory System
|
| 3 |
+
emoji: ๐พ
|
| 4 |
+
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
|
|
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# ๐พ Conversation Memory System
|
| 11 |
+
|
| 12 |
+
SQLite-backed conversation tracker with text search, semantic search, and Markdown export. Fully offline.
|
| 13 |
+
|
| 14 |
+
## Features
|
| 15 |
+
- ๐พ **SQLite persistence** โ no external services
|
| 16 |
+
- ๐ **Text search** โ LIKE queries across all memories
|
| 17 |
+
- ๐งฎ **Vector embeddings** โ semantic search when `sentence-transformers` is installed
|
| 18 |
+
- ๐ค **Export** โ Markdown for any thread or all conversations
|
| 19 |
+
- ๐ **Zero external APIs** โ works fully offline
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
|
| 23 |
+
### Save a message
|
| 24 |
+
Use the **Save** tab to store conversations from any source (user, assistant, system, agent-zero).
|
| 25 |
+
|
| 26 |
+
### Search
|
| 27 |
+
- **Text search**: Fast LIKE-based search across all message content
|
| 28 |
+
- **Semantic search**: Requires `sentence-transformers` (auto-detected)
|
| 29 |
+
|
| 30 |
+
### Export
|
| 31 |
+
Export individual threads or all conversations to Markdown.
|
| 32 |
+
|
| 33 |
+
## API Integration
|
| 34 |
+
```python
|
| 35 |
+
import requests
|
| 36 |
+
|
| 37 |
+
# Save a message
|
| 38 |
+
requests.post("https://scottzillasystems-conversation-memory.hf.space/api/save", json={
|
| 39 |
+
"role": "user",
|
| 40 |
+
"content": "Hello!",
|
| 41 |
+
"thread_id": "my-thread"
|
| 42 |
+
})
|
| 43 |
+
|
| 44 |
+
# Search
|
| 45 |
+
requests.get("https://scottzillasystems-conversation-memory.hf.space/api/search?q=hello")
|
| 46 |
+
```
|