by dongecko · 2y ago · 0 comments
> Sure my friend, here is your requested json:
> ```
> {
> name: "Daniel",
> age: 47
> }
> ```
Unfortunately, the introductory sentence breaks directly parsing the answer, which means extra coding steps, or tweaking your prompt.
There are a bunch of libraries for this already, e.g.: https://github.com/outlines-dev/outlines