top | item 37694342

(no title)

btwillard | 2 years ago

Our project Outlines provides JSON output in a near optimal way that also works for all types of pre-trained transformer-based LLMs: https://github.com/outlines-dev/outlines

Our approach also extends to EBNF grammars and LALR parsing. There's an example of that in the repository. It builds off of the Lark library, so you can use existing grammar specifications instead of starting from scratch.

discuss

order

nacs|2 years ago

Outlines looks like an actively maintained alternative to Guidance. Do you have any plans to support llama.cpp?

btwillard|2 years ago

We've considered it, but I haven't started any work on it. Feel free to create an issue to track the status, if only to find out who else might be interested and/or working on it.