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

Adds support for custom regex parsers (for multimodal structured generation) #1039

Merged
merged 3 commits into from
Jul 14, 2024

Conversation

leloykun
Copy link
Contributor

As discussed in our Discord server

This PR adds support for custom regex parsers. This doesn't change the behavior of Outlines by default. But this allows us to write custom Guide classes that uses custom regex parsers for e.g. multimodal generation.

Also improves documentation

@rlouf rlouf merged commit 62b7601 into dottxt-ai:main Jul 14, 2024
7 checks passed
@rlouf rlouf added enhancement documentation Linked to documentation and examples structured generation Linked to structured generation labels Jul 14, 2024
@rlouf
Copy link
Member

rlouf commented Jul 14, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Linked to documentation and examples enhancement structured generation Linked to structured generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants