Skip to content

Feature request: enable AI #121

@mpasternak

Description

@mpasternak

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions