~/talk

Prompting Is Programming: A Query Language for Large Language Models

links:none on file
links:none on file
links:none on file
slides:none on file

Introduces LMQL, a small query language that combines templated prompts, Python control flow and constraint decoding to steer off‑the‑shelf LLMs by masking illegal tokens at decode time rather than post‑validating. Implements logit masking with “follow” and “final” semantics to provably avoid constraints violations, supports branching decoders and function calls, and runs as a Python runtime plus web playground. Evaluations show LMQL preserves or improves accuracy while delivering 26–85% cost savings by reducing LLM calls.

AI-written summary · about

  1. 0:00Prompting as programming
  2. 1:51Core LLM challenges
  3. 3:35Introducing LMQL
  4. 5:20LLM text generation
  5. 7:05LMQL prompt templates
  6. 9:12Dynamic prompt construction
  7. 10:17Constraint enforcement
  8. 12:24Constraint semantics
  9. 14:13LMQL accuracy and efficiency
  10. 15:17LMQL future directions
  11. 16:22Q&A: Constraints for NL outputs
  12. 18:08Q&A: External systems
  13. 18:52Q&A: Microsoft guidance
  14. 20:14Q&A: Tools and function calls
  15. 21:37Q&A: Robustness measurement
  16. 22:42Q&A: LLMs as classifiers
  17. 24:30Q&A: LMQL vs LangChain
  18. 25:51Q&A: Parallel queries
  19. 28:21Q&A: Constraints in alignment
  20. 29:46Summary
~/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.