Hacker News new | past | comments | ask | show | jobs | submit login
Using Cuelang With Go for extracting structured data from LLMs (cybernetist.com)
3 points by todsacerdoti 14 days ago | hide | past | favorite | 1 comment



Mainly an overview of using CUE from Go, with a little flair of validating the returned JSON of an LLM with CUE.

A while back, I used a CUE-like schema instead of OpenAPI. Most of the time, you can get the model to output JSON/CUE from example objects rather than full schemas, which I have a hunch will be distracting and not reasoned about.

https://github.com/hofstadter-io/hof/blob/_dev/lib/chat/cmd/...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: