cyberneticlibrary

Generate valid JSON and code structures

outlinesskillsetup L29,423
Orchestra-Research/AI-Research-SKILLs
What it does

Guide LLM sampling using formal grammars and control flow to ensure valid output

Best for

Batch generation where you need guaranteed valid JSON/SQL/code and sampling speed is critical.

Inputs
  • · LLM model
  • · grammar or control flow spec
  • · prompt
Outputs
  • · valid structured output
Requires
  • · outlines
  • · vLLM or other inference engine
Preconditions

Grammar is unambiguous and terminating; LLM tokenizer matches grammar expectations

Failure modes

Grammar mismatch with tokenizer causes infinite backtrack; ambiguous grammar produces slow generation

Trust signals
  • · Used in Together.ai production
  • · Supports vLLM backend