Skip to content

Nullability not respected in JSON Schema generation #97

@ponychicken

Description

@ponychicken

Right now in the generated json schema all fields are marked as required (i think its a good trick to force the model to populate everything) but the types of fields are never allowed to be null. Even though the Elixir schema would accept a null value fine.
For complex documents there might be fields which are not always present in the source text, and forcing the model to put something which is not present just results in hallucinations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions