| ▲ | kelseyfrog a day ago | |
A GBNF to json schema translator in such a way that structured responses from LLMs can be serialized back into string confirming to the original grammar. Initial results have been surprising in that even when using structured output, some of the generated json schema breaks the generation process in a way that syntactically invalid json is returned. I'm working through major providers to determine which are stable enough to rely on. The end goal is to generate strings confirming to non-json grammars for common formats like CSV, SQL, Python, sed, regex, etc. | ||