dottxt-ai / outlines

Structured Text Generation
https://dottxt-ai.github.io/outlines/
Apache License 2.0
9.57k stars 490 forks source link

Rely on `json_schema` parsing from `outlines_core` #1227

Open torymur opened 4 weeks ago

torymur commented 4 weeks ago

What behavior of the library made you think about the improvement?

There are two functions in outlines.fsm.json_schema:

How would you like it to behave?

Instead there are similar exposed python bindings in outlines_core, which outlines needs to rely on: