Did they not even try asking gpt to format the output as json?
You are taking crazey pills. Stop
gpt-? is unreliable! That is not a bug in it, it is the nature of the beast.
It is not an expert at anything except natural language, and even then it is an idiot savant
It is VERY IMPORTANT that you respond in valid JSON ONLY. Nothing before or after. Make sure to escape all strings. Use this format:
{“some_variable”: [describe the variable purpose]}
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.
Any examples of your work would be greatly helpful as well!
It does an ok job. Except when it doesn't. Definitely misses a lot of the time, sometimes on prompts that succeeded on previous runs.
Danger! There be assumptions!!
gpt-? is a moving target and in rapid development. What it does Tuesday, which it did not do on Monday, it may well not do on Wednesday
If there is a documented method to guarantee it, it will work that way (modulo OpenAI bugs - and now Microsoft is involved....)
What we had before, what you are talking of, was observed behaviour. An assumption that what we observed in the past will continue in the future is not something to build a business on
This works well because it has a place to put any “keep in mind” noise. You can actually include that in your example.
This lets me specify general requirements (not just JSON structure) inline with the schema and in a very detailed and structured manor.
I think a better way to reply to the author would have been "how often does it fail"?
Every system will have outages, it's just a matter of how much money you can throw at the problem to reduce them.
Then have another pure code layer to parse that into structured JSON.
I think it’s the JSON syntax (with curly braces) that does it in. So YAML or TOML might work just as well, but I haven’t tried that.
{
parent1: { child1: value }
}
Becomes one of the following: parent1/child1=value
parent1_child1=value
parent1.child1=value
..you get the idea.Any other features you’d expect in a prompt builder like this? I’m tempted to add lots of other utility methods like classify(), summarize(), language(), etc
‘’’json
Or provide a few examples of user request and then agent response in json. Or both.
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 using this to make a few ‘choose your own adventure’ type games and I can see there’s a TONNE of potential useful things.