Local desktop apps shouldn't need Docker, Elasticsearch, or a 2 GB background daemon just to search personal history. Across LocalMinutes, LocalRecall, and LocalVoice, every search query runs directly against embedded SQLite in WAL mode.
1. Diacritic Folding Before Indexing
SQLite's default unicode61 tokenizer handles basic accents, but Turkish dotless ı / İ and OCR typos still break exact lookups. By storing a folded mirror column (ş→s, ç→c, ğ→g, ı→i, ö→o, ü→u) inside the FTS5 virtual table, typing sifre or calisiyor matches şifre and çalışıyor instantaneously.
2. Hybrid FTS5 + N-Gram RRF Ranking
For noisy OCR captures in LocalRecall, we combine FTS5 BM25 scores with character n-gram recall via Reciprocal Rank Fusion (RRF). On a 10,000-frame vault, median query latency stays at 0.64 ms — fast enough to highlight matched bounding boxes live on every keystroke.
3. Concurrent Writes Without UI Stutter
Enabling PRAGMA journal_mode=WAL and PRAGMA synchronous=NORMAL allows background OCR and transcription workers to commit continuously while the PyQt6 UI reads at 60 FPS with zero lock contention.