-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust-only JSON schema construction #12
Comments
Rust's I would shift from a regex-based approach to a DFA-based one, and use the data structures already present in the |
Where are these missing constructs employed in
Yeah, we don't want to have to rewrite any of the |
We should also move any discussions about Rust regex and DFA features to #10. |
I added #15 which is a port of the This PR doesn't take into account the DFA-based approach, so it wouldn't necessarily serve towards that goal. So I think the concrete question would be:
|
Yes, let's get your code working and move from there. |
Awesome, I'll get to work 🙌🏽 |
This issue is about converting the
outlines
JSON schema-to-regex logic to Rust.First, let's determine how much needs to be converted and what the expected entry point(s) is(are)?
Second, we need to move to CFG-based schemas eventually. This conversion could serve as the beginning of that (open-source) effort. One way that could manifest: create CFGs for schemas and convert them to regex form. We could also consider an intermediate form that works for both targets.
The text was updated successfully, but these errors were encountered: