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
I am getting a invalid json when using Structured Output and sending a json schema that contains a string with a date format.
This might be because LoRAX structured output is using Outlines, and Outlines does not support all json formats (dottxt-ai/outlines#215). But I would still expect LoRAX to output a valid json object, or clearly document this behavior.
@jeffreyftang I see that you are assigned to this. Looks like this is solved by #567, and all that is needed is an upgrade to the latest version of outlines.
System Info
lorax 0.9.0, running with docker.
Information
Tasks
Reproduction
I am getting a invalid json when using Structured Output and sending a json schema that contains a string with a date format.
This might be because LoRAX structured output is using Outlines, and Outlines does not support all json formats (dottxt-ai/outlines#215). But I would still expect LoRAX to output a valid json object, or clearly document this behavior.
Will result in an output such as
This json output is invalid since the date is not quoted.
If you remove the
format
from the schema the results is a valid json object:However, I guess it would be possible to get the llm to output a string that is not in a valid date format in this case.
Expected behavior
I expect the structured output to be a valid json, following the provided json schema.
The text was updated successfully, but these errors were encountered: