~/talk

What I Wish I Knew Before Building On-Device AI Features

Talkat iOS Conf SG 2026 · 2026-01-21..01-23· [ai-assisted-development]
links:none on file
slides:none on file

Built an on‑device feedback classifier and an attempted chat clone using Apple Foundation Models, discovering the 4096 token limit is input+instructions+tool calls, not just user text. Sampling controls matter—greedy, top‑K, top‑P with a seed change determinism—so choose per use case. Estimate tokens by divide text length by four and trim with summarization or a sliding window. Use persistent sessions for multilingual guardrails, pre‑warm on user typing to save battery and avoid models becoming unavailable under thermal or low‑power conditions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26What this talk covers and disclaimers
  3. 5:13Feedback classification with prompts
  4. 9:53Non-deterministic LLM outputs
  5. 10:58Sampling controls for determinism
  6. 13:54Sampling method selection
  7. 16:28Token limits and context window
  8. 18:57Token estimation for UX
  9. 20:43LLM safety practices
  10. 23:33Disclaimers for AI features
  11. 24:16Multilingual inputs handling
  12. 27:24Pre-warming models
  13. 28:49Model unavailability risks
  14. 29:32Recap of key takeaways and best practices
  15. 31:16Knowledge sharing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.