Skip to content

getting actual values in predicted SQL queries #27

Description

@trangel

Hello,
I find that all the values in the input questions are replaced by 1 in the SQL query.

For example, if my input is (these examples are just illustrative, not real):

"Get the top 10 samples in column_x"
This top 10 query is translated to "SELECT column_x FROM table ORDER BY column_x DESC LIMIT 1"
So it replaced top 10 by top 1

Also in conditions:
"List a column X where column Y < 0.1"
Is translated to
"SELECT column_x FROM table WHERE column_y < 1"
Again 0.1 is replaced by 1

Do you have a mechanism to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions