xqicxx

memory_baidu_embedding_db

AI 智慧體v2.0.1
作者:xqicxx更新於 2026-05-18共 3 個版本 · 最新版本釋出於 2026-02-04memory-baidu-embedding-db@clawhub_xqicxx/memory-baidu-embedding-db
上下文管理記憶增強

據 AlphaMoat 統計,截至 2026-09,memory_baidu_embedding_db 累計下載 4,025 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 2,538 位,在「AI 智慧體」分類(969 個)中排名第 498 位。

累計安裝
122
累計下載
4025
星標
-
全站排名
#2,538
全站前 50% · 「AI 智慧體」前 52%
平台累計安裝累計下載星標評論
ClawHub ↗1223589--
SkillHub ↗1214025-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文描述按含義搜尋記憶、新增標籤和後設資料,並可按標籤過濾檢索。啟用嵌入生成時,記憶文字和查詢可能傳送給 Baidu;持久化資料庫與備份也可能保留敏感或過時資訊,應先確認隱私邊界並設定訪問與保留控制。

資料釋出於 2026-10-29

可以用來做什麼

  • 規劃對話偏好或知識片段的語義儲存
  • 按自然語言查詢檢索相關記憶
  • 按標籤組織並篩選記憶記錄

什麼時候用

  • 需要為 Clawdbot 新增持久語義記憶,且已審查嵌入資料的外發與本地留存方式時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

不提交任何記憶內容,列出啟用語義檢索前應確認的資料處理邊界。
規劃按標籤檢索已授權的偏好記錄,並說明需要保護的本地資料庫與備份。

月度資料趨勢

累計下載4025
3013355741002026-05 · 累計下載 30882026-06 · 累計下載 32222026-07 · 累計下載 35172026-08 · 累計下載 36452026-09 · 累計下載 402526-0526-09
星標-
0112026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0526-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094025—-
2026-083645+3.6%-
2026-073517+9.2%-
2026-063222+4.3%-
2026-053088—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 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  
展開全部(共 113 行)
- **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.

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。