~/talk

Verifying LLM Input and Output for Developers

Talkat droidcon Berlin 2025 · 2025-09-24..09-26· [ai-assisted-development]
slides:none on file

Practical checklist for Android apps: sanitize user text with regex and content-moderation APIs, enforce a token budget by precomputing prompt length and truncating, keep conversation history with a sliding window or summarized context, and use retrieval-augmented prompts for factual answers. Require schema validation by asking for JSON and parse it with Kotlinx.serialization, run a second LLM to perform semantic checks, post-process/redact sensitive fields, and cover happy, edge and prompt injection tests as unit and integration tests.

AI-written summary · about

  1. 0:00Verifying LLM input/output
  2. 1:03Why LLM verification matters
  3. 2:34How LLMs work & limits
  4. 7:49LLM output challenges
  5. 9:37Two-way LLM verification
  6. 10:17Sanitizing LLM input
  7. 13:23Testing prompts in AI Studio
  8. 16:31Sanitizing user input
  9. 18:39Content moderation APIs
  10. 20:29Token budget limits
  11. 22:36Sliding windows for history
  12. 24:02Temporal checks
  13. 25:28Output consistency checks
  14. 26:31Post-processing LLM output
  15. 27:33Factual consistency with RAG
  16. 28:40Schema & semantic validation
  17. 31:06Unit & edge case testing
  18. 32:11Prompt injection testing
  19. 32:54Summary of best practices
~/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.