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
累计下载
4,025
星标
-
全站排名
#2,538
全站前 50% · 「AI 智能体」前 52%
平台累计安装累计下载星标评论
ClawHub ↗1223,589--
SkillHub ↗1214,025-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文描述按含义搜索记忆、添加标签和元数据,并可按标签过滤检索。启用嵌入生成时,记忆文本和查询可能发送给 Baidu;持久化数据库与备份也可能保留敏感或过时信息,应先确认隐私边界并设置访问与保留控制。

资料发布于 2026-10-29

可以用来做什么

  • 规划对话偏好或知识片段的语义存储
  • 按自然语言查询检索相关记忆
  • 按标签组织并筛选记忆记录

什么时候用

  • 需要为 Clawdbot 添加持久语义记忆,且已审查嵌入数据的外发与本地留存方式时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

不提交任何记忆内容,列出启用语义检索前应确认的数据处理边界。
规划按标签检索已授权的偏好记录,并说明需要保护的本地数据库与备份。

月度数据趋势

累计下载4,025
3,0133,5574,1002026-05 · 累计下载 3,0882026-06 · 累计下载 3,2222026-07 · 累计下载 3,5172026-08 · 累计下载 3,6452026-09 · 累计下载 4,02526-0526-09
星标-
0112026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0526-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,025—-
2026-083,645+3.6%-
2026-073,517+9.2%-
2026-063,222+4.3%-
2026-053,088—-

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),按月更新。口径说明见数据方法。