Privacy-first AI assistant

TERRAPHIM

Semantic search across your knowledge, powered by knowledge graphs. Entirely local. No cloud dependency. Your data stays yours.

Built for depth, not breadth

Every feature is designed around a single conviction: your knowledge should be searchable, private, and entirely under your control.

Knowledge Graphs

Structured concept relationships connect your documents, notes, and code into a navigable semantic network -- not just keyword matches.

Local-First Privacy

All processing happens on your machine. No telemetry, no cloud sync, no third-party access. Your intellectual property stays yours.

Semantic Search

Multiple relevance algorithms -- BM25, title scoring, graph-based ranking -- work in concert to surface results that match your intent.

Multi-Source Haystacks

Search across local files, Confluence, Jira, email, Discourse, and more. One query, every source, unified results.

Role-Based Context

Switch between engineering, operations, or custom roles. Each role carries its own knowledge graph, search preferences, and data sources.

Extensible Architecture

Built in Rust with a modular crate system. Add new data sources, relevance functions, or AI providers without touching core logic.

Three steps to focused search

From installation to insight in minutes, not hours.

Connect your sources

Point Terraphim at your local folders, Confluence spaces, email accounts, or any supported haystack. Configuration is declarative JSON.

Build your knowledge graph

The system constructs a thesaurus from your documents, builds Aho-Corasick automata for fast matching, and maps concept relationships.

Search with meaning

Queries are expanded semantically. Results are ranked by graph proximity, not just keyword frequency. You find what you meant, not what you typed.

Built by developers, for developers

A clean Rust API, modular crates, and no hidden magic.

# Install and run the server cargo install terraphim-server terraphim-server --config my_role.json # Search via HTTP API curl -X POST http://localhost:8080/documents/search \ -H "Content-Type: application/json" \ -d '{"query": "knowledge graph architecture"}' # Or use the TUI terraphim-agent # /search "semantic web patterns"

The best search is the one that respects your context, your privacy, and the relationships between your ideas.

-- The Terraphim design philosophy

Bring your knowledge into focus

Open source. Rust-powered. Privacy-first. Start searching with meaning today.

View on GitHub Read the Docs