src-willard-2023-outlines source
Efficient Guided Generation for Large Language Models
locator
notes
Outlines: recasts generation as transitions of a finite-state machine with a precomputed index from states to allowed vocabulary tokens, constraining output to regular expressions and context-free grammars with little overhead.