A high-performance local knowledge base skill utilizing FAISS and BM25 for hybrid search powered by Alibaba Cloud Bailian embeddings.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install rag-kb
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install rag-kb using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Bailian FAISS Knowledge Base is a sophisticated tool designed for the Openclaw Skills ecosystem to maintain file-based local knowledge repositories. It bridges the gap between raw text extraction and intelligent retrieval by combining FAISS for dense vector search and BM25 for sparse keyword search. This hybrid approach ensures that AI agents can find relevant information with high precision, whether through semantic meaning or specific terminology.
By leveraging Alibaba Cloud's text-embedding-v4 and optional qwen3-rerank models, this skill provides industrial-grade RAG (Retrieval-Augmented Generation) capabilities. It is built to work seamlessly with the Openclaw file processing workflow, consuming extracted chunks and Text-to-Question (T2Q) data to build a robust index that resides entirely on your local infrastructure while only calling external APIs for embedding and reranking tasks.
To get started with this skill within the Openclaw Skills framework, follow these steps:
# Install the required Python dependencies
python3 -m pip install -r requirements.txt
# Set your Alibaba Cloud Bailian API Key
export BAILIAN_SK="your_api_key_here"
# Verify your environment configuration
python3 scripts/bailian_faiss_kb.py doctor --root-dir /var/openclaw-kb
The skill follows a strict directory and metadata taxonomy to ensure reliable indexing and retrieval:
| File/Folder | Purpose | Format |
|---|---|---|
summary.txt |
Single-line summary of the document for quick context. | Plain Text |
chunks/*.md |
Semantic text segments used for primary indexing. | Markdown |
t2q/*.md |
Generated questions representing the chunk for better recall. | Markdown |
vectors.jsonl |
Local cache of generated embeddings and metadata. | JSONL |
index.faiss |
The binary vector index for FAISS. | Binary |
bm25.json |
Inverted index used for keyword-based retrieval. | JSON |
protected_terms.json |
Custom vocabulary to protect specific terms during tokenization. | JSON |
Loading
A strategic advisor that transforms raw ideas into high-performing X-native content while diagnosing growth bottlenecks for creators and indie builders.

A high-fidelity simulation and backtesting engine for the A-share market that strictly enforces T+1 settlement and price limit rules.

An advisor-first skill that applies Paul Graham's core mental models—like writing as thinking and founder-over-idea judgment—to complex decision-making.

A strategic advisor skill that applies Naval Ravikant's core mental models to career, wealth, and decision-making challenges.

A specialized tool for generating native Huawei eNSP topology files for network simulation and design.

A professional AI-driven pipeline that transforms any text, URL, or PDF into a structured two-person dialogue podcast with stereo TTS audio.








































