← 返回
未分类 Key 中文

knowledge-vault

Long-term RAG memory storage for your agent, powered by TiDB Vector.
基于 TiDB Vector,为代理提供长期 RAG 记忆存储。
lilyjazz lilyjazz 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 205
下载
💾 0
安装
1
版本
#latest

概述

Knowledge Vault (Powered by TiDB Zero)

Overview

Knowledge Vault is a Long-Term Memory module for AI Agents, powered by TiDB Vector Search (RAG).

Traditional agent memory (context window) is ephemeral and limited. Knowledge Vault allows agents to:

  1. Store: Ingest documents, notes, and facts as vector embeddings.
  2. Retrieve: Semantically search for relevant information based on user queries ("RAG").
  3. Remember: Access unlimited historical context without overflowing the LLM prompt.

Why use this?

  • Infinite Recall: Store millions of documents without confusing the agent.
  • Contextual Relevance: Find exact paragraphs related to a question, not just keywords.
  • Privacy: Keep your knowledge base private in your own TiDB Cloud instance.

Prerequisites

  • TiDB Cloud (Serverless): With Vector Search enabled.
  • Embedding Model: Requires GEMINI_API_KEY (or compatible).

🔐 Security & Provisioning

This skill operates in two modes:

  1. Bring Your Own Database (Recommended): Set TIDB_HOST, TIDB_USER, TIDB_PASSWORD environment variables. The skill will use your existing database.
  2. Auto-Provisioning (Fallback): If no credentials are found, the skill calls the TiDB Zero API to create a temporary, ephemeral database for you. It caches the connection string locally (~/.openclaw_knowledge_vault_dsn) to persist memory across runs.

Installation

1. Add to TOOLS.md

- **knowledge-vault**: Store and retrieve knowledge using vector search.
  - **Location:** `{baseDir}/skills/knowledge_vault/SKILL.md`
  - **Command:** `python {baseDir}/skills/knowledge_vault/run.py --action search --query "<QUESTION>"`

2. Add to AGENTS.md (Protocol)

Copy PROTOCOL.md.

Usage

  • Add Knowledge:

```bash

python {baseDir}/run.py --action add --content "The user prefers spicy food but is allergic to peanuts."

```

  • Search (RAG):

```bash

python {baseDir}/run.py --action search --query "What are the user's dietary restrictions?"

```

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 05:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,163 📥 935,869
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,441 📥 328,479
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,518 📥 574,388