File size: 5,062 Bytes
bd7679d
586ee26
93ab663
6975c92
36b0fbb
bd7679d
586ee26
 
443e51e
88bde37
 
36b0fbb
88bde37
36b0fbb
71bd745
eff42b4
 
 
 
 
 
 
 
 
 
 
bd7679d
 
93ab663
e91e2b4
586ee26
6975c92
93ab663
e91e2b4
93ab663
e91e2b4
8f06569
93ab663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
586ee26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93ab663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36b0fbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
title: 🧠 MemMachine Playground – AI Memory for LLMs & Agents
emoji: 🧠
colorFrom: green
colorTo: gray
sdk: docker
pinned: true
short_description: Official MemMachine playground for AI, agent memory for LLMs
app_port: 7860
hf_oauth: true
hf_oauth_scopes:
- email
hf_oauth_authorized_org:
- Memverge
tags:
- ai-memory
- persistent-memory
- agent-memory
- multi-llm
- llm-playground
- ai-agents
- memory
- chatbot
- open-source
- agents
license: apache-2.0
---

# 🧠 MemMachine Playground

**This is the official interactive playground for MemMachine (memmachine.ai) β€” the universal memory layer for AI agents**

A powerful playground for experimenting with various Large Language Models (LLMs) enhanced by MemMachine's persistent memory system. Compare conversations with and without memory to see how AI memory transforms your interactions.

## ✨ Features

- **Multiple LLM Providers**: OpenAI, Anthropic (Claude), AWS Bedrock and more
- **Persistent Memory**: AI remembers your conversations across sessions
- **Profile Memory**: Builds a personalized profile of you over time
- **Episodic Memory**: Remembers specific conversations and context
- **Secure Authentication**: Token-based authentication to protect your memories
- **Session Management**: Create and manage multiple conversation sessions

## πŸš€ Getting Started

### Step 1: Create a Hugging Face Read Token

To authenticate and access your personalized memories, you'll need a Hugging Face access token:

1. **Go to Hugging Face Settings**
   - Visit: https://huggingface.co/settings/tokens
   - Or click your profile β†’ Settings β†’ Access Tokens

2. **Create a New Token**
   - Click **"New token"** button
   - **Name**: Enter a descriptive name (e.g., "MemMachine Playground")
   - **Role**: Select **"Read"** (this is sufficient for authentication)
   - Click **"Generate token"**

3. **Copy Your Token**
   - ⚠️ **Important**: Copy the token immediately (it starts with `hf_`)
   - You won't be able to see it again after closing the page
   - Store it securely

### Step 2: Authenticate in the App

1. **Open the Playground**
   - The app will prompt you to authenticate on first use

2. **Enter Your Token**
   - Paste your Hugging Face Read token in the authentication field
   - Click **"Authenticate"**
   - Your username will be automatically detected and locked

3. **Start Chatting**
   - Your memories are now personalized to your account
   - All conversations are stored securely under your username

## πŸ’‘ How to Use

### Basic Usage

1. **Choose a Model**
   - Select from the dropdown in the sidebar
   - Models include GPT-4, Claude, Bedrock, and more

2. **Start a Conversation**
   - Type your message in the chat input
   - The AI will respond using your memory context

3. **Compare with Memory**
   - Toggle "Compare with Control persona" to see responses with/without memory
   - See how memory enhances the AI's understanding

## πŸ” Keywords (for discoverability)

**Core concepts**
- AI memory
- Persistent memory for LLMs
- Agent memory
- Memory for AI agents

**Use cases**
- AI agents with memory
- Long-term memory for LLMs

**Product & platform**
- Multi-LLM playground
- MemMachine AI memory
- LLM memory

### Advanced Features

- **Multiple Sessions**: Create different conversation sessions for different topics
- **Persona Selection**: Test with different user personas (Charlie, Jing, Charles, Control)
- **Profile Management**: View and delete your AI profile when needed
- **Memory Search**: The AI searches your past conversations for relevant context

## πŸ”’ Security & Privacy

- **Token Authentication**: Your Hugging Face token is used only to identify your username
- **Session-Only Storage**: Tokens are stored only in your browser session
- **Isolated Memories**: Each user's memories are completely isolated
- **No Token Sharing**: Your token is never shared or stored permanently

## πŸ—οΈ Architecture

- **Frontend**: Streamlit (runs in this Hugging Face Space)
- **Backend**: MemMachine server running on EC2
- **Memory Storage**: Neo4j (graph) + Postgres (vector search)
- **Authentication**: Hugging Face token-based authentication

## πŸ“ Notes

- **Token Expiration**: Read tokens don't expire automatically - they remain valid until you revoke them
- **Memory Persistence**: Your memories are tied to your username, not your token. You can create new tokens without losing memories
- **Rate Limiting**: The backend implements rate limiting (50 requests/minute) to prevent abuse

## πŸ†˜ Troubleshooting

**"Invalid token" error?**
- Make sure you copied the entire token (including `hf_` prefix)
- Verify the token has "Read" permissions
- Try creating a new token if the issue persists

**Can't see my memories?**
- Ensure you're authenticated with the same username
- Memories are stored per username, not per token

**Need help?**
- Check that your token has Read permissions
- Verify you're using a valid Hugging Face account

---

**Powered by [MemMachine](https://github.com/memverge/memmachine)** πŸ§