Add YAML front matter with description, security notes, and auto-update script

This commit is contained in:
2026-02-12 14:22:32 +00:00
parent f81c8b1e70
commit 97649d7c7f

View File

@@ -1,3 +1,8 @@
---
name: rag
description: Complete RAG (Retrieval-Augmented Generation) system for OpenClaw. Indexes chat sessions, workspace code, documentation, and skills into local ChromaDB for semantic search. Enables finding past solutions, code patterns, and decisions instantly. Uses local embeddings (all-MiniLM-L6-v2) with no API keys required. Automatically ingests and updates knowledge base from ~/.openclaw/agents/main/sessions and workspace files.
---
# OpenClaw RAG Knowledge System
**Retrieval-Augmented Generation for OpenClaw Search chat history, code, docs, and skills with semantic understanding**
@@ -334,6 +339,21 @@ This skill integrates seamlessly with OpenClaw:
3. **Workspace awareness**: Code and docs indexed for reference
4. **Skill accessible**: Use from any OpenClaw session or script
## Security Considerations
**⚠️ Important Privacy Note:** This RAG system indexes local data, which may contain:
- API keys, tokens, or credentials in session transcripts
- Private messages or personal information
- Tool results with sensitive data
- Workspace configuration files
**Recommended:**
- Review session files before ingestion if concerned about privacy
- Consider redacting sensitive data from session files
- Use `rag_manage.py reset` to delete the entire index when needed
- The ChromaDB persistence at `~/.openclaw/data/rag/` can be deleted to remove all indexed data
- The auto-update script only runs local ingestion - no remote code fetching
## Example Workflow
**Scenario:** You're working on a new automation but hit a Cloudflare challenge.