Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Schema / similar easy tree/array-like object schema use #31

Open
jrysana opened this issue Sep 16, 2024 · 1 comment
Open

JSON Schema / similar easy tree/array-like object schema use #31

jrysana opened this issue Sep 16, 2024 · 1 comment

Comments

@jrysana
Copy link

jrysana commented Sep 16, 2024

I'd really love to use a library like this to facilitate the transmission of JSON Schemas - or similar, isomorphic or homomorphic schema description for describing JS objects and other structured data.

For context, right now I'm using UTF-8 encoded JSON Schemas derived from Zod schemas (using modified zod and zod-to-json-schema) to transmit instructions to a language model server that ingests and compiles those schemas into constraints to control inference.

I've noticed when I load in huge schemas (e.g. to describe thousands of separate functions and their parameters) the time on the wire can get pretty bad, so I want a compressed binary representation that could be faster to transmit and ideally also faster to parse/build.

@iwoplaza
Copy link
Owner

I see! Thanks for opening up the issue. Do you have a set of examples of such large-scale JSON schemas that you can share publicly? Would help in being able to benchmark a potential solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants