cd /news/artificial-intelligence/offline-rag-on-ios-with-spatial-inte… · home topics artificial-intelligence article
[ARTICLE · art-104153] src=news.ycombinator.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Offline RAG on iOS with Spatial Integration

CartoType developer Graham Asher has released a demo of the CartoType Field Assistant, an offline Spatial RAG pipeline running natively on an iPhone that combines local language models with offline mapping. The system uses a portable C++ engine for vector search across an encrypted on-device SQLite database, and a local LLM (Gemma) to answer queries about assets tied to physical locations, with no API keys or cloud dependencies. The demo shows the app answering a query about a hiker with a dislocated shoulder near Tuolumne Meadows in Airplane mode.

read2 min views7 publishedAug 20, 2026

I'm the developer behind CartoType. I’ve been working on bridging local language models with offline mapping, and I have just put together a demo of a completely offline Spatial RAG pipeline running natively on an iPhone. The new system is named the CartoType Field Assistant. You can find the website at https://cartotype.com

Demo (1m 19s): https://www.youtube.com/shorts/a8yQPn7_jyI

Use cases: Any organisation with field technicians or emergency first responders needs complex procedural knowledge tied to physical locations ('assets') where they don't have guaranteed network connectivity. Examples include offshore wind farms, power distribution networks, railway infrastructure, mountain rescue, and military uses.

For this demo I query the iPhone app in Airplane mode: "A hiker near Tuolumne Meadows has a dislocated shoulder. What is the reduction protocol, and where is the Tuolumne Meadows Ranger Station?"

HOW IT WORKS

The core is a portable C++ engine running vector search across an encrypted, on-device SQLite database. The database contains the user's proprietary manuals, chunked and converted into embeddings. The search finds relevant chunks and uses them as a prompt for a local LLM (Gemma). This process is RAG (Retrieval-Augmented Generation).

Spatial integration is provided by connecting assets in the map to a table in the database and using the table to find any assets referred to in queries and pan the map to them.

Everything runs on-device with no API keys or cloud dependencies. The demo app is written in Swift and uses the CartoType framework, which provides a wrapper over the underlying core API giving asynchronous and synchronous access to the AI functions.

DATA PREPARATION

To get up and running, the user creates a map containing the assets, using CartoType's makemap tool, then feeds the map and their proprietary documentation into CartoType's makedata tool, which writes the encrypted SQLite database to be stored on the device. The map, which may also be encrypted, is also stored on the device. The CartoType library, when running the Field Assistant's RAG system, also provides full map rendering, location searching, routing and geocoding as it always has done.

Comments URL: [https://news.ycombinator.com/item?id=49371913](https://news.ycombinator.com/item?id=49371913)

Points: 1

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @cartotype 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/offline-rag-on-ios-w…] indexed:0 read:2min 2026-08-20 ·