Repository navigation
Regex decoding support #485
Closed
Jiayang Wu (sheepymeh)
started this conversation in
New features / APIs
Replies: 4 comments
|
Could you please explain more on this? What is regex decoding? |
0 replies
|
It's decoding that follows a specific format (typically described by a regex). Some examples are: Outlines: https://github.com/outlines-dev/outlines SGLang: https://lmsys.org/blog/2024-02-05-compressed-fsm/ This allows the model to generate according to a fixed format that can later be decoded, such as ensuring that output is valid JSON. |
0 replies
|
Thank you for the suggestion! I am adding it to our new Features discussions so that we can look into this further |
0 replies
|
All examples have been updated in this PR. Please see the READMEs in each example for more information on grammars and tool calling. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is regex decoding or a "JSON mode" available?
All reactions