outlines — Easy Playground
Structured generation: constrain LLM output to JSON, regex, grammars
Getting started with outlinesRun locally
Install
pip install outlinesPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: outlines)
outlines is a third-party package. Structured generation: constrain LLM output to JSON, regex, grammars. Install with: pip install outlines
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?