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

Guided Generation for Syntax dependent tasks #69

Open
HallerPatrick opened this issue Aug 20, 2023 · 0 comments · May be fixed by #82
Open

Guided Generation for Syntax dependent tasks #69

HallerPatrick opened this issue Aug 20, 2023 · 0 comments · May be fixed by #82
Labels
discussion Things to discuss enhancement New feature or request

Comments

@HallerPatrick
Copy link
Collaborator

Tools like Guidance help during text generation by not necessarily improving on the prompt.

A new paper called "Efficient Guided Generation for Large Language Models" does the same but with a cheaper runtime. One can provide a regex with which the model is guided during text generation. This might help with syntax-heavy tasks. E.g NER token lists ([0, 1, 2, 3]), or some inline tagging Alex B-PER is O going O to O Los B-LOC Angeles I-LOC.

The algorithm requires access to the generation task itself. This would therefore only work with self-hosted models.

@HallerPatrick HallerPatrick added enhancement New feature or request discussion Things to discuss labels Aug 20, 2023
@HallerPatrick HallerPatrick linked a pull request Nov 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Things to discuss enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant