TERRAPHIM

Privacy-first AI assistant. Semantic search via knowledge graphs. All connections routed locally -- nothing leaves your switchboard.

Search Knowledge Graph AI Privacy Haystacks

Switchboard Modules

Knowledge Graphs
Aho-Corasick automata build semantic graphs from your documents. Concept-level search with thesaurus expansion across all your knowledge sources.
Privacy-First
Every connection stays local. No cloud routing, no data exfiltration. Your knowledge graph lives on your device and nowhere else.
Multi-Source Search
Patch into Confluence, Jira, Discourse, email (JMAP), local files, and Quickwit. One query routes through all your haystacks.
Role Profiles
Each role has its own patch configuration: knowledge graph, haystacks, and relevance function. Switch routing contexts instantly.
MCP Integration
Model Context Protocol server exposes autocomplete, text matching, and graph connectivity as pluggable AI tools via stdio, SSE, or HTTP.
Firecracker VMs
Secure command execution in isolated microVMs. Sub-2-second boot. Sandbox untrusted code without performance overhead.
Desktop Application
Native Svelte + Tauri desktop app with real-time search, knowledge graph visualisation, role switching, and configuration management.
LLM Support
OpenRouter and Ollama provide summarisation, chat completion, and intelligent descriptions. Feature-gated for clean builds.
29 Crates
6 Haystacks
5 Relevance Fns
<2s VM Boot
200KB WASM

Signal Routing

How data flows through Terraphim -- from query to results.

Query Config Automata Haystacks Rolegraph Scoring Results

Patch In

Connection Sequence
# Clone and build
git clone https://github.com/terraphim/terraphim-ai
cd terraphim-ai
cargo build --release

# Start the server
cargo run --release -- --config terraphim_engineer_config.json

# Start the desktop frontend
cd desktop && yarn install && yarn dev

# Or launch the TUI
cargo build -p terraphim_tui --features repl-full --release
./target/release/terraphim-agent
MCP Patch Panel
# Start MCP for AI tool integration
cd crates/terraphim_mcp_server
./start_local_dev.sh

# Available tools:
# autocomplete_terms      -- fast term completion
# find_matches            -- pattern matching
# replace_matches         -- text replacement
# load_thesaurus          -- concept loading
# fuzzy_autocomplete      -- Jaro-Winkler search

Make the Connection

Route your knowledge locally. Privacy-first, zero cloud dependency.