top | item 46024178

(no title)

podperson | 3 months ago

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.

discuss

order

_heimdall|3 months ago

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|3 months ago

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|3 months ago

LLMs are not people.

We want a format for LLMs or for people?

drowsspa|3 months ago

As a person myself, I very much prefer JSON

podperson|3 months ago

JSON schema is very human readable.