News for hackers. Stuff that matters.
Re:Introducing Structured Outputs in the API by srcreigh on Tuesday August 06, 2024 @02:41PM (#41173861)
If I wanted to be a silly pedant, I’d say that Turing machines are language specifications and thus it’s theoretically impossible for an LLM or any program to validate output formats in general.
Re:Introducing Structured Outputs in the API by jes5199 on Tuesday August 06, 2024 @03:22PM (#41174285)
in _general_ sure, but if you restricted each token to conform to a Kleene-star grammar you should be able to guarantee that you get something that parses according to a context-free grammar