Repository navigation
en AI Translation and Image Search
Lumen requires zero subscriptions and zero cloud accounts. Configure local models (oMLX / Ollama), any OpenAI-compatible HTTPS endpoint, and completely offline EmbeddingGemma 2 semantic document & image search inside Settings → AI & Models.
Privacy Boundary:
trandqarequests are sent only when you explicitly press Enter, strictly to the endpoint you configured. Pure filename search and previews load zero AI models.
| Style | Examples | Behavior |
|---|---|---|
Auto-direction (zh ↔ en) |
tr Hello world / translate ... / 译 你好 / 翻译 ...
|
Automatically detects Chinese ↔ English |
| With selected/fresh text | Select text and type tr or tr:ja
|
Translates attached selection or 60s-fresh clipboard text |
| Explicit target language |
tr:zh Launch notes, tr:ja Good morning, tr French Hello, 译日 早上好
|
Supports :, :, space, or compact Chinese prefix |
Simplified Chinese (zh), Traditional Chinese (zh-tw), English (en), French (fr), German (de), Japanese (ja), Russian (ru), Korean (ko), Spanish (es), Portuguese (pt), Italian (it), and Arabic (ar).
Tip for Italian: Use
tr:it <text>ortr Italian <text>(baretr it ...avoids misreading the English pronoun"it"as a language code).
-
↩(Enter): Start streaming translation; press↩again when finished to copy the translated text. -
⌘↩(macOS) /Ctrl+↩(Windows): Replace the original text in place when captured from an editable field. -
Esc: Cancel an in-flight stream immediately. - You can also open the dedicated side-by-side Translation Panel from the menu bar / system tray for longer passages.
-
General Prompt Q&A: Type
qa <question>(e.g.,qa How does Rust atomic file replacement work?), or summon with selected text and typeqa/qa summarize key risks. Prompt-only Q&A never browses the web or attaches unscoped files. -
Grounded Local Folder / File RAG (v0.9.0):
- Highlight any folder and press
Tabto enter folder scope (or select a local file), then typeqa <question>(e.g.,qa late-delivery penalty?orqa summarize this folder). - The shared Rust RAG engine retrieves only local indexed text (
0.11–0.22 msmedian recall) or safely reads local documents on demand (Markdown, text, code, Office, PDF pages) while strictly enforcingSF_DATALESS/ OneDrive zero cloud downloads and credential hard blocks. -
Scanned PDF & Photo Inventory Fallback (
scope_inventory): When a folder contains no extractable text (e.g., scanned PDFs, ID photos, or cloud placeholders), Lumen builds a zero-hydration, credential-filtered directory inventory citation soqa summarize this folderaccurately describes its contents.
- Highlight any folder and press
-
Rich Markdown by Default: macOS renders headings, bold/italic (including CJK + emoji adjacency), horizontal rules, lists, blockquotes, fenced code blocks, tables, and
[1]accent citations natively inNSTextView(QaMarkdownRenderer); Windows renders them via pure zero-innerHTMLDOM under strict CSP. Pressing↩Copy preserves clean raw Markdown. -
Clickable Local Citations: Citation chips appear beneath the answer—click
[1] contract.pdf · P.2to jump straight to that PDF page in inline preview, or click a folder inventory chip to open the folder directly. -
Controls:
↩submits via SSE (and copies when finished);PgUp/PgDnscrolls;Esccancels immediately.
Open Settings → AI & Models → Translation & Q&A Providers:
-
Free Local Providers (Recommended):
-
oMLX: preset
http://127.0.0.1:8000/v1 -
Ollama: preset
http://127.0.0.1:11434/v1 - Plain HTTP is permitted strictly for loopback addresses (
127.0.0.1,[::1],localhost).
-
oMLX: preset
-
Custom OpenAI-Compatible HTTPS API: Click New Provider, enter your
https://.../v1base URL and API key, click Test Connection or List Models to pick a chat model, and save. -
Key Isolation: Saved API keys are strictly bound to both the provider and its endpoint URL (changing an endpoint never leaks the old key to the new host). Keys live in user-only
0600/ Keychain storage on macOS and current-user DACL storage on Windows.
Enable semantic search to find indexed document passages by meaning—even when you don't remember the filename or exact keywords.
- Under Settings → Index, add the document folders you want indexed for content and semantics.
- Under Settings → AI & Models, select Built-in Gemma 2 as your text embedding engine.
- Pick a download source: HuggingFace or HF-Mirror (auto-selected in Mainland China timezones).
-
Windows Offline Import: Air-gapped or slow-network Windows hosts can import pre-downloaded
embeddinggemma-2-Q8_0.ggufandmmproj-embeddinggemma-2-Q8_0.ggufdirectly inside Settings (verified by exact byte size + SHA-256).
-
Windows Offline Import: Air-gapped or slow-network Windows hosts can import pre-downloaded
- Once downloaded and verified, Lumen backfills text embeddings automatically in the background with a live
embedded / limitprogress bar.
- Switch the text embedding engine to Local Server (oMLX / Ollama).
- Enter your loopback endpoint (
http://127.0.0.1:8000/v1,http://127.0.0.1:11434/v1, orunix:///...on macOS) and pick an embedding model. - Vectors are partitioned by
model_name + dimension, so switching models or ports stays clean—and stopping the local server never breaks filename search, FTS5 content search, or built-in image search.
Find screenshots and photos by describing what's inside them—completely offline.
- Download/enable the Gemma 2 Vision Projector (
mmproj-embeddinggemma-2-Q8_0.gguf) in Settings → AI & Models. - Choose local photo/screenshot folders under Settings → Index.
- Supported formats:
PNG,JPEG/JPG,HEIC/HEIF,WebP(up to 12 MiB / 32 MP per image; cloud-only placeholders are never downloaded). - Newest images are indexed first (
mtime DESC) automatically in the background. On incremental restarts, Settings clearly displaysexisting total + newly added(your existing visual index is preserved, never wiped). -
Search:
- Explicit image mode:
img red sailboat,img whiteboard architecture,img receipt screenshot - Main bar auto-recall: natural keywords typed in the main bar also surface high-confidence visual matches below exact filename hits.
- Explicit image mode:
Toggle Image OCR under Settings → Index to extract text from local screenshots and scanned images into full-text search:
- macOS: Native Apple Vision OCR.
-
Windows: Native WinRT
Windows.Media.Ocrusing your installed Windows OCR language packs (e.g.,en-US,zh-Hans-CN).
-
3 Adaptive RAM Tiers (
Low/Balanced/High): Without AI models loaded, the 8 GB Low-RAM tier indexes 500K files in70.1 MiBon macOS (0.36 msp50) and42.6 MiBon Windows x64 (0.93 msp50), while 1.67M real files stay in ~144.7 MiB. -
Automatic RAM-Scaled Vector Ceilings & Idle Unload: Compact
f16vectors cap automatically at 2.5% of physical RAM for text (~410 MiBon 16 GB, max1,024 MiB) and 1% for images (max512 MiB), auto-unloading when idle. -
~265× Lower Idle Background CPU on Battery: Zero-polling OS power & thermal observers (macOS
PowerStateMonitor, WindowsWM_POWERBROADCAST+EcoQoS) pause heavy embedding on battery/low power/thermal load and tighten idle unload windows—achieving0%steady idle CPU on both OSes. Windows auto-selects Vulkan GPU or CPU AVX2 inside a Job Object for clean teardown.
Next Guide: Permanent Snippets, Clipboard History & Daily Utilities →
Lumen v0.9.0 · Wiki 首页 / Home · Releases · README (中文) · README (EN) · Discussions · 开源许可 MIT
- 1. 快速安装与 1 分钟上手
- 2. 全盘检索、拼音与目录作用域
- 3. 统一预览与 Windows QuickLook
- 4. 文件弹窗秒切与划词直通
- 5. 翻译、问答与本地 AI 搜图
- 6. 常用短语、剪贴板与效率套件
- 7. 智能分屏、快捷链接与脚本
- 8. 索引范围、外置盘与隐私安全
- 9. 快捷键与命令速查表
- 10. 常见问题与 CLI 进阶
- 1. Installation & Quick Start
- 2. Search Syntax & Folder Scope
- 3. Previews & Explorer QuickLook
- 4. Quick Switch & Selection Flow
- 5. Translation, Q&A & Local AI
- 6. Snippets, Clipboard & Utilities
- 7. Window Tiling, Quicklinks & Scripts
- 8. Indexing, Volumes & Privacy
- 9. Shortcuts, Commands & Parity
- 10. FAQ, Troubleshooting & CLI