YAML is just as effective at communicating data structure to the model while using ~50% less tokens. I now convert all my JSON to YAML before feeding it to GPT API's
I've heard this a lot but don't understand where this idea comes from. With JSON you can strip whitespace whereas with YAML you're stuck with all these pointless whitespace tokens you can't do anything about. I would recommend the exact opposite, JSON is just as effective while using less tokens. This example JSON: {"glossary":{"title":"example glossary","GlossDiv":{"title":"S","GlossList":{"GlossEntry":{"ID":"SGML",…
I have absolutely no proof but sometimes feel like the responses I get are weaker if there is no white space in the structured data.