Private semantic
search for your
knowledge

Rust Open Source Local-First 2024

Capabilities

01

Knowledge Graphs

Per-role semantic graphs mapping concepts, synonyms, and documents. Each role maintains its own thesaurus-driven graph with configurable scoring strategies.

02

Haystack Sources

Pluggable indexers for local files, Confluence, Jira, Discourse, JMAP email, ClickUp, Logseq, Quickwit, and MCP protocol. Your data stays where it lives.

03

Automata Engine

Aho-Corasick automata compiled from thesaurus entries for sub-millisecond concept extraction. 2,847 concepts indexed and matched in 12ms.

04

Relevance Scoring

Three scoring strategies: TitleScorer for document-centric ranking, TerraphimGraph for semantic graph traversal, and BM25/BM25F/BM25Plus for statistical relevance.

05

Secure Execution

Firecracker microVMs provide sub-2-second cold start for isolated code execution. Your search environment is as secure as your machine.

06

MCP Integration

Model Context Protocol server exposes search, graph operations, and document retrieval to any MCP-compatible client. Connect your AI tools directly.

0 Haystacks
0 Graph Nodes
0 Avg Latency
0 Cloud Egress

In Action

$ terraphim search "rust async patterns"

Found 23 results in 12ms across 5 haystacks

1. Tokio Runtime Architecture [score: 0.94]
~/docs/rust-patterns/async-runtime.md
Concepts: async_executor, task_spawning, work_stealing

2. Pin and Unpin Deep Dive [score: 0.91]
~/docs/rust-patterns/pin-unpin.md
Concepts: self_referential, future_polling, stack_pinning

3. Channel Patterns for Concurrency [score: 0.87]
~/docs/rust-patterns/channels.md
Concepts: mpsc, broadcast, oneshot, backpressure

$ terraphim chat "explain the work stealing pattern"

Based on your local knowledge graph (3 connected documents):

Work stealing is Tokio's strategy for distributing async tasks across
threads. When a worker thread's queue empties, it "steals" tasks from
other threads' queues. This keeps all cores busy without centralised
scheduling overhead...