Remix.run Logo
_heimdall 5 hours ago

Had you considered using something like XML as the transport format rather than JSON? If the UX is similar to zod it wouldn't matter what the underlying data format is, and XML is meant to support schemas unlike JSON.

podperson 5 hours ago | parent [-]

JSON Schema is a schema built on JSON and it’s already being used. Using XML would mean converting the XML into JSON schema to define the response from the LLM.

That said, JSON is “language neutral” but also super convenient for JavaScript developers and typically more convenient for most people than XML.

_heimdall an hour ago | parent | next [-]

Maybe I missed a detail here, sorry if that's the case!

Why would we need to concert XML, which already supports schemas and is well understood by LLMs, back to JSON schema?

verdverm 37 minutes ago | parent [-]

Because most of the world uses JSON and has rich tooling for JSONSchemas, notable many LLM providers allow JSONSchemas to be part of the request when trying to get structured output

yeasku 4 hours ago | parent | prev [-]

LLMs are not people.

We want a format for LLMs or for people?

3 hours ago | parent | next [-]
[deleted]
drowsspa 2 hours ago | parent | prev | next [-]

As a person myself, I very much prefer JSON

podperson 3 hours ago | parent | prev [-]

JSON schema is very human readable.