CADA is a 100% local, privacy-first desktop assistant and Local Semantic File System (LSFS) designed exclusively for Windows. It mounts directly into your operating system as a native virtual drive (
X:\), turning your static folder hierarchy into an intelligent, queryable knowledge network powered by local AI.
- β¨ Key Features
- π Privacy & Local-First Architecture
- ποΈ System Architecture
- β‘ Prerequisites
- π¦ Installation Guide
- βοΈ Configuration & Setup
- π― How to Use CADA
- π€ CADA Agent Mode (
/agent) - π οΈ Tech Stack
- π License
- Native Virtual Drive: Mounts a virtual disk (
X:\) using WinFSP in Windows user space. - Automatic Background Indexing & OCR: Any document or file saved to the virtual drive is instantly indexed. Uses native Windows Media OCR to extract text from images, alongside PDF and Office extractors.
- Visual Semantic Search: Local CLIP vision embeddings enable searching through photos, screenshots, and diagrams by visual content.
- Vector + FTS5 Dual Engine: Combines semantic embeddings (Ollama / Candle) with SQLite FTS5 full-text keyword indexing (including diacritic removal).
-
Reciprocal Rank Fusion (RRF): Merges keyword precision (for exact invoice numbers, tax IDs, codes) with vector semantics (
$k=60$ ). - Maximal Marginal Relevance (MMR): Prevents repetitive search results by diversifying semantic search rankings.
- Interaction Telemetry: A background monitor (
notify) tracks system file events, learning when and how frequently you interact with specific files. - Content Deltas: Calculates document diffs and uses local LLM reasoning to generate human-readable version histories in SQLite.
- Spotlight Global Search Overlay: Lightning-fast search bar inspired by macOS Spotlight, built with Tauri.
- Local RAG Q&A: Ask questions directly over your document base using local Ollama LLMs (
gemma4). - Real-time Metrics: Live display of generation progress, elapsed time, and token speeds (
token/s).
- Local Voice Input: Speak your queries directly using integrated local Whisper-tiny model inference via Base64 audio streaming.
- Offline Knowledge Visualization: Renders an interactive 2D graph of your documents and tag hubs powered by
vis.js. - Split-View Virtual Explorer: Browse untagged files ("Inbox") and tag-categorized virtual directories.
- Intelligent File Operations: Prefix any prompt with
/agentto trigger LLM-driven mass file operations (renaming, tagging, deleting). - Two-Step Verification: Safety-first architecture. The agent generates a structured proposal table for human review before executing physical changes on disk.
- Zero Cloud Dependence: 100% of embeddings, LLM inference, search indexing, OCR, and speech transcription run strictly on your local machine.
- Data Sovereignty: Your documents, notes, vectors, and search telemetry never leave your device.
- Offline First: Works completely without an active internet connection.
graph TD
User([User]) <--> UI[Tauri Front-End HTML/CSS/JS]
UI <--> |HTTP REST API| Axum[CADA Axum API Daemon]
Axum <--> DB[(SQLite DB + FTS5 + QA Cache)]
Axum <--> Embed[Candle / Ollama Embeddings]
Axum <--> Telemetry[Telemetry & Profile Engine]
VFS[Virtual Drive X: WinFSP] <--> |File I/O Events| WinFSP_Driver[WinFSP Driver]
WinFSP_Driver <--> Rust_VFS[WinFSP Implementation in Rust]
Rust_VFS <--> |Background Indexer| Axum
Watcher[Notify Watcher] --> |I/O Events| Telemetry
Ollama[Local Ollama Service] <--> |RAG / Model Pull| Axum
Whisper[Local Whisper Engine] <--> |Speech-to-Text| Axum
Before running CADA, ensure your environment meets the following requirements:
- Operating System: Windows 10 or Windows 11 (64-bit).
- WinFSP Driver: Download and install WinFSP (Required for virtual drive mounting).
- Rust Toolchain: Rust 1.77+ installed (
rustup install stable). - Ollama: Ollama for Windows running locally on port
11434.
Download the latest WinFSP installer (.msi) from the WinFSP Releases Page and complete the installation wizard.
Install Ollama and start the background service. CADA will automatically manage model downloads via the UI, or you can pre-pull them manually:
ollama pull embeddinggemma
ollama pull gemma4# Clone the repository
git clone https://github.com/empios/CaDa.git
cd cada
# Run CADA in development mode (starts Axum backend & Tauri GUI)
cargo tauri devTo build a production standalone release executable:
cargo tauri build- Launch CADA. The system will verify dependencies and mount the virtual drive at
X:\. - Open the βοΈ Ustawienia i Profil (Settings) tab in the GUI.
- Verify that the Demon CADA API, Dysk Wirtualny X:, and UsΕuga Ollama status badges show green (
OK). - If missing, click Pobierz next to
embeddinggemmaorgemma4to auto-download required AI models directly from the app interface.
- Press
Enterin the Spotlight search bar to execute hybrid vector + keyword search. - Switch to the RAG tab to ask natural language questions over your local document base.
- Click Kopiuj or Zapisz notatkΔ to export RAG answers directly as Markdown files to
X:\Notatki\.
- Click the ποΈ Microphone icon next to the search bar.
- Speak your search prompt, then click the microphone icon again to stop. CADA transcribes your voice locally using Whisper and populates the search bar.
- Click the Graf Wiedzy tab to view your interactive 2D graph of document relationships and tag hubs.
- Click the Wirtualny Dysk tab to browse files categorized by AI-generated tags or view unclassified files in
Inbox.
CADA includes an autonomous file management agent with safe human-in-the-loop verification.
Type a command starting with /agent in the search bar:
/agent Rename all invoice files to start with INVOICE_2026_
- Plan Proposal: CADA performs vector retrieval, sends the request to the local LLM, and displays a proposed action table (showing old file names vs. new file names).
- Review & Confirm: Review the changes and click β Wykonaj Zmiany to apply them or β OdrzuΔ to cancel. Physical files remain completely safe until explicit approval.
- Language & Runtime: Rust (Axum, Tokio, Rusqlite, WinFSP, Windows-rs, Notify)
- Frontend GUI: Tauri, HTML5, CSS3, JavaScript (Vanilla,
vis.jsGraph) - Local AI & ML:
- LLM & Embeddings: Ollama (
gemma4,embeddinggemma), Candle (CLIP) - OCR: Native Windows Media OCR APIs (
windows-rs) - Speech Recognition: Local Whisper-tiny engine
- LLM & Embeddings: Ollama (
Distributed under the MIT License. See LICENSE for details.