-
Notifications
You must be signed in to change notification settings - Fork 202
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
[Question] Support constraining via context free grammar for dsls #304
Labels
enhancement
New feature or request
Comments
We have some plans, but there is no concrete ETA currently. I will keep the issue to track the status. Do you have any concrete use cases in mind? |
Yes, I do. I recently was playing around with a DSL for HMI testing within the automotive domain. Using guidance my script look like the following:
resulting in the following response: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @lbeurerkellner,
Do you have any plans to "natively" integrate token constraint into the lmql language, perhaps through ATLR/Lark/ENBF grammar notation? This is a feature currently supported by guidance (https://github.com/guidance-ai/guidance?tab=readme-ov-file#context-free-grammars) and outlined in examples from other projects like outlines (https://github.com/outlines-dev/outlines?tab=readme-ov-file#using-context-free-grammars-to-guide-generation).
The text was updated successfully, but these errors were encountered: