mem0-bridge

Searches, reads, and writes long-term character memories in a Qdrant vector database.

358|20|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/momori777/Artemis --skill mem0-bridge-momori777
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mem0-bridge
Source: https://github.com/momori777/Artemis/tree/main/skills/mem0-bridge
Command: npx skills add https://github.com/momori777/Artemis --skill mem0-bridge-momori777

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires qdrant-client.

What problem does it solve? AI chat characters forget past conversations across sessions and channels. This Skill bridges a local Qdrant vector database to WebChat, QQ Bot, and Telegram Bot so each character retains isolated long-term memories that can be searched and injected into the LLM prompt every turn. ## Core Features & Use Cases - Vector Memory Search: Queries Qdrant with embeddings from a local server (port 9999, all-MiniLM-L6-v2) and returns relevance-scored memories for prompt injection. - Memory Write & List: Extracts key facts from conversation messages, embeds them, and stores them per character via user_id isolation. - Behavior Engine Integration: Adjusts search queries and result limits based on relationship stage, affection, and conflict state, then tier-injects memories by score (>=0.7 required, >=0.5 natural, >=0.3 optional). - Use Case: When a user asks their AI girlfriend "do you remember what I like?", the Skill searches Qdrant for that character's stored preferences and injects the relevant memories into the system prompt before the LLM responds. ## Quick Start Ask the AI to search mem0 memories for character natsume with the query "今天心情怎么样" and inject the results into the conversation context.

Frequently Asked Questions about mem0-bridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add long-term memory to an AI chatbot with Qdrant?▼

Use the add_memory function with a character user_id and fact string; the text is embedded by a local all-MiniLM-L6-v2 server and written to Qdrant. Search later with search_mem0_qdrant to retrieve relevance-scored memories for prompt injection.

How to isolate memories per character in a vector database?▼

Each character maps to a distinct user_id (sakura, natsume, enola, atori) in the Qdrant collection, so reads and writes are scoped per character. This prevents memory leakage between different AI personas sharing one database.

Does mem0 Qdrant search work when the embedding server is offline?▼

Search returns results with all scores at 0.0 when the embedding server on port 9999 is down. The integration module detects this case and injects the top results as low-relevance fallback references instead of returning empty context.

Why does memory search return empty context for a character?▼

Empty context occurs when no memories exist for that character's user_id or the relationship.json behavior state file is missing. Verify Qdrant data exists under the memory directory and the embedding server is running on port 9999.

What Python dependencies does Qdrant memory bridging require?▼

The bridge requires the qdrant-client package installed via pip and a running local embedding server on port 9999 serving all-MiniLM-L6-v2 with 384-dimensional vectors. No cloud API keys are needed since everything runs locally.