noamgat / lm-format-enforcer

Enforce the output format (JSON Schema, Regex etc) of a language model
MIT License
1.01k stars 46 forks source link

Will it support generating multiple JSON in the future? #64

Closed Vincentyua closed 5 months ago

Vincentyua commented 5 months ago

In practical application, it may be necessary to generate multiple JSONs. For example, ”what is the weather like in Chicago and Los Angeles?“,Given a weather API, the model generates two JSON API calls for weather queries based on this API

Do you have a plan to support this feature? When will it be supported approximately? Very much looking forward to it!

noamgat commented 5 months ago

Hi! It should be possible by defining a single smart schema - either using List or an object.