xqicxx

memory_baidu_embedding_db

AI Agentv2.0.1
By xqicxxUpdated 2026-05-183 versions · latest released 2026-02-04memory-baidu-embedding-db@clawhub_xqicxx/memory-baidu-embedding-db
Context ManagementMemory

According to AlphaMoat, as of 2026-09, memory_baidu_embedding_db has 4,025 downloads and 0 stars — ranked #2,538 of 5,078 AI skills overall, and #498 of 969 in AI Agent.

Installs
122
Downloads
4.0K
Stars
-
Overall Rank
#2,538
Top 50% overall · Top 52% in AI Agent
PlatformInstallsDownloadsStarsComments
ClawHub ↗1223.6K--
SkillHub ↗1214.0K-—

Platforms count differently and update at different times.

What this skill does

The guide describes searching memories by meaning, adding tags and metadata, and filtering retrieval by tags. When embedding generation is enabled, memory text and queries may be sent to Baidu; persistent databases and backups may retain sensitive or stale information, so review the privacy boundary and set access and retention controls.

Profile published 2026-10-29

What you can do with it

  • Plan semantic storage for conversation preferences or knowledge snippets
  • Retrieve related memories with natural-language queries
  • Organize and filter records by tags

When to use it

  • When adding persistent semantic memory to Clawdbot after reviewing embedding data transfers and local retention

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Without submitting memory content, list data-boundary checks before enabling semantic retrieval.
Plan a tag-filtered search for authorized preference records and note protections for the local database and backups.

Monthly Trend

Downloads4.0K
3.0K3.6K4.1K2026-05 · Downloads 3.1K2026-06 · Downloads 3.2K2026-07 · Downloads 3.5K2026-08 · Downloads 3.6K2026-09 · Downloads 4.0K26-0526-09
Stars-
0112026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0526-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.0K—-
2026-083.6K+3.6%-
2026-073.5K+9.2%-
2026-063.2K+4.3%-
2026-053.1K—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.9 KB · ClawHub v2.0.1
# 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  
Show all (113 lines)
- **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.

Popular in AI Agent

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.