-
Notifications
You must be signed in to change notification settings - Fork 0
17 Local Knowledge Retrieval and Search
Corresponding Specifications:
sys-arch/32-search-indexing-local-knowledge-privacy-architecture.md,sys-arch/ui-ux-11-search-local-knowledge-retrieval-architecture.md
Key Crates:crates/siar-storage,crates/siar-ui-state
Standard cloud messengers index message search queries on remote server clusters, creating massive metadata surveillance risks. In SIAR, search and knowledge retrieval are 100% local, offline, and cryptographically sealed:
[User Search Query: "evacuation route map"]
|
v
+---------------+---------------+
| |
v v
[Lexical Index: BM25] [Semantic Index: Local Embeddings]
(Tokenized Inverted Index) (Lightweight On-Device Vector Store)
| |
+---------------+---------------+
|
v
[Hybrid Reciprocal Rank Fusion (RRF)]
|
v
[Encrypted Result Set Displayed in UI (< 10 ms)]
Messages, documents, notes, and contact metadata are indexed locally using a pure-Rust BM25 engine backed by Stoolap:
pub struct SearchIndexEntry {
pub message_id: MessageId,
pub conversation_id: ConversationId,
pub author_id: AccountId,
pub timestamp: Timestamp,
pub token_terms: Vec<String>, // Lowercased, stemmed tokens
pub attachment_mime: Option<String>,
}-
Prefix & Wildcard Matching: Real-time autocomplete as the user types (
"emer*"$\rightarrow$ "emergency","emergent"). - Faceted Filters: Narrow results by sender, date range, conversation type (Direct vs Group), and media category (Photos, Audio, PDF Documents).
- Encrypted Inverted Index: Index tables are stored in the same AES-256-GCM / ChaCha20 encrypted database container as the message history.
For mission-critical emergency teams and off-grid field operations, SIAR supports Local Knowledge Retrieval:
- Offline Field Manuals: Searchable survival manuals, triage medical guides, and topography maps bundled into local knowledge stores.
- Smart Retrieval: Context-aware queries pull up relevant tactical protocols, frequency lists, and emergency contacts instantly even in complete radio silence.
SIAR — Survivable Identity & Autonomous Routing
Open Source Mesh & DTN Communications Platform | Dual Licensed under MIT / Apache-2.0 / Commercial
Documentation Index • GitHub Repository • System Specifications
- 04-Autonomous-Routing-and-Policy-Engine
- 05-Proximity-and-Hardware-Transports
- 06-Delay-Tolerant-Networking-and-Bundle-Forwarding
- 07-Battery-Aware-Scheduling-and-Emergency-Mesh
- 08-Offline-Event-Log-and-Outbox-Engine
- 09-Robust-Blob-Storage-and-Chunk-Transfers
- 10-Crash-Recovery-and-Data-Portability
- 11-Realtime-Audio-Video-Calling-Architecture
- 12-Cross-Platform-Client-Architecture
- 13-Messaging-Timeline-Composer-and-Inbox
- 14-Contacts-Groups-and-Security-Center
- 15-Nearby-Discovery-and-Out-of-Band-Pairing
- 16-Notifications-Presence-and-Background-Lifecycle
- 17-Local-Knowledge-Retrieval-and-Search
- 25-Design-System-Tokens-and-Responsive-Layouts
- 26-UI-UX-Performance-Testing-and-Quality-Gates
- 18-Protocol-Extensions-and-WASM-Plugins
- 19-Headless-Daemons-and-Embedded-Nodes
- 20-C-ABI-FFI-and-Native-Language-Bindings
- 21-Testing-Fuzzing-and-Network-Diagnostics
- 22-Getting-Started-and-Developer-Guide
- 23-Off-Grid-Survival-and-Field-Operations-Guide
- 24-System-Comparison-and-Benchmarking