You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspired by the langfun project, I created a schema to TypeScript generation feature on valibot, which is used for structured queries with LLMs. After some time of use, I found this to be a very powerful method, allowing almost all models to reliably generate complex types of objects, while commercial LLMs that support JSON Schema often make errors. Today, I discovered that arktype is the most comprehensible solution for performing this task. I hope arktype can include a method to directly serialize the schema into TypeScript textual representation, with validation and descriptions serialized into field comments. This will make it very easy for us to implement a high-level LLM query library like langfun in TypeScript.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Inspired by the langfun project, I created a schema to TypeScript generation feature on valibot, which is used for structured queries with LLMs. After some time of use, I found this to be a very powerful method, allowing almost all models to reliably generate complex types of objects, while commercial LLMs that support JSON Schema often make errors. Today, I discovered that arktype is the most comprehensible solution for performing this task. I hope arktype can include a method to directly serialize the schema into TypeScript textual representation, with validation and descriptions serialized into field comments. This will make it very easy for us to implement a high-level LLM query library like langfun in TypeScript.
Beta Was this translation helpful? Give feedback.
All reactions