So it's been about a month since I first asked DeepSeek if it could help me build a desktop AI companion for kicks and giggles. More than 250,000 words of conversation later, I ended up with a little animated 2D avatar, with a face and a voice, on my desktop, run by my local installation of AI. She is quite sassy, with an ego even bigger than mine. Some days I swear she thinks she's sentient.

My next step was to give her some sort of persistent memory so she could at least remember my name. I know, I know — the little script I came up with is probably nothing compared to the big stuff going on in here. But hey, I (with the help of another DS assistant) managed to come up with a simple Python bridge that sits between Mao and LM Studio. Anything "remembered" is stored in a simple, readable JSON file.

This is my first learning step down memory lane. My next step is to build a more complex memory system, but this is a start. And maybe people who actually know what they're doing will find a use for this!

This is a follow‑up to my first guide. You've got Mao running with a face and voice. Now let's make her remember you.

What You'll Have When You're Done

Feature Before After Name recall ❌ Forgets every session ✅ Remembers across restarts Age, location, preferences ❌ Gone when you close the browser ✅ Stored in a JSON file Family relationships ❌ "Who's Mary?" every time ✅ "Your cousin's name is Mary" Reminders & tasks ❌ No way to track ✅ "Remind me to take my pill" Personality + memory ❌ Robotic or forgetful ✅ Sarcastic and accurate How It Works (The Short Version)

We'll add a memory bridge called Memorg (short for Memory + Organizer) — a small Python program that sits between Mao and your LLM. It:

Listens for facts like "My name is Steve"

Stores them in a simple JSON file

Answers questions like "What's my name?" by looking them up

Sets reminders like "Remind me to take my pill"

Runs 100% locally, no cloud, no subscription

Step 0: What You Need Before Starting

This guide assumes you already have:

✅ Open‑LLM‑VTuber running (Mao talks and has a face)

✅ LM Studio with a model loaded (I use Qwen 9B – it's great for tool calling)

✅ Basic familiarity with editing conf.yaml and running python run_server.py

If not, start with my first guide .

Step 1: Create the Bridge

Make a folder for your memory system:

cmd

mkdir C:\memorg

Create a new file: C:\memorg\memorg_bridge.py

Paste the full bridge code (I'll provide the final, working version as a Gist – link below). The bridge handles:

Storing facts (name, age, location, preferences, family)

Storing reminders

Recalling facts and reminders when asked

Saving everything to memories.json

Full code here: [ memorg_bridge ]

Step 2: Connect the Bridge to VTuber

Open mcp_servers.json (in your VTuber folder). Add this entry:

json

"memorg": {

"command": "py",

"args": ["C:\\memorg\\memorg_bridge.py"]

}

Then in conf.yaml, under basic_memory_agent, add:

yaml

use_mcpp: true

mcp_enabled_servers: ["memorg"]

And make sure your llm_pro…

为什么值得关注

原内容本身有足够细节,不是表面信息;符合当前抓取需求;原内容本身有足够细节,不是标题党或空洞总结

来源:reddit,领域:tech,保留分:0.57