RAG on iOS: Grounding an On-Device LLM in Your App's Own Content
How I built retrieval-augmented generation 100% on the iPhone for Ritus, my coffee app: structure-based chunking, BM25 plus embeddings, Reciprocal Rank Fusion, a prompt budget for a 4k window, Apple's Foundation Models, and an eval that caught four real bugs.

