Replies: 1 comment 13 replies
-
Hi @nchammas ! Personally I didn't use Outlines yet, but I've heard good things, so it's probably a good place to start. |
Beta Was this translation helpful? Give feedback.
13 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.
-
I am just starting to experiment with LLMs for the first time and need to constrain the model's output using a Lark grammar.
I noticed that @erezsh recently starred parserLLM, but that project seems unmaintained.
I then stumbled on llama.cpp's GBNF, which seems like an actively supported and developed method for accomplishing my goal. However, I assume GBNF is not exactly the same thing as Lark's flavor of EBNF. Would it be worthwhile to add some kind of export method that converts a Lark grammar into GBNF?
Finally, while looking through the Lark README I noticed Outlines, which has its own support for generating structured output, this time built directly using Lark. This seems like the ideal solution.
Should I just use Outlines? Asking here in case I am missing something obvious, as it is my first rodeo with LLMs.
Beta Was this translation helpful? Give feedback.
All reactions