{
  "id": 20892882,
  "title": "Running an Embedding Model Next to My Notes on an iPhone",
  "url": "https://urgent.news/2026/11/20/running-an-embedding-model-next-to-my-notes-on-an-iphone",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-20T09:30:03.000Z",
  "source": {
    "name": "HackerNoon",
    "slug": "hackernoon",
    "url": "https://hackernoon.com/running-an-embedding-model-next-to-my-notes-on-an-iphone?source=rss"
  },
  "original_language": null,
  "account": "In March, the reporter wrote a note titled \"Rent split with Arjun.\" In October, they searched for \"what does my flatmate owe,\" but found no results because the two notes shared no words. This prompted the development of VB Notes, a markdown notes app where every note is a .md file in a chosen folder. The app runs embedding models on the device, allowing for private search without sending queries to a server. The reporter built the app using Expo and React Native, running a 350-million-parameter embedding model alongside the notes on an iPhone. After testing various models, the reporter chose LFM2.5-Embedding-350M as the default, with MiniLM as a \"Light\" choice in settings, and a multilingual model for those writing in multiple languages. To efficiently store the vectors, the reporter used int8 vectors in SQLite, reducing the size of each chunk from 4 KB to a quarter of that. The app keeps the original .md files as the source of truth, loading vectors on the first search and storing them in memory. The reporter used cosine scores as a fixed floor and a threshold below the best match to determine which matches to display.",
  "summary": "How I built private, on-device semantic search for a notes app using a 350M-parameter embedding model, SQLite, ExecuTorch, and llama.cpp.",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}