top | item 47073706 (no title) gwerbin | 10 days ago We were messing around at work last week building an AI agent that was supposed to only respond with JSON data. GPT and Sonnet more or less what we wanted, but Gemma insisted on giving us a Python code snippet. discuss order hn newest otabdeveloper4|10 days ago > that was supposed to only respond with JSON data.You need to constrain token sampling with grammars if you actually want to do this. written-beyond|10 days ago That reduces the quality of the response though. load replies (2) cubefox|10 days ago Gemma≠Gemini
otabdeveloper4|10 days ago > that was supposed to only respond with JSON data.You need to constrain token sampling with grammars if you actually want to do this. written-beyond|10 days ago That reduces the quality of the response though. load replies (2)
otabdeveloper4|10 days ago
You need to constrain token sampling with grammars if you actually want to do this.
written-beyond|10 days ago
cubefox|10 days ago