i think people are underestimating the potential here for agents building - it is now a lot easier for GPT4 to call other models, or itself. while i was taking notes for our emergency pod yesterday ( https://www.latent.space/p/function-agents ) we had this interesting debate with Simon Willison on just how many functions will be supplied to this API. Simon thinks it will be "deep" rather than "wide" - eg a few functi…
100%, if the API itself can choose to call a function or an LLM, then it's way easier to build any agent loop without extensive prompt engineering + worrying about errors. Tweeted about it here as well: https://twitter.com/jerryjliu0/status/1668994580396621827?s=...
Native JSON Output from GPT-4
151–160 of 258 posts
Re: Native JSON Output from GPT-4
#152Earlier quoted context omitted.
Say it's a json API and may only reply with valid json without explanation.
Lol yes of course I tried that.
https://github.com/drorm/gish/blob/main/tasks/coding.txt
and
https://github.com/drorm/gish/blob/main/tasks/webapp.txt
With the second one, I reliably generated half a dozen apps with one command.
Not to say that it won't fail sometimes.
Re: Native JSON Output from GPT-4
#153Earlier quoted context omitted.
Who is Simon Willison? Is he big in AI?
formerly cocreator of Django, now Datasette, but pretty much the top writer/hacker on HN making AI topics accessible to engineers https://hn.algolia.com/?dateRange=pastYear&page=0&prefix=tru...
Re: Native JSON Output from GPT-4
#154i think people are underestimating the potential here for agents building - it is now a lot easier for GPT4 to call other models, or itself. while i was taking notes for our emergency pod yesterday ( https://www.latent.space/p/function-agents ) we had this interesting debate with Simon Willison on just how many functions will be supplied to this API. Simon thinks it will be "deep" rather than "wide" - eg a few functi…
It was already quite easy to get GPT-4 to output json. You just append ‘reply in json with this format’ and it does a really good job. GPT-3.5 was very haphazard though and needs extensive babysitting and reminding, so if this makes gpt3 better then it’s useful - it does have an annoying disclaimer though that ‘it may not reply with valid json’ so we’ll still have to do some sense checks into he output. I have been u…
Re: Native JSON Output from GPT-4
#155Earlier quoted context omitted.
GPT-4 was already a massive improvement on 3.5 in terms of replying consistently in a certain JSON structure - I often don't even need to give examples, just a sentence describing the format. It's great to see they're making it even better, but where I'm currently hitting the limit still in GPT-4 for "shelling out" is about it being truly "creative" or "introspective" about "do I need to ask for clarifications" or "c…
It is “good enough”. Where I struggle is maintaining its memory through a longer request where multiple iterations fail or succeed and then all of a sudden its memory is exceeded and starts fresh. I wish I could store “learnings” that it could revisit.
Re: Native JSON Output from GPT-4
#156The JSON schema not counting toward token usage is huge, that will really help reduce costs.
Re: Native JSON Output from GPT-4
#157Did people really struggle with getting JSON outputs from GPT4. You can literally do it zero shot by just saying match this typescript type. GPT3.5 would output perfect JSON with a single example. I have no idea why people are talking about this like it’s a new development.
Unfortunately, in practice that works only most of the time . At least in our experience (and the article says something similar) sometimes ChatGPT would return something completely different when JSON-formatted response would be expected.
https://gist.github.com/BLamy/244eec016beb9ad8ed48cf61fd2054...
Re: Native JSON Output from GPT-4
#158i think people are underestimating the potential here for agents building - it is now a lot easier for GPT4 to call other models, or itself. while i was taking notes for our emergency pod yesterday ( https://www.latent.space/p/function-agents ) we had this interesting debate with Simon Willison on just how many functions will be supplied to this API. Simon thinks it will be "deep" rather than "wide" - eg a few functi…
What would be an example where there needs to be an arbitrary level of recursive ability for GPT4 to call itself?
Re: Native JSON Output from GPT-4
#159Glad we didn't get to far into adopting something like Guardrails. This sort of kills it's main value prop for OpenAI. https://shreyar.github.io/guardrails/
Re: Native JSON Output from GPT-4
#160Earlier quoted context omitted.
i mean only at the most superficial level. she has a ton of other validators that arent superceded (eg SQL is validated by branching the database - we discussed on our pod https://www.latent.space/p/guaranteed-quality-and-structure )
yeah, listened to the pod (that's how I found out about guardrails!). fair point, I should have said: "value prop for our use case"... the thing I was most interested in was how well Guardrails structured output.