Skip to content
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

feat(option): to restrict the grammar #27

Open
2 tasks
grencez opened this issue May 14, 2023 · 2 comments
Open
2 tasks

feat(option): to restrict the grammar #27

grencez opened this issue May 14, 2023 · 2 comments
Labels
feature New feature or request

Comments

@grencez
Copy link
Contributor

grencez commented May 14, 2023

A parsing expression grammar might be possible. We'd have to track a frontier, so it's best to forbid recursion in the first position.

@grencez grencez added the feature New feature or request label May 14, 2023
@grencez
Copy link
Contributor Author

grencez commented May 16, 2023

Grammar restrictions should apply to individual lines of character dialogue because we impose a chatbot format, which is kinda fundamental to the project.

@grencez
Copy link
Contributor Author

grencez commented Sep 25, 2023

llama.cpp has grammar restrictions now. It's probably better than anything I could do initially. Will give it a look.

Need to get better sxpb parsing first so the grammar can be configured! It's in flight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant