News for hackers. Stuff that matters.
Re:Show HN: LLMs can generate valid JSON 100% of the time by karmasimida on Tuesday August 15, 2023 @02:16AM (#37130792)
I see grammar constrained generation for 2 major advantages:

1. It consumes fewer tokens, no need to add too many examples into the prompt.

2. It suffers less from the forgetting issue.

Another minor advantage is you can control precisely where your desired output to begin with.

But overall, those are nice perks not too substantial IMO.

There are no comments on this comment yet.