Re:Native JSON Output from GPT-4
by bombela on Wednesday June 14, 2023 @10:41PM
(#36335803)
It's harder to form a tree with key value. I also tried the relational route. But it would always messup the cardinality (one person should have 0 or n friends, but a person has a single birth date).
[ Parent
| on HN ]
Re:Native JSON Output from GPT-4
by rubyskills on Wednesday June 14, 2023 @11:28PM
(#36336054)
It's also harder to stream JSON? Maybe I'm overthinking this.
Re:Native JSON Output from GPT-4
by sheepscreek on Thursday June 15, 2023 @09:00AM
(#36339827)
You could flatten it using namespaced keys. Eg.
{
parent1: { child1: value }
}
Becomes one of the following: parent1/child1=value
parent1_child1=value
parent1.child1=value
..you get the idea.