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

Feature request: enable AI #121

Open
mpasternak opened this issue Sep 20, 2024 · 0 comments
Open

Feature request: enable AI #121

mpasternak opened this issue Sep 20, 2024 · 0 comments

Comments

@mpasternak
Copy link

Hi,

I love DjangoQL, this is a very important project.

My suggestion: enable AI use in DjangoQL for zero-shot query generation.

My idea: DjangoQL generates the whole model for the database structure (every field that can be queried); DjangoQL also knows the types of the fields (obviously), so the database structure goes into the prompt.

Then, the user gives a natural-language like entry. "Find me all records submitted by Anna between 20 and 25th of September".

With DjangoQL in place, this could be very easy to implement. In fact, I thought about leveraging AI in my web app (a bit large CRUD app with some reporting capabilities)... giving the user the ability to generate SQL queries to search the database seems a bit too much, but giving the use the ability to use DjangoQL for the same thing seems way safer...

What do you think?

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