Applied Knowledge Systems Ltd

Terraphim AI

Privacy-first semantic search across your knowledge terrain. Local knowledge graphs, Aho-Corasick automata, and role-based relevance -- running entirely on your hardware. No data leaves your machine.

Language Rust 2024 Licence MIT / Apache-2.0 Crates 29

Map Legend

Key features and capabilities of the Terraphim terrain. Each symbol represents a distinct capability of the system.

Privacy-First Architecture
All data remains on your machine. No telemetry, no cloud dependency. Your knowledge graph is exclusively yours.
Knowledge Graphs
Per-role semantic graphs mapping concepts, synonyms, and documents. Thesaurus-driven expansion at query time.
Aho-Corasick Automata
Sub-millisecond concept extraction using LeftmostLongest matching. 2,847 concepts indexed in 12ms.
Multi-Haystack Search
Ripgrep, Confluence, Jira, Discourse, JMAP email, ClickUp, Logseq, Quickwit, and MCP protocol -- searched simultaneously.
Configurable Relevance
BM25, BM25F, BM25Plus, TitleScorer, or TerraphimGraph scoring. Each role selects its own ranking function.
Firecracker VMs
Sub-two-second microVM boot for sandboxed execution. Local, firecracker, or hybrid mode selection per operation.
MCP Server
Full Model Context Protocol support. Autocomplete, text matching, fuzzy search, and graph connectivity exposed as AI tools.
Desktop Application
Svelte and Tauri. Native on macOS, Linux, Windows. Real-time search, graph visualisation, and configuration management.

Survey Data

29
Rust Crates
<1ms
Concept Extraction
200KB
WASM Bundle
0
Bytes to Cloud

The persistence layer supports multi-backend cascading ordered by speed: memory, DashMap, SQLite, S3. Cache warm-up is automatic and transparent. Objects exceeding one megabyte are compressed with zstd before caching.


Field Log

Interactive session recorded from the Terraphim REPL. All searches execute locally with zero network traffic.

Terraphim Agent -- Interactive Session Session TF-2026-0324
[09:14:02] $ terraphim-agent [09:14:02] Terraphim AI v0.9.0 -- Privacy-first semantic search [09:14:02] Loading role: Terraphim Engineer [09:14:02] Thesaurus loaded: 2,847 concepts | Automata built in 12ms [09:14:02] Type /help for available commands. [ ] [09:14:15] terraphim> /search "knowledge graph persistence" [09:14:15] Searching across 4 haystacks... (BM25 + TerraphimGraph) [ ] [09:14:15] [0.94] terraphim_persistence/src/lib.rs [ ] Multi-backend storage with transparent cache warm-up. [ ] [09:14:15] [0.87] terraphim_rolegraph/src/graph.rs [ ] Per-role knowledge graph with node/edge relationships. [ ] [09:14:15] [0.81] crates/terraphim_config/src/roles.rs [ ] Role configuration with relevance function selection. [ ] [09:14:15] 3 results in 47ms | 0 network calls | 0 bytes transmitted [ ] [09:14:28] terraphim> /chat "How does the automata system work?" [09:14:29] The automata system builds Aho-Corasick finite state machines [ ] from thesaurus entries. It uses LeftmostLongest matching to [ ] extract concepts from documents in a single pass. The automata [ ] also power the autocomplete API, which compiles to WASM for [ ] in-browser use at ~200KB compressed.

Chart Your Course

Terraphim AI is open source under MIT and Apache 2.0 dual licence. Clone the repository, build with Cargo, and start searching your own knowledge terrain. No account required. No data leaves your machine.