On-device web search for a 1.7B phone-local LLM, no search API or backend
K4anan · reddit · 2026-10-14
The open-source app Private Mind added web search to fully local LLMs on iOS/Android. With web off, Qwen 3 1.7B hallucinates Apple's September event; with it on, it answers correctly and cites 5 pages. The hard constraint: a 1.7B model with a short context can't read 5 pages, so most of the work is choosing the few hundred words it actually sees.
- No search API: a hidden WebView opens DuckDuckGo (Brave/Mojeek fallbacks) and parses the results page.
- Top pages are split into 500-char chunks; an on-device embedding model (LFM2.5, 415MB) plus keyword matching picks the best 6 chunks, max 3 per page.
- Claims from a single site count less than claims two sites agree on; answers link every source.
- Web search is a per-chat toggle, off by default; the phone makes the same requests a browser would, and chat stays on device. Stack: react-native-executorch for both LLM and embeddings. Repo: software-mansion-labs/private-mind.
More from coding & agent
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29