FeaturedMobile
OnDeviceRAG – iOS
A SwiftUI app that answers questions about PDFs on the device. It extracts text with PDFKit, stores document chunks in SwiftData and searches embeddings with Accelerate.
The app uses Apple’s contextual embeddings for retrieval and Liquid AI’s LFM2 through the LEAP SDK to stream answers with page references. Once the required models are downloaded, document processing and chat work offline.
Technologies
SwiftUISwiftDataPDFKitAccelerateLFM2