| --- |
| title: Conversation Memory System |
| emoji: ๐พ |
| colorFrom: blue |
| colorTo: green |
| sdk: gradio |
| pinned: false |
| --- |
| |
| # ๐พ Conversation Memory System |
|
|
| SQLite-backed conversation tracker with text search, semantic search, and Markdown export. Fully offline. |
|
|
| ## Features |
| - ๐พ **SQLite persistence** โ no external services |
| - ๐ **Text search** โ LIKE queries across all memories |
| - ๐งฎ **Vector embeddings** โ semantic search when `sentence-transformers` is installed |
| - ๐ค **Export** โ Markdown for any thread or all conversations |
| - ๐ **Zero external APIs** โ works fully offline |
|
|
| ## Usage |
|
|
| ### Save a message |
| Use the **Save** tab to store conversations from any source (user, assistant, system, agent-zero). |
|
|
| ### Search |
| - **Text search**: Fast LIKE-based search across all message content |
| - **Semantic search**: Requires `sentence-transformers` (auto-detected) |
|
|
| ### Export |
| Export individual threads or all conversations to Markdown. |
|
|
| ## API Integration |
| ```python |
| import requests |
| |
| # Save a message |
| requests.post("https://scottzillasystems-conversation-memory.hf.space/api/save", json={ |
| "role": "user", |
| "content": "Hello!", |
| "thread_id": "my-thread" |
| }) |
| |
| # Search |
| requests.get("https://scottzillasystems-conversation-memory.hf.space/api/search?q=hello") |
| ``` |