2 ms·
I'm in the middle of moving my app to openAI structured output. Could you please explain what you mean by "which everyone moved on from"?
by jLaForest 2mo ago
I'm in the middle of moving my app to openAI structured output.
Could you please explain what you mean by "which everyone moved on from"?
- slickytail 2mo agoStructured decoding limits next-token probabilities to ensure valid JSON. The main issue is that if the model puts a substantial probability on an invalid token, then it was already confused, and in that case, you don't actually want whatever the next-most-likely valid token is: even if it's syntactically valid, it's likely semantically erroneous.
- rhodysurf 2mo agoSo whats the alternative? Letting it codegen a file and the piping that? What a worse workflow
- qeternity 2mo agoAlternative is to fail the validation and regenerate the request, but I have no idea what this person is talking about. It is absolutely not the case that everyone has moved on from structured generation. Absurd claim.
- slices 2mo agosounds like an argument in favor of structured output, is that right?
- qeternity 2mo agoNot sure why you think everyone has moved on from this. Valid JSON is only one aspect. It almost certainly has far more uptake today than ca. Sonnet 3.7. Grammar engines can enforce a lot of other things too. Models are actually really good at emitting valid JSON, but complex schemas effectively require it.