My role
Personal project · In development
Swift
SwiftUI · RAG · LLM tool calling · SQLite · FSRS
Background
Learning material, AI assistance and recall scheduling need to share trustworthy context.
Approach
Connect scoped retrieval and typed application tools with native Swift modules, SQLite and FSRS.
Study and recall



Practice and progress



Settings and AI



My contribution
- Built a native learning app for iPhone, iPad and Mac using SwiftUI, SQLite and FSRS spaced repetition, with AI assistance grounded in notes and PDFs.
- Built an agentic assistant that navigates screens, creates and edits decks and notes, changes study settings and generates question variants through LLM function calling and typed application APIs.
- Implemented multi-step orchestration with tool-result feedback, saved conversation state and streamed responses, with execution limits, version checks and human review for sensitive actions.
- Grounded responses using scoped lexical retrieval and page/section citations; recorded changes in an action history with confirmation and undo.
- Implemented BKT, DAS3H, dynamic Rasch and DINA learner models using Bayesian inference, logistic regression, ridge fitting and expectation-maximisation, evaluated with held-out log loss, Brier score and calibration reports.
- Separated AI, scheduling and storage into Swift modules; protected records with SQLite WAL, optimistic concurrency and idempotent operations, with Anki import/export and OpenAI/Gemini integrations.
Outcomes
- Impact estimate: approximately 95% less flashcard-preparation time (2 hours versus 5 minutes for 50+ cards, including AI generation and review).