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

Structured Text-to-SQL generation using Hugging Face and Outlines #72

Open
chrisonntag opened this issue Apr 4, 2024 · 1 comment
Open

Comments

@chrisonntag
Copy link

chrisonntag commented Apr 4, 2024

Hi y'all, I thought about writing a notebook that showcases how to create a natural language interface for databases using Hugging Face models, Outlines for structured generation and Lark as a parser for syntax checks.

Outlines is a library that constrain auto-regressive text generation models on outputting text that matches regular expressions, JSON schemas or even grammars, which is pretty amazing.

What do you think @MKhalusova ?

@chrisonntag
Copy link
Author

Including some sort of RAG in order to reduce token size when including db schemas as context for the natural language query would also be beneficial, but I feel like too many recipes in the cookbook already deal with RAG …

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

No branches or pull requests

1 participant