Skip to content
Back to skills

Memory Baidu Embedding Db

ASecurity

A semantic memory system for Clawdbot that uses Baidu's

  • 21 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
ai-agentsjavascriptpythonjavabashsqlapidatabasesecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill memory-baidu-embedding-db --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Baidu Embedding Db?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Baidu Embedding Db
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-memory-baidu-embedding-db/badge)](https://www.skillsdirectory.com/skills/modbender-memory-baidu-embedding-db)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Memory Baidu Embedding DB - Semantic Memory for Clawdbot
description: A semantic memory system for Clawdbot that uses Baidu's
  Embedding-V1 model to store and retrieve memories based on meaning rather than
  keywords. Designed as a secure, locally-stored replacement for...
---

# Memory Baidu Embedding DB - Semantic Memory for Clawdbot

**Vector-Based Memory Storage and Retrieval Using Baidu Embedding Technology**

A semantic memory system for Clawdbot that uses Baidu's Embedding-V1 model to store and retrieve memories based on meaning rather than keywords. Designed as a secure, locally-stored replacement for traditional vector databases like LanceDB.

## 🚀 Features

- **Semantic Memory Search** - Find memories based on meaning, not just keywords
- **Baidu Embedding Integration** - Uses Baidu's powerful Embedding-V1 model  
- **SQLite Persistence** - Local, secure storage without external dependencies
- **Zero Data Leakage** - All processing happens locally with your API credentials
- **Flexible Tagging System** - Organize memories with custom tags and metadata
- **High Performance** - Optimized vector similarity calculations
- **Easy Migration** - Drop-in replacement for memory-lancedb systems

## 🎯 Use Cases

- **Conversational Context** - Remember user preferences and conversation history
- **Knowledge Management** - Store and retrieve information semantically
- **Personalization** - Maintain user-specific settings and preferences
- **Information Retrieval** - Find related information based on meaning
- **Data Organization** - Structure memories with tags and metadata

## 📋 Requirements

- Clawdbot installation
- Baidu Qianfan API credentials (API Key and Secret Key)
- Python 3.8+
- Internet connection for initial API calls

## 🛠️ Installation

### Manual Installation

1. Place the skill files in your `~/clawd/skills/` directory
2. Install dependencies (if any Python packages are needed)
3. Configure your Baidu API credentials

### Configuration

Set environment variables:
```bash
export BAIDU_API_STRING='${BAIDU_API_STRING}'
export BAIDU_SECRET_KEY='${BAIDU_SECRET_KEY}'
```

## 🚀 Usage Examples

### Basic Usage
```python
from memory_baidu_embedding_db import MemoryBaiduEmbeddingDB

# Initialize the memory system
memory_db = MemoryBaiduEmbeddingDB()

# Add a memory
memory_db.add_memory(
    content="The user prefers concise responses and enjoys technical discussions",
    tags=["user-preference", "communication-style"],
    metadata={"importance": "high"}
)

# Search for related memories using natural language
related_memories = memory_db.search_memories("What does the user prefer?", limit=3)
```

### Advanced Usage
```python
# Add multiple memories with rich metadata
memory_db.add_memory(
    content="User's favorite programming languages are Python and JavaScript",
    tags=["tech-preference", "programming"],
    metadata={"confidence": 0.95, "source": "conversation-2026-01-30"}
)

# Search with tag filtering
filtered_memories = memory_db.search_memories(
    query="programming languages",
    tags=["tech-preference"],
    limit=5
)
```

## 🔧 Integration

This skill integrates seamlessly with Clawdbot's memory system as a drop-in replacement for memory-lancedb. Simply update your configuration to use this memory system instead of the traditional one.

## 📊 Performance

- **Vector Dimension**: 384 (Baidu Embedding-V1 output)
- **Storage**: SQLite database (~1MB per 1000 memories)
- **Search Speed**: ~50ms for 1000 memories (on typical hardware)
- **API Latency**: Depends on Baidu API response time (typically <500ms)

## 🔐 Security

- **Local Storage**: All memories stored in local SQLite database
- **Encrypted API Keys**: Credentials stored securely in environment variables
- **No External Sharing**: Memories never leave your system
- **Selective Access**: Granular control over what gets stored

## 🔄 Migration from memory-lancedb

1. **Install this skill** in your `skills/` directory
2. **Configure your Baidu API credentials**
3. **Initialize the new system**
4. **Update your bot configuration** to use the new memory system
5. **Verify data integrity** and performance

## 🤝 Contributing

We welcome contributions! Feel free to submit issues, feature requests, or pull requests to improve this skill.

Files in this skill

  • API_REFERENCE.md10 KB
  • DISABLE_LANCEDB.md1.2 KB
  • ERROR_HANDLING_BEST_PRACTICES.md7.9 KB
  • MEMORY_SYSTEM_GUIDE.md2.9 KB
  • QUICKSTART.md2.7 KB
  • QUICK_START.md2.3 KB
  • README.md9.8 KB
  • SECURITY_BLACKLIST_POLICY.md2 KB
  • SECURITY_CONFIG.md2.1 KB
  • SKILL.md4.3 KB
  • TUTORIAL.md15 KB
  • USAGE_GUIDE.md6.3 KB
  • clawdbot.skill.json407 B
  • integrate.sh1.2 KB
  • memory_baidu_embedding_db.py29 KB
  • memory_health_check.sh4.3 KB
  • memory_maintenance.sh2.8 KB
  • memory_performance_monitor.sh2.3 KB
  • memory_quick_start.md2.3 KB
  • memory_skill_full_verification.sh4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.