~/talk

Controlled generation for large language models (LLM)

TalkinRussianat PyCon Russia 2024 · 2024-07-26..07-27· [large-language-models, ai-assisted-development]
links:none on file
slides:none on file

Methods to make large language models (e.g., GPT-4, Claude) emit strictly formatted outputs like valid JSON or code, avoiding extra or missing fields that break integrations. Presents modern controlled-generation frameworks and techniques that combine LLMs with automata-like constraints to enforce formats, enable zero-shot classification, external function calls, and speed up generation.

AI-written summary · about

  1. 0:00Controlled LLM generation
  2. 1:27Why controlled generation matters
  3. 5:45Core control concepts
  4. 9:00How LLMs process text
  5. 11:31Text generation basics
  6. 14:06Sampling and token masking
  7. 18:43Finite state machines
  8. 22:36Finite automaton example
  9. 31:42Structured JSON generation
  10. 35:20Summary and benefits
  11. 36:04Q&A moderation use cases
  12. 37:31Framework availability
  13. 38:13Probability visualization benefits
  14. 40:02Performance impact of control
  15. 41:46Combining control methods
  16. 43:13Advanced regex control
  17. 45:21Dynamic regex per step
  18. 46:25Controlling output length
  19. 48:37Q&A closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.