guardrails-ai / guardrails

Adding guardrails to large language models.
https://www.guardrailsai.com/docs
Apache License 2.0
3.6k stars 259 forks source link

[feat] Add json constraint decoding to core-schema-impl/0.5.0 branch. #835

Closed JosephCatrambone closed 1 week ago

JosephCatrambone commented 2 weeks ago

Adds the formatters module and the JSONFormatter module, which in turn uses JSONFormer to better constrain the output of huggingface based models.

Performance delta on a 2023 MacBook Pro with Apple M3 Max:

These deltas may be a result of...

notion-workspace[bot] commented 1 week ago

Constraint Generation Standalone Class