Skip to content
empiosPublic

About

100% Local Semantic File System & Intelligent AI Desktop Agent for Windows

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Context-Aware Desktop Agent (CADA)

Rust Version Platform License: MIT Local First Tauri

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.


πŸ“‹ Table of Contents


✨ Key Features

1. πŸ“‚ Virtual Semantic File System (LSFS)

  • 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.

2. πŸ” Advanced Dual Hybrid Search Engine

  • 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.

3. 🧠 Behavioral Memory & Context (FileGramOS)

  • 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.

4. πŸš€ Spotlight Search & RAG Assistant

  • 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).

5. πŸŽ™οΈ Whisper Voice Search

  • Local Voice Input: Speak your queries directly using integrated local Whisper-tiny model inference via Base64 audio streaming.

6. πŸ•ΈοΈ Interactive Knowledge Graph & Virtual Explorer

  • 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.

7. πŸ€– Autonomous CADA Agent Mode (/agent)

  • Intelligent File Operations: Prefix any prompt with /agent to 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.

πŸ”’ Privacy & Local-First Architecture

  • 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.

πŸ—οΈ System Architecture

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
Loading

⚑ Prerequisites

Before running CADA, ensure your environment meets the following requirements:

  1. Operating System: Windows 10 or Windows 11 (64-bit).
  2. WinFSP Driver: Download and install WinFSP (Required for virtual drive mounting).
  3. Rust Toolchain: Rust 1.77+ installed (rustup install stable).
  4. Ollama: Ollama for Windows running locally on port 11434.

πŸ“¦ Installation Guide

Step 1: Install WinFSP

Download the latest WinFSP installer (.msi) from the WinFSP Releases Page and complete the installation wizard.

Step 2: Install and Start Ollama

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

Step 3: Clone Repository & Build

# 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 dev

To build a production standalone release executable:

cargo tauri build

βš™οΈ Configuration & Setup

  1. Launch CADA. The system will verify dependencies and mount the virtual drive at X:\.
  2. Open the βš™οΈ Ustawienia i Profil (Settings) tab in the GUI.
  3. Verify that the Demon CADA API, Dysk Wirtualny X:, and UsΕ‚uga Ollama status badges show green (OK).
  4. If missing, click Pobierz next to embeddinggemma or gemma4 to auto-download required AI models directly from the app interface.

🎯 How to Use CADA

Global Search & RAG

  • Press Enter in 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\.

Voice Search

  • 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.

Knowledge Graph & Virtual Explorer

  • 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 Agent Mode (/agent)

CADA includes an autonomous file management agent with safe human-in-the-loop verification.

Usage Example:

Type a command starting with /agent in the search bar:

/agent Rename all invoice files to start with INVOICE_2026_

How Verification Works:

  1. 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).
  2. Review & Confirm: Review the changes and click βœ” Wykonaj Zmiany to apply them or βœ– OdrzuΔ‡ to cancel. Physical files remain completely safe until explicit approval.

πŸ› οΈ Tech Stack

  • Language & Runtime: Rust (Axum, Tokio, Rusqlite, WinFSP, Windows-rs, Notify)
  • Frontend GUI: Tauri, HTML5, CSS3, JavaScript (Vanilla, vis.js Graph)
  • Local AI & ML:
    • LLM & Embeddings: Ollama (gemma4, embeddinggemma), Candle (CLIP)
    • OCR: Native Windows Media OCR APIs (windows-rs)
    • Speech Recognition: Local Whisper-tiny engine

πŸ“„ License

Distributed under the MIT License. See LICENSE for details.

About

100% Local Semantic File System & Intelligent AI Desktop Agent for Windows

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages