Local Knowledge Base
Overview
The local knowledge base lets you quickly associate local file directories and leverage vector embedding and full-text search technology to help AI understand and utilize your file content. Indexing and search run on your device. When the agent uses a cloud model, the excerpts it retrieves are sent with that request.
Core Features
- Quick Association — One-click selection of local folders as knowledge base
- Vectorization — Automatically vectorize file content with semantic search support (based on BGE model)
- Full-Text Search — Fast and precise keyword matching (using Jieba tokenizer)
- Local Indexing — Indexing and search run on your device; retrieved excerpts are sent only with the chat request that uses them
- Intelligent Context — AI chat automatically retrieves relevant knowledge as context
- Multi-Format Support — Supports PDF, Word, Excel, PowerPoint, Markdown, and plain text
Adding a Knowledge Base
- Click Knowledge Base in the ClawSky sidebar
- Click the + Add Knowledge Base button
- Select a local folder
- The system automatically scans, parses, and vectorizes file content
Using in Chat
Once you've added a knowledge base, when you ask questions in AI chat:
- The system automatically retrieves relevant knowledge base content
- The retrieved context is sent to the AI
- The AI generates more accurate answers based on your knowledge base content
You can also explicitly specify which knowledge base to use in the chat interface, or manually select which knowledge bases to search.
Privacy & Security
Indexing, vectorization and search run on your device; your files and the index stay in your local data folder and are not synced to our servers. When you chat with a cloud model, the excerpts retrieved for that question are sent with the request to ClawSky Cloud or to the provider you configured (see the Privacy Policy). Keep confidential material out of knowledge bases you use with cloud models.
Technical Implementation
- Document Parsing — Automatic parsing of multiple formats: PDF, DOCX, XLSX, PPTX, Markdown, and plain text
- Tokenization — Jieba tokenizer library for Chinese and English word segmentation
- Vector Embedding — BGE model-based ONNX inference, completely offline
- Storage — DuckDB for efficient vector and text data storage and querying
- Search — Supports both vector similarity search and full-text keyword search
Next Steps
- Getting Started — Return to installation and setup guide